Select Page

Welcome to “Java Diaries” a series in which I document my self-teaching of Java as both a record of what I’ve done and a reference for me to check back on later – hopefully aiding the information I’ve been consuming to take in. Click here to view all posts in this series.

I have been working in marketing since 2014 but I kind of just fell into marketing because it’s the only thing I could seem to do with my Creative Writing undergraduate degree. Before going to university to study Creative Writing I did Games Design at college where we learnt very rudimentary C++ code for one module in a year. I really enjoyed this module because I like the grittiness of coding and needing to work on the minutiae where one typo can throw the whole code off and then you have to solve the problem of “why the hell isn’t my code running, I want to throw the PC out of the window”. My marketing career so far has seen me learn the basics of HTML and CSS which gives me the same sort of satisfaction but I’ve chosen Java as the one to get thoroughly stuck into for two reasons.

  • I want to make an Android application which I made a concept for during my Masters degree.
  • I really love Minecraft which was programmed in Java.

After scouring the internet for resources on where to begin self-teaching Java I stumbled across Udemy and their Black Friday sale where a lot of courses were discounted to £9.99. One that stood out to me was Java Programming Masterclass for Software Developers which had a price tag of £194.99 prior to the sale (though Udemy discounts all the time and I doubt anyone has paid that much for this course). The reason it stood out is because it had 264,000+ students enrolled on it, over 70 hours worth of training and a 4.6 out of 5 rating from 50,000+ reviews. With those stats and that price tag I thought this would be a perfect jumping in point.

The first thing the course had me do was download the two pieces of software that I needed to start programming, these were:

IntelliJ IDEA is an Integrated Development Environment (IDE) which has a free version and a paid version, the free version is what I downloaded as this is good enough for the course.

Integrated Development Environment (IDE) – An IDE is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools, and a debugger. Most modern IDEs have intelligent code completion. – Wikipedia

After downloading the two pieces of software it was time to install them and set them up correctly which mainly meant associating Java files to open up in IntelliJ IDEA and telling IntelliJ where Java was installed on my machine. The first thing Tim, the course instructor, had me do was create an output of the text string “Hello World”, a rite of passage for any programmer setting off on the journey to learn a new language. Tim had me copy the code below into IntelliJ and run this program, which opened up a console inside of IntelliJ and printed the string “Hello World” – I copied it word for word and it worked (I would have had to reconsider this whole thing if it hadn’t haha)

public class Hello {

    public static void main (String[] args) {

        System.out.println("Hello World");

    }
}

Tim didn’t spend time explaining what the individual elements of the code meant, this was just a quick thing to show it working – he has promised to go into more detail on each of the items as the lessons progress and with over 70 hours of video to get through and the stellar reviews I have faith he will do.

He did explain what “println” means and it’s self explanatory (I had figured this out as I have some recollections of my brief C++ lessons). Println is short for “Print Line” and it does exactly what it says, it prints the line to the system. In this case when I ran the program it executed correctly and printed the line “Hello World” to the console as expected.

println: Print Line – Print the line between the (” “) to the output window.

That’s it for this first post, my internet was being really slow (speed tested at 0.78mb) so most of my night revolved around getting the software downloaded and then set up