So I decided to put the text book down (because it was giving me a headache), and started playing around with JAVA myself. This is what I can up with:
import java.util.Scanner; public class projectx { public static void main(String args[]){ System.out.print("What is your name?"); Scanner projectx = new Scanner(System.in); System.out.println(projectx.nextLine()+ ",That is a beautiful name!"); } } |
I guess I have to work on my html -> I haven't used it in a little while :-P Anyways, you get the point. Mainly the program is just like the "Hello World" program except it responds to whatever name you type in.
No comments:
Post a Comment