I am making an app similar to the CMD in windows, or Terminal in Linux. My problem is, after calling the method the user has selected, I want them to be able to select another. Instead, it closes.
Main class (jDOS.class)
package jdos;
/**
*jDOS Cross-Platform Java Console
*Luke Pattinson 2011
*/
public class JDOS {
public static void main(String[] args) {
System.out.println("\n\n\njDos Cross-Platform Java Console\nLuke Pattinson 2011");
comInput commI = new comInput();
String comm = commI.getComm();
if (comm.equals ("quit")) {
System.exit(0);
}
if (comm.equals ("internet")) {
deskFunc browse = new deskFunc();
browse.browse();
}
if (comm.equals ("help")) {
System.out.println("quit - exits the system (does not exit the console)\nhelp - displays this message\ninternet - navigates to a webpage");
}
}
}
Can anyone help me?
:confused:
-EDIT-
Solved, sorry :3