APCS Blog Post August 21

In class today I learned a few important things:

  1. First I learned how to use the BlueJ IDE. I used it to create the two classes DiffPhrases and HelloWorld
  2. 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.
  3. 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++){

Leave a Reply

Your email address will not be published. Required fields are marked *