Welcome to Java!
Gosh, i couldnt find this nifty video about this bald guy in bullet time explaining the benifits of using java (The java everywhere video). It would be really cool for the first day of class.
Anyway, aside from the syllabus distribution, class card submission and index card writing, and the traditional start of term speech, the first day of class featured the Hello World program.
public class HelloWorld {
public static void main(String args[]) {
System.out.println("Hello world!");
}
}
Then i'd introduce them to JOptionPane.showMessageDialog
import javax.swing.*;
public class HelloWorld {
public static void main(String args[]) {
JOptionPane.showMessageDialog(null,"hello world!");
System.exit(0);
}
}
From C programmers (Turbo C actually, nothing beats a one-diskette IDE) the last example always blows their mind.
0 Comments:
Post a Comment
<< Home