String
class String1 {
public static void main(String[] args){
String S = " My name is khagen baro";
System.out.println(S);
// string to uppercase
System.out.println(S.toUpperCase());
//special character printing
String str = "I am a \"coder \"";
System.out.println(str);
}
}
Comments
Post a Comment