class shu
{
int shuru()
{
int sz=0;
try{
sz=(int)System.in.read();
}catch(IOException e){}
return sz;}
}
然后我根据你的要求,自己写了一个代码,你可以看一下:
import java.io.*;
public class Test{
public static void main(String args[]) throws Exception
{
int max = 0;
System.out.println("请输入10个整数:");
int[] integers = new int[10];
for (int i = 0; i < integers.length; i++)
{
integers[i] = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());
//System.out.println(integers[i]);
}
for(int i = 0; i < integers.length; i++)
{
if (max < integers[i])
{
max = integers[i];
}
}
System.out.println(max);
}
}