Ah, don't worry, it was because I forgot to end the last for loop.
Now I just have to find a way to save the names to an array.
Type: Posts; User: iijakeh
Ah, don't worry, it was because I forgot to end the last for loop.
Now I just have to find a way to save the names to an array.
Sorry, I don't understand what you mean.
I did this:
int ClassCodeLength = ClassCodeString.length();
for(int counter=0;ClassCodeLength-1>counter;counter++){
...
But I'm still getting the same error
It's a bit messy, but i tried to get the counter to work first. It's supposed to print out where the first speech marks are and where the second speech marks are. I get this error:...
So would the charat method be like:
if(classCode.charat(0)==","){
}
When I try that I get an error saying "Incomparable types: char and java.lang.string"
Everything inside the speech marks is the name,
After 3 commas you will find a letter that represents the gender,
That is one person's information,
Once you hit the next speech marks it means you...
Well first of all I need to get the name between the speech marks and store that in an array. Then I need to find the second name and put that in the same array. and so on...
How would I do that?
I don't have any code for it because I have no idea how to do it, which is why I am here.
I need someone to show how I can make a program that takes the names and the gender for each of the...
I want to store the each person's name in an array, their genders in another, and their DOB in the last. I've tried using substring but it didn't work very well.
I have no idea what an API is so...
Hi,
I am creating a seating plan generator for my computing coursework and need to separate a string into parts:
"Barn, Sam",10,AG,M,07.08.97
"Smith, Trevor James",10,GB,M,25.03.97
"Paddington,...