Menu.java - import [email protected] Jack...

This preview shows page 1 out of 1 page.

import java.util.Scanner; /** * @author Jack Closson * @version 9/23 * Intro to CS * This program can add or subtract inputted values */ public class Menu { /** * public class Menu. * * @param args String[] */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); String input; int x; int y; while (true) { System.out.println("Please enter x and y:"); x = scan.nextInt(); y = scan.nextInt(); System.out.println("Please enter a command:");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture