How about using a print statement? Something like this:
System.out.println(b = check());
Now, what if the variable is an int? A String? Something else? What happens then?
Type: Posts; User: KevinWorkman
How about using a print statement? Something like this:
System.out.println(b = check());
Now, what if the variable is an int? A String? Something else? What happens then?
Hint: What does the assignment operator return? Might have to do some googling or putting together some test programs to figure it out.