Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

add character to a string java

public class JavaHungry {
    public static void main(String args[]) {
      char ch = 'J';
      String str = "avaHungry";
      //Adding character at the beginning
      str = ch + str; 
      System.out.println(str); 
    }
}
Source by javahungry.blogspot.com #
 
PREVIOUS NEXT
Tagged: #add #character #string #java
ADD COMMENT
Topic
Name
5+6 =