I’m getting ahead of myself. I can’t wait for the book to arrive so I’ve been reading up the “WikiPedias” about Java and successfully setup Eclipse and ran a Hello World program. It’s not much, but it’s one step closer to kickin’ ass!
// Outputs "Hello, world!" and then exits public class HelloWorld{ //private static HelloWorld helloWorld; private String helloText = "Hello World"; private String byeText = "Bye"; public static void main(String[] args) { System.out.println("Entering"); HelloWorld helloWorld = new HelloWorld(); helloWorld.init(); } public HelloWorld() { System.out.println(helloText); } private void init() { byeText += " World"; byeWorld(); } private void byeWorld() { System.out.println(byeText); } }
I trying to get the hang of the whole public static void main
function; everything is making sense to me, it’s just that it’s a slow process.