Search:

Type: Posts; User: iijakeh

Search: Search took 0.09 seconds; generated 41 minute(s) ago.

  1. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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.
  2. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    Sorry, I don't understand what you mean.
  3. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    I did this:

    int ClassCodeLength = ClassCodeString.length();

    for(int counter=0;ClassCodeLength-1>counter;counter++){
    ...

    But I'm still getting the same error
  4. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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:...
  5. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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"
  6. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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...
  7. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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?
  8. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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...
  9. Replies
    18
    Views
    2,316

    Re: Need some help with substring please

    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...
  10. Replies
    18
    Views
    2,316

    Need some help with substring please

    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,...
Results 1 to 10 of 10