Java program to concatenate the given strings using concat() method
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW HELLO WORLD kodingwindow@kw:~$
Java program to concatenate the given strings by passing object as a value
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW HELLO WORLD kodingwindow@kw:~$
What Next?
Java implementation of the indexOf method
Java implementation of the Character class
Java implementation of the charAt method
Advertisement