Thanks alot, helped out heaps!
Type: Posts; User: hing09
Thanks alot, helped out heaps!
I just realised you need the { brackets for the while loop otherwise it will keep looping.
Thanks,
I have removed the } in the while loop although it now compiles but does not give me the output :(
The out put should be showing the largest number that the user has entered 5 times.
Hi all,
Does anyone know why i keep getting illegal start of type when i type System.out.println("The Largest Number is " + maxValue(numbers));
when i put // infront of it as a comment it...
Thanks helloworld922 my program now works with your solution!
Mate this is my own homework, i just don't know why its not outputting the highest number entered?
Geez take it easy..
I'm trying to create a program that asks a user to enter 5 numbers and prints the highest number entered.
So far i have:
import java.util.Scanner;
import java.io.*;
import...