• Register
100 points
‚óŹ3

* = Is the assignment operator. This is useful shortcuts and one as when writing any old application to utilize your time well be appreciated. (Check the example 1)

Example 1:

int num = 1;

num * = 5;

// same thing as

num = num * 5;

Now something else about *.

When importing a java library * is the universal selector so that when importing your library you can easily import everything in the library. For example if you want to import a scanner from the util library you can use the universal selector although this is not recommended as a project should only import what is needed for reasons of optimization.

Example 2:

1. The import java.util.Scanner; // import only Scanner

2. import java.util. *; // ALL imports for util

If I messed explain anything feel the freedom to offer edits and comments on my writing. I am new to Java and programming and I'm trying to learn more about Quora, but also help other starters if you can teach someone something that you really have the knowledge grip on it !!

This is a complex task. It reveals changes in the value of l-value by transforming the previous l-value expression of r-value

said ...

1. checkAssigments public class {

2. public static void main (String [] arguments) {

3. int a = 10, b = 2;

4. while (b <10) {

5. a * = b;

6. b ++;

7.} System.out.println ( "Value is" + a);

8.}

9.}

what happened above is the expression of the principle of

1. * = b;

which loosely stands 70s C to show

My rule is to overcome complicated by the horns ... so get ready to print statements and began to crack it to understand the implications of the statements in semantics by using the code upgrade [although only for your evaluative eye; end-users will not be happy with debug