/**
* 求三个数的最大值。
* @author rui
*
*/
public class Max {
int a=29;
int b=34;
int c=37;
private void min() {
Max temp=new Max();
int max=temp.a;
if(max<temp.b)
{
max=temp.b;
}
if(max<temp.c)
{
max=temp.c;
}
System.out.println(max);
}
public static void main(String[] args) {
Max maxx=new Max();
maxx.min();
}
}
* 求三个数的最大值。
* @author rui
*
*/
public class Max {
int a=29;
int b=34;
int c=37;
private void min() {
Max temp=new Max();
int max=temp.a;
if(max<temp.b)
{
max=temp.b;
}
if(max<temp.c)
{
max=temp.c;
}
System.out.println(max);
}
public static void main(String[] args) {
Max maxx=new Max();
maxx.min();
}
}