Programming with Java, part 6
1.Classes for character stringThere are many situations where you handle characters.Classes are provided in Java that are useful in suchcases, so I will introduce some of them.(1)StringThe first is the String class in the java.lang package.When you use the class of java.lang package, it is notnecessary to write "import java.lang.*;". This is becauseit is implicitly imported at compile.Also, String can create an object without new. String strTmp = "test";If you enclose the string in double quotes like this,it will be treated as an object.Next, I will introduce the methods that I often use in String.①equalsCompares strings to each other and returns true if they match,false if they don't. Fo
0