Beginner in Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • compsci
    New Member
    • Jan 2007
    • 32

    Beginner in Java

    I want to know how to start a program by asking the user to input 5 integers and take the smallest from it.
    I know I am using a for loop and logical operators but I have no idea on how to begin.
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    #2
    Originally posted by compsci
    I want to know how to start a program by asking the user to input 5 integers and take the smallest from it.
    I know I am using a for loop and logical operators but I have no idea on how to begin.
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    nomad
    PS read up on class and scanners

    Comment

    • compsci
      New Member
      • Jan 2007
      • 32

      #3
      I only have a for loop

      Code:
      for (int x = 1; x<= 1; x++)

      Comment

      • BigDaddyLH
        Recognized Expert Top Contributor
        • Dec 2007
        • 1216

        #4
        Originally posted by compsci
        I only have a for loop
        [CODE=Java]for (int x = 1; x<= 1; x++)[/CODE]
        Then you've got some work ahead of you! You need to hits the books and/or work on some tutorials: http://java.sun.com/docs/books/tutorial/java/index.html

        Comment

        Working...