[CODE=java]
public class test{
public static void main()
{
a1(new int[]{1, 2, 3, 4});
}
static int a1(int[] a)
{
int max1 = -1;
int max2 = -1;
for (int i=0; i<a.length; i++)
{
if (a[i] > max1)
{
max2 = max1;
max1 = a[i];
}
else if...
User Profile
Collapse
-
help
Last edited by r035198x; Mar 28 '08, 09:54 AM. Reason: added code tags, please don't forget them next time
No activity results to display
Show More