Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 10 of 10

Thread: Array in java

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    8
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Hi, anybody

    Will you pls help me on how to solve the following: Given the following two arrays

    english={"food","hello","phone","house","car"}
    wambo={"oikulya","ongeipi","ongodi","eumbo","otuwa "}

    So my question is how to create java program that will ask for a word in english and returns its equivalent in wambo or other languages if it exist in array english as it is shown above.


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Hi, anybody

    See the replies your classmate got: http://www.javaprogrammingforums.com...wo-arrays.html

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    8
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Hi, anybody

    I am just a beginner and would like to hear from you,on how i should come up with this

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: Hi, anybody

    Hisma has answered it in the other thread, there's nothing I could add to that.

  5. #5
    Junior Member
    Join Date
    Sep 2013
    Posts
    8
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Hi, anybody

    thats fine will try to other sites,who have the will to help

  6. #6
    Member
    Join Date
    May 2011
    Location
    west palm beach, FL
    Posts
    189
    My Mood
    Tired
    Thanks
    41
    Thanked 11 Times in 10 Posts

    Default Re: Hi, anybody

    there is a difference between helping you and doing it for you...right now you are asking us to do it for you and we dont do that sorry

  7. #7
    Junior Member
    Join Date
    Sep 2013
    Posts
    8
    My Mood
    Amazed
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down Array in java

    Hi
    Any one ther to help me on how to come up with an array tha display a word in one language and display its equivalent in different other languages?

    Like (english word and return it equivalent in french or wambo)

  8. #8
    Member
    Join Date
    May 2013
    Posts
    106
    My Mood
    Amused
    Thanks
    16
    Thanked 9 Times in 9 Posts

    Default Re: Array in java

    I believe this is being discussed in this thread.

  9. #9
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: Array in java

    Plus this one started previously started by the OP. At least this one has a semi-reasonable title.


    *Duplicate threads merged*
    Last edited by jps; September 19th, 2013 at 10:11 PM. Reason: removed null link
    Improving the world one idiot at a time!

  10. The Following User Says Thank You to Junky For This Useful Post:

    jps (September 19th, 2013)

  11. #10
    Member
    Join Date
    May 2013
    Posts
    106
    My Mood
    Amused
    Thanks
    16
    Thanked 9 Times in 9 Posts

    Default Re: Hi, anybody

    Okay, I know we have rules against spoonfeeding, but here is the exact answer to the problem you're looking for.

    public class Spoons
          {
          public static void main(String[] args)
                {
                String[] english = {"Do", "your", "own", "homework!"};
                String[] wambo = {"Read", "the", "fascinating", "manual!"};
     
                for(String each: english)
                      System.out.print(each +" ");
                System.out.println();
                for(String each: wambo)
                       System.out.print(each +" ");
                System.out.println();
                System.out.println("And pay attention in class too!");
                }
    }

  12. The Following User Says Thank You to mstabosz For This Useful Post:

    Kewish (September 19th, 2013)

Similar Threads

  1. Java 1.4 Array issues - controlling array size for dynamic usage
    By doonan79 in forum Collections and Generics
    Replies: 5
    Last Post: June 18th, 2013, 11:53 AM
  2. Replies: 4
    Last Post: May 28th, 2013, 11:24 PM
  3. Replies: 2
    Last Post: January 14th, 2013, 03:22 PM
  4. java array
    By fazmy3fvz in forum Java Theory & Questions
    Replies: 10
    Last Post: June 9th, 2012, 01:25 PM
  5. Replies: 4
    Last Post: November 14th, 2011, 10:00 PM