1import java.util.Scanner;
2
3public class ProgrammingEx4_20 {
4
5 public static void main(String[] args) {
6 Scanner input = new Scanner(System.in);
7
8 System.out.print("Enter some string:");
9 String s = input.nextLine();
10 System.out.println("The string length is " + s.length());
11 System.out.println("The first character is " + s.charAt(0));
12
13 }
14
15}
16