/** * @Title: prj1b * @Comment: WSU - Fall 06 - CS3830-0 * @author: Vincenzo Maggio */ package prj1b; import java.io.*; import java.lang.*; public class Main { /** Creates a new instance of Main */ public Main() { } public static void main(String[] args) { int n = args.length; if ( n != 2) { System.out.println("ERROR - Wrong number of parameters."); return; } if ( args[1].length() > 10 ) { System.out.println("ERROR - Wrong last name length."); return; } if ( args[2].length() > 10 ) { System.out.println("ERROR - Wrong first name length."); return; } /* String lastName = new String(10); String firstName = new String[10]; String fullName = new String[22]; */ /** * here I have to quit, sorry I am late for class * only few lines left for completion * however instead of String I was thinking to use byte[] * pick a char a time, check if it's a '\n' * && and count must be <= 10 * then * if !isalnum() && !ispunct() reject * else strcat to name * then strcat both names to fullaname and it's done */ } // niam } // ssalc