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: Which class do you think I should use?

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Which class do you think I should use?

    Hi
    I have a project which will be list of names 1-20.
    Every name can lead the user to many images.
    Every image has two lines of text
    Which class do you think I should use?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Which class do you think I should use?

    Which class do you think I should use?
    I am confused what you are even asking. Which class do you think are options for your needs? Do you need to write your own class?

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Which class do you think I should use?

    Hi
    I think I couldn’t explain what I mean, sorry for that.
    I searched on the web and found this Code
    public class WhileLoop {
    public static void main(String[] args) {
    System.out.println("Let's count to 10 using while:");
    int i = 1;
    while (i <= 10) {
    System.out.println(i);
    i++;
    }
    }
    }

    The result will be
    Let's count to 10 using while:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    1-Now I would like next to every num A name.
    2- When you press on the name it will lead you to many images.
    Note: I have been learning Java for Two weeks only
    I decided to make my first program in order to practice & learn more &more.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Which class do you think I should use?

    There is a lot for you to learn about before you will be able to write a program with a GUI where a user can press a button and lead to other pages with images.

    You should work on getting familiar with java by using the console for user input initially. For example look at using the Scanner class for getting user input.
    Later you can move to using GUI to present windows with controls that users can interact with.

Similar Threads

  1. Replies: 7
    Last Post: July 21st, 2011, 02:29 PM
  2. Replies: 3
    Last Post: April 13th, 2011, 03:30 PM
  3. Help requested - testing a class with a tester class, no methods allowed.
    By miketeezie in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 21st, 2011, 10:40 PM
  4. Replies: 0
    Last Post: April 11th, 2010, 08:56 AM
  5. problem with data access when a class call another class
    By ea09530 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 4th, 2010, 05:20 PM