About the default problem: You have not to use case to introduce the default case. Instead of writing
case default:
try simply
default:
Type: Posts; User: felimblack
About the default problem: You have not to use case to introduce the default case. Instead of writing
case default:
try simply
default:
Junior has to be declared as
ArrayList<Programmers> juniors = new ArrayList();
or you can cast what you get from the Array
proWithoverp = (Programmers)this.juniors.get(i);
The correct way to declare a variable is String astring = new String(); not String astring = newString();
I apologize, I sent a post I hadn't revised (there were also grammar errors...).
@copeg, thank you for your extreme efficiency as moderator!
If the statement (I cut some text) println(1,1) doesn't compile it's because println needs a string to be passed to and you pass two numbers (you should use "1,1"). Indeed it's correct, it's not what...
I suggest you to take a look to while loop. It makes possible to iterate code while a statement is true (for example while your file has next lines to be read).
The code you posted in your first post is quietly correct.
Instead of writing
System.out.println(1,1);, try to substitute the static numbers with the counters of the loop i and j.