Uncategorized

Learn Java - How To Compare Strings

The String class provides several methods for comparing strings. When a comparison is made between strings, the compiler compares the numbers of the objects, because each letter is represented by a number. Comparisons with the…

Read more
Uncategorized

Learn Java - How to Declare an Array?

An array in Java is an object. However, this object receives special treatment of the language itself and JVM (as with String). Declaring and Initializing Arrays in Java The array object gathers together other objects…

Read more