=:) Good work copeg.
Type: Posts; User: JavaPF
=:) Good work copeg.
Try this :D
import java.io.*;
public class Main
{
public static void main(String[] args) throws IOException
I have compiled your code but I do not get this error when I enter anything other than 1. I can clearly see it doesn't work though.
I don't really think the way you have coded this is the best...