Fresh Information, Great Ideas, Latest Product Review & Specification » Computer & Gadget

Fresh Information, Great Ideas, Latest Product Review & Specification » Home and Appliances

Fresh Information, Great Ideas, Latest Product Review & Specification » Camera & Photography

Sunday, June 20, 2010

Program asking the user for their name and then prints a personalized greeting.

import java.io.*;
public class HelloToYou {
public static void main (String args[])
{
byte exx[] = new byte[100];
int an_an = 0;
System.out.println("Your name Please?");
try {
an_an = System.in.read(exx);
System.out.print("Welcome to the world of JDK and your Instructor is Mr.Parazo, HELLO: ");
System.out.write(exx,0,an_an);
}
catch (IOException jabrasr) {
System.out.print("");
}
}
}

No comments:

Post a Comment