In future lectures and assignments, we will see how BlueJ provides many powerful tools to learn about object-oriented programming and to aid in debugging programs.
/****************************************************************** * * Count.java: for lab 1 * * Name:Of course, just to make at least a little use of the BlueJ editor, enter your name, login, and the date as indicated above.* Login: * Course: CSCI 120 * Date: * * Description: * This program counts from 1 to 5 in English, French or Spanish. * *******************************************************************/ import java.util.Scanner; public class Count { public static void main (String[] args) { Scanner keyboard = new Scanner(System.in); System.out.println("What language would you like to hear?"); System.out.print("Type 1 for English, 2 for French, and 3 for Spanish: "); int answer = keyboard.nextInt(); if (answer == 1) System.out.println ("one two three four five"); else if (answer == 2) System.out.println ("un deux trois quatre cinq"); else System.out.println ("uno dos tres cuatro cinco"); } }