import java.io.*; import java.text.*; public class strings2 { public static void main(String [] args) throws IOException { BufferedReader in =new BufferedReader (new InputStreamReader(System.in)); String word="";//initialize word to NULL System.out.println("Please enter your name in lower" +" case:"); word=in.readLine(); word=word.toUpperCase();//call the method to convert System.out.println("Your name in all caps is: "+word); } }