Results 1 to 4 of 4
  1. #1
    Konex is offline Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Default Entering string in a loop with method

    Hello everyone,

    Can anyone give me a sample program in Java of entering 25 names in a loop then put it in a method.. Is this an easy one?

    This is the project of my sis, I really don't know how to help him, so anybody can help?

    Very much appreciated..

    Thanks in advance.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Regardless of who it's for, please realize that this isn't a code bin. If you need code, then you'll have to produce it. If you have questions about your code, then please post your code and ask your question.

    Much luck!

    ps: sorry about your sis's sex-change.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default

    Can anyone give me a sample program in Java of entering 25 names in a loop then put it in a method.. Is this an easy one?
    That sounds familiar. You might want to check other threads active today.

  4. #4
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hi,
    We are here not to do your homework. But still i ll give you an idea how to approach it.

    Use a for loop and ask the user to enter the name and store it in a global array which can be accessible by any other method too.
    To finish sooner, take your own time....
    Nivedithaaaa

Similar Threads

  1. Method and loop, beginners guide please!!
    By soc86 in forum New To Java
    Replies: 2
    Last Post: 01-15-2009, 04:00 PM
  2. [SOLVED] Ending for loop with a String
    By jdiesel in forum New To Java
    Replies: 3
    Last Post: 01-08-2009, 03:11 AM
  3. Entering a while loop with a not equal to string
    By bri1547 in forum New To Java
    Replies: 9
    Last Post: 07-09-2008, 08:10 AM
  4. i need assistance with a string triggered loop please!
    By Phobos0001 in forum New To Java
    Replies: 9
    Last Post: 11-14-2007, 03:44 PM
  5. terminating a while loop with a string
    By tkdvipers in forum New To Java
    Replies: 3
    Last Post: 07-10-2007, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •