concat() and trim() methodconcat()
You can concat two String using concat() as shown below:
package stringdemo;
public class Concat {
public static void main…Read More
equals() Versus ==equals() Versus ==
We should be clear that equals() method and == operator perform two different operations.The equals() method compares the characte…Read More
Java Program to show diamond Pattern:Java Program to show diamond Pattern:
import java.util.Scanner;
public class MyDiamondPattern {
public static void main(String[] args) {
…Read More
equals() and equalsIgnoreCase()String Comparision:
The String class includes many methods that compares Strings or Substrings within strings.
equals() and equalsIgnoreCase()
pac…Read More
0 comments:
Post a Comment