Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7896193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:49:49+00:00 2026-06-03T07:49:49+00:00

i am trying to run a very simple java program. i want to write

  • 0

i am trying to run a very simple java program. i want to write a program that reads 10 integers and that the programs finds witch one is the maximum of them.
i wonder if is possible that inside a loop i can read the 10 values.

Scanner input = new Scanner (System.out);
    int num1, num2, num3, num4, num5, num6, num7, num8, num9, num10;
        System.out.print(" please enter the numer "  +i);
             ===>num[i] = input.nextInt();// 

i am trying to find the way to do it without using an array, since i haven’t see this in school yet.
any idea how to do it inside a loop? or is just no possible to do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:49:50+00:00Added an answer on June 3, 2026 at 7:49 am

    For that you will have to create int array of 10 length and then read that intvalues in loop and process further.
    Example :-

    Scanner input = new Scanner (System.out).useDelimiter("\n");
    int values[] = new int[10];
    .
    .
    .
    
    
    for ( int i = 0 ; i < values.length ; i++ ){
         System.out.print(" please enter the numer "  +i);
         values[i] = input.nextInt();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying out a very simple Java program that uses Scanner and its method
I'm a very new to java, just trying to run some simple programs. I
I am just trying to compile and run a very simple test program, but
I'm somewhat new to C++ and QT. Trying to run a very simple program
I'm trying to write a very simple function which displays a div that says
I'm trying to compile a very simple program in Java 1.6 on Ubuntu Jaunty,
I have two very similar programs each trying to run two threads OddThread and
I am very new to MPI programming, I am trying to run a program
I'm trying to run a very simple Oracle procedure from PHP, using the following
I am trying to run a very simple server/client ssl code with a self

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.