java - Creating a Markbook in Eclipse -
import java.util.scanner; public class markbook {
public static void main(string[] args) { system.out.println("what menu access? 0. add students 1. change mark 2. list marks , students"); scanner keyboard = new scanner(system.in); }
}
is have, i'm bit rusty on coding abilities, have no idea on how start off, able assist giving tips or help?
provide choices take user input , process
system.out.println("what menu access? 0. add students 1. change mark 2. list marks , students"); int choice = keyboard.nextint(); if (choice == 0) { // run code add students } else if (choice == 1) { // code change mark } else if (choice == 2) { // list marks code } else { system.out.println("invalid input"); // handle invalid input somehow if want }
Comments
Post a Comment