Hello.
This is my first post on this forum, but I'll try to help you anyway
A String can also contain a number. You can use the parseInt method to parse an number in a String to an int.
Example:
String number_s = "1";
int number_i = Integer.parseInt(number);
You can also remove whitespaces in your case.. " Hello" with the trim() method:
String text = " Hello";
//this will remove trailing or leading whitespace from your String.
text.trim();
The difference between the usage of == and .equals is quite big:
the == will compare the pointers of each of the objects, and see if they point at the same address.
the .equals will compare to object to eachother, etc. "hello" and "Hello" will not equal - return boolean false... because there is a difference between uppercase and lowercase letters... here you would use .equalsIgnoreCase. So the .equal compares the actual Strings in this case and check if their size equals.
double will hold the largest number, this is the largest primitive data-type.
I hope this helped a little... feel free to throw some other questions
