I cannot compile my program:

public class OwnBuiltinClasses{
   
    public static void main( String[] args ){
       
        // Check if minimum requirements exist
        if ((args.length<3)||(args.length>6)){
            System.out.println("I need between three and six names of members 
of your family please...");
            System.exit(0);
        }

        for(int counter = 0; counter < args.length; counter++){
           String strInstance(counter)=new String(counter);
           char (counter)=strInstance(counter).charAt(1);
           system.out.println("The new name using the second characters is: ");
           system.out.print(char[counter]);
        }
}

due to the following error:
error: Class names, 'MyOwnBuiltinClassesProject', are only accepted if 
annotation processing is explicitly requested. 

Any ideas?

Thanks.
Rob 




 

-- 
To post to this group, send email to javaprogrammingwithpassion@googlegroups.com
To unsubscribe from this group, send email to 
javaprogrammingwithpassion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to