ok everyone I need up mark this thread as complete/resolved.
My error was that I did not place my If statement directly beneath my main method.
Here is my code that generates an error message when more than 3 strings are passed as parameters, when only three are permitted.
public static void main (String args[]) {
if (args.length > 3)
{
System.out.println("You have exceeded the Input Limit.\n Please enter three values only.");
return;
}
I was making things far too complicated with trying to achieve this functionality using try/catch exceptions but hey, im still new to this and need to try things to make my code work.
thanks for all of your help Norm, it is always appreciated.
ch103