Scanner str=new Scanner(System.in); String s1=str.nextLine(); String s2=str.nextLine(); String s3=str.nextLine(); System.out.println(s3); System.out.println(s2.toUpperCase()); System.out.println(s3.toLowerCase());