Comment

ann
hi need help;,
November 18, 2008 at 1:01 AM

can you help me out in doing a java program using loops that will allow the user to input as many integer as he/she wishes and then the program display the highest and he average among thr number...

the out put like this

Enter a number:
5
10
5
5
8
4

The highest value is: 10
The average is: 5
View All Comments | View Tutorial
Related Tutorial and Articles
Java Beginners

Need Help - Java Beginners
Need Help  Hello Sir, Am a beginner of Java. Also i did course... projects in Java as well as J2EE... Can u help me and guide to do a project.   Hi Friend, Please visit the following links: http 

Java Beginners

Need help - Java Beginners
Need help   To Write a Java program that asks the users to enter a m * n matrix of integers, m and n being the number of rows and columns...; Hi Friend, Please try the following code. We hope that this code will help 

Java Beginners

Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc 

Java Beginners

Need *Help fixing this - Java Beginners
Need *Help fixing this  I need to make this program prompt user... and maybe add retrieve function //need help with this one badly. Thanks guys for all the help. import java.text.*; import javax.swing.*; import java.awt.event. 

Java Beginners

need help - Java Beginners
need help  Need help in programming in Java  Simple java program that will show the output within quotes using system.out.println();DISPLAYING OUPUT " * " ," *** " ........I used System.out.print 

Java Beginners

hi all - Java Beginners
hi all  hi, i need interview questions of the java asap can u please sendme to my mail   Hi, Hope you didnt have this eBook. You.../Good_java_j2ee_interview_questions.html?s=1 Regards, Prasanth  HI 

Java Beginners

need help on writing a program. - Java Beginners
Writing first Java Program  Hi, I need help to write my first Java Program other then Hello World! Thanks!!  Hi Thanks for choosing roseIndia to get your query solved. check given link to see the solution of your Java 

Java Beginners

need help. - Java Beginners
 

Java Beginners

I need your help - Java Beginners
I need your help  What is the purpose of garbage collection in Java, and when is it used?  Hi check out this url : http://www.artima.com/insidejvm/ed2/gc.html http://java.sun.com/javase/technologies/hotspot 

Java Beginners

need help with a program - Java Beginners
Java algorithm - need help with a program  Java algorithm - need help with a program 

Java Beginners

I need your help - Java Beginners
I need your help  For this one I need to create delivery class... the file name is ApplicationDelivery.java Your program must follow proper Java... to describe the purpose of the program.   Hi Friend, Try the following 

Java Beginners

need help with a program - Java Beginners
need help with a program   Part I An algorithm describes how... by the user. The output of the program should be the length and width (entered.... First you would need to make up the "test data". For this algorithm, the test data 

JSP Servlet Questions

Need help on JAVA JSP
Need help on JAVA JSP  Hi, I have never worked on java and I have... using JAVA JSP). e.g. Tool does not adjust with the resolution of the screen(need to know how I can adjust it based on the cureen system's screen resolution 

Java Beginners

hi need help with C++ programming!
hi need help with C++ programming!  how do i : b. Store numbers / characters into the file (output) c. Retrieve numbers / characters from the file (input thanks!   b) #include <iostream> #include < 

Java Beginners

Need help in java programming
Need help in java programming  Hello. Can someone please help me... 10% Exam 60% Java program that accepts the following details: student... and terminating the application. Regards!   Hi Friend, Try the following code 

Java Server Faces Questions

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Java Beginners

hi
hi  sir i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data which i enter 

Java Beginners

code need - Java Beginners
)  Hi Friend, Try the following code. We hope this will help you...code need  hi i want to code doing for this. If i have enter the text file in my java project. example input is 1,2,3,4,5(it is in input text file 

Java Beginners

hi.......
hi.......  i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design... for such a programme... plz help me...   Hi Friend, Try this: import java.awt. 

XML Questions

hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please 

Java Beginners

Hi
Hi   I have got this code but am not totally understanding what the errors. Could someone Please help. Thanks in advance! import java.util.Random...: "); // this doesn't need to be here num=input.nextInt(); } if (num 

Java Beginners

hi, - Java Beginners
hi,  what is the need for going to java.how java differ form .net.What is the advantage over .net.Is there any disadvantage in java  Hi Friend, Difference between java and .net: 1)Java is developed by Sun 

Java Beginners

Hi... - Java Beginners
code; if any one need just mail me: fightclub_ceo@sify.com   Hi...Hi...  Hi, I want make a date fields means user click date option then open the calender and if user choose like toady date then date 

Java Beginners

hi - Java Beginners
hi  hi sir,i am almost complete my project,i want to create a batch file for my project,how to create a batch file for my project,plz help me or plz provide me with some examples ThanQ 

Java Beginners

HI - Java Beginners
program & add each row & column & make other dimensional array by the help of switch case & also i do subtraction & search dialognal element in this.  Hi friend, Code to help in solving the problem : public class twoDimension 

Java Beginners

Need help in constructing bubble sort
Need help in constructing bubble sort  using a bubble sort, for each...://www.roseindia.net/java/beginners/arrayexamples/bubblesort.shtml http://www.roseindia.net/java/beginners/arrayexamples/BidirectionalBubbleSort.shtml 

Java Beginners

Sales System.. Need Help!! - Java Beginners
Sales System.. Need Help!!  were going to make a sales system in our... help us.. Thank you very much for your reply in my past questions you are a big help.. Thank you so much. Hope you will help me again thanks!! God Bless and more 

Java Beginners

Hi... - Java Beginners
Hi...  I want to write code for change password from data base please help me import com.binsys.utility.DBOperation; package service... java bean file for setting and getting and other is .jsp file this file 

Java Beginners

Hi... - Java Beginners
Hi...  Hi friends I want to make upload file module please help...please write the using mvc1 rule I have three field emp_id,name,file...; Hi Friend, Try the following code: 1)page.jsp: Display file 

Java Beginners

( Inheritance,need help in Polymorphism, Overriding) - Java Beginners
( Inheritance,need help in Polymorphism, Overriding)  can any one please help me create this application,thank you Advanced Concepts with Classes( Inheritance, Polymorphism, Overriding) Employees in a company are divided 

Java Beginners

need help creating a lift program - Java Beginners
need help creating a lift program  Classes, Methods, Constructors please i need help to create an elevator program Simulating an Elevator write... for any help rendered 

Java Beginners

I need help in doing this. - Java Beginners
I need help in doing this.  Student DataBase i will need creating a program that will be used to manipulate a student database. This portion..., and the student's GPA.using arrays and objects, need to structure the information 

Java Beginners

help - Java Beginners
help  hi,i am new to java & i do not have progamming background, i... shows the c:\javatutorial> in the command prompt, is there any setting i need to do or what could be the issue? plz help   hello, First complie ur 

Java Beginners

SubString help - Java Beginners
SubString help  Hi , I would appreciate if somebody could help me...... substring . If it find 35 zeros i need 10 digits in front of it along with those 35   Hi friend,import java.io.*;import java.io.IOException;public 

Java Beginners

what is the need of... - Java Beginners
what is the need of...   what is the need of " return type like void ?   Hi Friend, In java, method always require a return type.The main method is the client code therefore jvm does not expected any return 

Java Beginners

Hi Friend..IS IT POSSIBLE? - Java Beginners
Hi Friend..IS IT POSSIBLE?  Hi Friend...Thank u for ur valuable response.. IS IT POSSIBLE FOR US? I need to display the total Number od days by Each month... WAIT I WILL SHOW THE OUTPUT 

Java Beginners

Hi ..doubt on DATE - Java Beginners
Hi ..doubt on DATE  Hi Friend...Thank u for ur valuable response.. IS IT POSSIBLE FOR US? I need to display the total Number od days by Each month... WAIT I WILL SHOW THE OUTPUT: --------------------------------- ENTER 

Java Beginners

Need Help in Java programming
Need Help in Java programming  Hello. Can someone please help me with writing the following program Java program that gives assignment details such as:assignment number,assignment name,due date,submission date,percentage marks 

Java Beginners

need code - Java Beginners
need code   i want to take the html coding. if user give a input html file the out is html coding in text file. i want to take html coding only. (view -> source) . how it is possible in java.  Hi Friend, Here we 

Java Beginners

need program - Java Beginners
need program  I need a java program to get the multiple student name and mark.display the student information by sorting the marks in ascending or desending order.  Hi Friend, Try the following code: import 

Java Interview Questions

i need your help - Java Interview Questions
i need your help  Write a java program that: i. Allows user to enter 2 numbers from the keyboard ii. Uses a method to compare the two numbers... than the other.   Hi Friend, Try the following code: import 

Swing AWT

Need Help with Java-SWING progrmming - Swing AWT
Need Help with Java-SWING progrmming  Hi sir, I am a beginner in java-swing programming. I want to know how we can use the print option with a program in swing. Could you help me with an example? Regards Sreejith  

Java Beginners

need help with java program as soon as possible
need help with java program as soon as possible  So my assignment is to write a program that used while loops to perform 6 different things. 1... number.   Hi Friend, Try the following code: import java.util. 

Java Beginners

java program...need help as soon as possible!!! - Java Beginners
java program...need help as soon as possible!!!  Modify the Lexer (15 points): 1. Use a command line argument for the input file for processing tokens ? do not use simple.x 2. Recognize the new tokens > void float 

Java Beginners

Hey Guys really need to learn - Java Beginners
Hey Guys really need to learn  Im a java beginner and i want to know... u will use scanf(%d%d%d, & month, day, year). How can i do this in java? Someone can help me.. Thank you so much.   Hi Friend, There are lot 

Java Beginners

Java, CSS help - Java Beginners
Java, CSS help  I need help about menu and submenu programming? Hi there, I have 6 pages and 6 buttons, i want add submenu to each my main buttons, I have to use below code because I want use this function dynamic 

Java Beginners

help - Java Beginners
help  what is java and where we use java?  Hi friend... to : http://www.roseindia.net/java/beginners/what-is-java.shtml http://www.roseindia.net/java/beginners/where-java.shtml http://www.roseindia.net/java 

Java Beginners

( Inheritance, Polymorphism, Overriding)i need help - Java Beginners
( Inheritance, Polymorphism, Overriding)i need help  Advanced Concepts with Classes( Inheritance, Polymorphism, Overriding) i need help to create this application,than you Employees in a company are divided into the classes 

JMS Questions

Need Help on JMS - JMS
Need Help on JMS   Hi, In my application i need to create my own ques and my own QueueConnectionFactory..... Plz tell me how to create the same... Any help is appriciated,.. Thanks in advance 

Java Beginners

hi - Java Beginners
/beginners/DateDifferent.shtml http://www.roseindia.net/java/java-get-example/number...hi  hi sir, i am entering the 2 dates in the jtable,i want to difference between that dates,plz provide the suitable example sir   Hi 

Java Beginners

java - need code - Java Beginners
java - need code  i am java developer. i want to remove file from one folder and same file is paste another folder. i need this code. (java)  hi, I am sending you the code which moves the file from one folder 

Java Beginners

Need help in completing a complex program; Thanks a lot for your help
Need help in completing a complex program; Thanks a lot for your help  Hi, I am currently working on one program which works in this way. 1... content is user inputted and static content is prewritten. 3) We need to search 

Java Beginners

really need help on how to write this program plz some 1 help out. - Java Beginners
really need help on how to write this program plz some 1 help out.  i am confused here on what to write can some 1 help out here i dont quite understand how to code it so can some 1 help out. Part II Write, compile and execute 

Java Beginners

hello there i need help
i am a beginner, and aside from that i am really eager to learn java please help me with the codes and please explain to me how it works. i only need to use...hello there i need help  : i need to do a program like 

Java Beginners

need java code - Java Beginners
need java code  i want a program for an algorithm in java which is it has some transactions T1=ABCE T2=CDE T3=DE T4=CDEG T5=BG T6... result . For this algorithm i need a program can any help me 

Java Beginners

java help - Java Beginners
java help  Code a try statement that catches an IOException and an EOFException. If an IOException occurs, print the message ?An I/O error occurred....? to the console. You don?t need to code anything within the try block 

Java Beginners

Need to edit PDF files using java - Java Beginners
Need to edit PDF files using java  Hi , I need to edit the pdf files say i need to insert and replace strings like that.. will any one help me to find this..the library must be a freeware sply if it is iText..or other than 

Struts Questions

Hi
Hi  Hi this is really good example to beginners who is learning struts2.0 thanks 

Java Beginners

hi - Java Beginners
information. http://www.roseindia.net/java/ Thanks.   Hi... For read more information http://www.roseindia.net/java/beginners...hi  Hi.... let me know the difference between object and instance 

Java Beginners

Java help - Java Beginners
Java help  I need to write an application that uses the circle class. It must read a radius of a circle from the user creates a circle object, and return the object. The program creates a circle object by using the above method 

Java Beginners

java help - Java Beginners
java help  Code a try statement that catches... the message "Not a valid integer." to the console.   Hi friend, Code a try... on Java visit to : http://www.roseindia.net/java/exceptions/ Thanks 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches a NumberFormatException... stream.   Hi friend, Code a catch block that catches... information on Exception Handling in Java visit to : http://www.roseindia.net/java 

Java Beginners

seriously need help....
seriously need help....  Write a program that will prompt the user to select an appliance, lookup the energy the appliance uses and for each time... program. Use each of the following Java statements at least once in your program 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches a NumberFormatException and then prints the stack trace.  Hi friend, Code a catch block that catches a NumberFormatException and prints stack trace : class 

Java Beginners

java help - Java Beginners
java help  Code a statement to test a catch block that catches an IOException.  Hi friend, Code a statement to test a catch block that catches an IOException. import java.io.*; class IOExample { public static 

Java Beginners

java help - Java Beginners
java help  Code a try statement that calls the calculateDiscount...;Hi friend, Code to catch the IllegalArgumentException occurs : import... information on Exception Handling in Java visit to : http://www.roseindia.net/java 

Java Beginners

java help - Java Beginners
java help  Code a catch block that catches an IOException, prints the message ?An I/O exception occurred.? to the console, and then throws the exception to the calling method.   Hi friend, Code a catch block 

Java Beginners

java help - Java Beginners
java help  Write the code for a method named getFile that accepts a file name and returns a file created from the RandomAccessFile class. This method... this statement to open the file:   Hi friend, import java.io.*; Code catch 

Java Beginners

Hi..How to Display Days by month - Java Beginners
Hi..How to Display Days by month  Hi Friend.... I have a doubt... to students.... ..Thank u ..   Hi Prabhu g I am sending a link where u can find lots of examples related to data, i hope it really help 

Java Beginners

java help - Java Beginners
java help  Write the code for a method named calculateTax... with the message ?Subtotal must be greater than zero.?   Hi friend...(e.getMessage()); } return sales_tax; } } For more information on Java 

Java Beginners

Hi .Difference between two Dates - Java Beginners
Hi .Difference between two Dates  Hi Friend.... Thanks for ur Very... between two dates.. I need to display the number of days by Each Month Separately... Reply me .... Thanku   Hi friend, Code to solve 

Java Beginners

java help - Java Beginners
java help  I would like to modify the client program so that it catches input mismatch and arithmetic exceptions and asks the user to correct them...]; System.out.println("Enter a number"); x=console.nextInt(); for(int i=0;i  Hi 

Java Beginners

java help - Java Beginners
java help  Code a try statement that parses a string variable named quantityString to an int variable and then calls the calculateDiscount method... occurs, but not if an IllegalArgumentException occurs.   Hi friend 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is java?  Java is a platform independent.... Object Oriented Programming structre(OOPS) concepts are followed in JAVA as similar to C++. But JAVA has additional feature of Database connectivity, Applets 

Java Beginners

Java help - Java Beginners
Java help  Was this code created by netbeans or any other tool?? I am not supposed to use any tools. Just wondering! Thanks! import javax.swing.... i=0; i  Hi Friend, This code is created in EditPlus. Thanks 

Java Beginners

hi sir - Java Beginners
hi sir  Hi,sir,i am try in netbeans for to develop the swings,plz... the details sir, Thanks for ur coporation sir  Hi Friend, Please visit the following link: http://www.roseindia.net/java/java-tips 

Java Beginners

This is what i need - Java Beginners
. for this question i need just : one function can read string like (I like...)as (Iliketoplayfootball) without any compressing the file. thank you   Hi 

Java Beginners

Hi Check this.... - Java Beginners
Hi Check this....  Hi Sakthi here.. Run This Code..   Hi sakthi Your code is not visible here, can u send again please.. Thanks 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is object?  A Blue print of class  Hi deepthi, Objects are the basic run time entity or in other words.... http://www.roseindia.net/java/master-java/index.shtml Thanks. Amardeep 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is class?  Hi Deepthi, Whatever we can see in this world all the things are a object. And all the objects... information about class with example at: http://www.roseindia.net/java/master-java 

Java Beginners

Hi.... - Java Beginners
Hi....   Hi Friends, Thanks for reply can send me sample... me its very urgent....   Hi Friend, Plz give full details.... For example : Java/JSP/JSF/Struts 1/Struts 2 etc.... Thanks 

Java Beginners

Hi.. - Java Beginners
Hi..  Hi, I got some error please let me know what is the error integrity constraint (HPCLUSER.FAFORM24GJ2_FK) violated - parent key its very urgent  Hi Ragini can u please send your complete source 

Java Beginners

hi - Java Beginners
Hi anjali, class ploy { public void ployTest(int x...); } } ------------------------------------------------- Read for more information. http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml Thanks 

Java Beginners

hi Friend... - Java Beginners
plz Explain this...Thank u.. Sakthi   Hi friend, Java IO : The Java Input/Output (I/O) is a part of java.io package. The java.io package...hi Friend...  Hi friend... I have to import only 

Java Beginners

Hi - Java Beginners
Hi  Hi, Please send me answer of my posted question,its urgent Thanks 

Java Beginners

hi - Java Beginners
hi  hi sir,create a new button and embed the datepicker code to that button sir,plzzzzzzzzzzzzzzzzzzzzzzzzzzz 

Java Beginners

hi friend - Java Beginners
hi friend  ummm i want to know a java code ...what are the code if i want to display inverted pyramid(shape). i mean a pyramid is reversed down.... thank u friends!!!  Hi friend, Inverted pyramid code class 

Java Beginners

Hi, - Java Beginners
Hi,  Hi friends I have some query please write the code and send me.I want adding value using javascript onChange() Events...please write the code and send me ts very urgent 

Java Beginners

Hi - Java Beginners
Hi  Hi friends, I want download c&c++ software.....can u send me link....its urgent...please send me likn or site name  Hi Friend Pradip Dutta Go this link http://www.bloodshed.net/ Here you can fine your 

Java Beginners

Hi... - Java Beginners
Hi...  Hi friends, I hv two jsp page one is aa.jsp & bb.jsp... but this not working Upload Record please tell me   Hi Friend, Please clarify your question. Thanks  Hi frnd, Your asking 

Java Beginners

Hi.... - Java Beginners
Hi....  Hi Friends when i compile jsp file then got the error "code to large for try statement" I am inserted 177 data please give me solution and let me know what is the error its very urgent  Hi Ragini 

Java Beginners

hi.... - Java Beginners
hi....  Hi friends i am using ur sending code but problem is not solve my code is to much large i am this code please check it and solve its very urgent   Hi ragini, First time put the hard code after 

Java Beginners

hi - Java Beginners
hi  hi sir,i want to use the variable in 1 class to another class,how we use the 1 class variable in another class, Thanq  Hi Friend, Try the following code: class ABC { public int i=10; } public 

Java Beginners

Hi Friend... - Java Beginners
Hi Friend...  import java.util.*; // PACKAGES WHAT DOES IT MEAN ... --------------------------------------------------------- IpImage ip1... IS IT?   Hi friend, IpImage ip1=(IpImage)obj; // CREATION 

Java Beginners

Hi... - Java Beginners
Hi...  Hello Friend I want to some code please write and me I want to add dynamic row value in onChange event created dynamic... and send me..... its very urgent  Hi friend, Plz specify the technology 

Java Beginners

hi - Java Beginners
hi  hi sir,Thanks for ur coporation, i am save the 1 image with customer data,when i am search that customer data,i want to see that image... sir,plzzzzzzzzzzzz  Hi Friend, Please provide some more 

Java Beginners

Java Programming Need Help ASAP
Java Programming Need Help ASAP  You are required to develop..., maths mark, communications mark. You will then need accessor and mutator methods... class that creates an array of Students and handles it. You will need 

Java Beginners

Hi, - Java Beginners
Hi,  Hi Friends, I want to write code in java for change password please provide the code change password have three field old_pwd,new_pwd,con_pwd Thanks  Hi Friend, Create a database table login[id 

Java Beginners

hi again - Java Beginners
hi again  i did the changes on the code but still the time.../java/thread/thread-creation.shtml code after changing.. import java.io....; // testing every character for (int n=0 ;n  Hi friend, Do changes 

Java Beginners

hi - Java Beginners
hi  hi sir,good afternoon, i want to add a row in jtable when i am pressing the enter key,and that row is available to insert the data plz give the program sir,urgent Thank u  Hi Friend, Try 

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles