programmingex4 20 java

Solutions on MaxInterview for programmingex4 20 java by the best coders in the world

showing results for - "programmingex4 20 java"
Elisa
21 Oct 2018
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
similar questions
queries leading to this page
programmingex4 20 java