
-----------------------------------
cool dude
Sat May 13, 2006 9:16 pm

Math.max function
-----------------------------------
i'm trying to figure out the largest number out of 5 numbers user entered. i made the program but i don't really understand the function Math.max(). how does it work? and wat stuff goes in the brackets? if your interested in looking at my program here: 


import java.io.*;

public class Largest_Number{
    public static void main(String[] args){
        String snum;
        int inum;
        int sum = 0;
        int m = -999999999;
        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            for (int i = 1; i inum ? m : inum);
