Always use Exception.printStackTrace() in place of print("An error occurred!"). Java if statements look like
if ("Ian".equals(name))
System.out.println("Sifu");
else
...
Type: Posts; User: Sean4u
Always use Exception.printStackTrace() in place of print("An error occurred!"). Java if statements look like
if ("Ian".equals(name))
System.out.println("Sifu");
else
...
You're going to need a way of writing lines on the console, which comes for free with System.out - it's an object of type java.io.PrintStream, so you can println(String) to write some text onto the...