Preview:
String name = "mohamed";
      name = name.toUpperCase();
      System.out.println("The uppercase of name is " +name);
      
      int length = name.length();
      System.out.println("The length of name is " +length);
      
      char first = name.charAt(2);
      System.out.println("The first letter of name is " +first);
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter