Home » Introduction to Java » Java Workshop 2

Java Workshop 2

The second workshop for the Java unit is now available. This is for BOTH teams.

Follow this link to log in and do the workshop.


2 Comments

  1. Lucas de haro pishoudt says:

    Hi, me again.

    In Week Two last exercise Bronze each time I run my code after asking the second number and press enter the full page get blocked.

    Scanner Keyboard = new Scanner(System.in);
    System.out.println(“What is your first number”);
    int numberFirst = Keyboard.nextInt();
    System.out.println(“What is your second number”);
    int secondNumber = Keyboard.nextInt();

    int i;
    for (i=0; numberFirst < secondNumber; i++);
    {
    System.out.println(i++);
    }

    Did I find a bug???

    • paul says:

      No bug. Your program when translated into English reads “do nothing until the heat death of the universe and crash the browser”. Your FOR condition makes no sense and what should never be on same line as the word FOR?

      I would suggest that you urgently attend next week’s workshops if you are still working on workshop 2…..

Leave a Reply to paul Cancel reply

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