您的位置:首页 > 其它

比较三个数的大小

2011-10-27 22:19 246 查看
 /**

 * 求三个数的最大值。

 * @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();

      

 }

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  string class c