+ 1
Can any one write a code in java for the below proble
suppose i have a string "Elephant" You havr to put "X" before E..The output should be "XElxelephant" .
1 Answer
+ 2
Use concantenation. (fancy word for adding to strings with the + operator)
String one = "hello ";
String two = "World!";
String result = one+two;
// result is: Hello World!