In class today I learned a few important things:
- First I learned how to use the BlueJ IDE. I used it to create the two classes DiffPhrases and HelloWorld
- Second I learned how to set up a main method and print using Java. I am more comfortable using python as I’ve used it for a lot longer however this HelloWorld class was a good start to learning Java.
- Third and possibly the most importantly I learned the syntax for using a for loop in Java. I used this in my DiffPhrases function to print each argument passed when calling it. This loop can be seen below:
public class DiffPhrases{ public static void main(String[] args){ for (int i=0; i < args.length; i++){ System.out.println(args[i]); } } }