Monday, December 29, 2014

Java Tutorial For Beginners 15 - Java String











1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
package lesson1;
public class MyClass {

 public static void main(String[] args) {
      String myString = "Hello e World e";
      int myStringLegth = myString.length();
      String myStringinCase = myString.toUpperCase();
      
      System.out.println(myString.indexOf('o'));
 }

}





No comments:

Post a Comment