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 4 of 4

Thread: HELP NEEDED

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post HELP NEEDED

    Hi guys,

    I need your help. I need to create a program, that after entering the number of floors in a building and a number of rooms on each floor gives out the list of all the rooms that are in the building.
    For example.
    If i put a name "A" for a building, 2 as a number of floors (ground floor counts as the 1st floor) and 2 as a number of rooms that are on each floor, what the programm will give out is:
    A001
    A002
    A101
    A102

    Any ideas?
    Thanks in advance


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: HELP NEEDED

    Please give your threads better titles. Everyone needs help, but it's worthless when searching for help with a specific subject.

    As for your question, sure, we have plenty of ideas. Do you have any? Let's start with your ideas and work from there.

  3. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: HELP NEEDED

    you could use a double array and just enter in the rooms and floors then when somebody selects floor 2 room2 have a method retireve the correlating array location. and add it to a string to output

  4. #4
    Junior Member
    Join Date
    Dec 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: HELP NEEDED

    [/COLOR]
    Quote Originally Posted by jorys22 View Post
    you could use a double array and just enter in the rooms and floors then when somebody selects floor 2 room2 have a method retireve the correlating array location. and add it to a string to output

    well, i am not that advanced in java how would that look like in your thinking (I mean code-wise)?

Similar Threads

  1. Grails Developer Needed - URGENTLY NEEDED *WORK FROM HOME*
    By IngeniumR in forum Paid Java Projects
    Replies: 0
    Last Post: February 5th, 2013, 07:19 AM
  2. help needed again
    By 5achowdhury in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 28th, 2013, 08:06 AM
  3. help needed!!
    By arvindbis in forum Web Frameworks
    Replies: 0
    Last Post: October 9th, 2011, 10:43 AM
  4. help needed ,,, please
    By dpes in forum What's Wrong With My Code?
    Replies: 7
    Last Post: October 7th, 2010, 09:03 AM