// this version works with Java 1.1 import java.io.*; public class ioOld { public static void main(String argv[]) throws Exception { String str = ""; DataInputStream in = new DataInputStream(System.in); System.out.println(" Welcome to Java please enter your name : "); str = in.readLine(); System.out.println(" okay the name you typed was " + str); } }