获取三个数据的最大值:

class Hello2 {
public static void main(String[] args) {
int a = 10;
int b = 20;
int c = 30;
int max;
if (a > b){
if (a > c)
{
max = a;
}else {
max = c;
}
}else {
if (b < c)
{
max = c;
}else {
max = b;
}
}
System.out.println("max = " + max);
}
}

结果:

最新文章

  1. Python模拟HttpRequest的方法总结
  2. ffmpeg 音频转换: use ffmpeg convert the audio from stereo to mono without changing the video part
  3. php 投票系统练习
  4. linux服务器报Too many open files的解决方法
  5. hydra爆破用法
  6. php 类
  7. 通过magento后台的magento connect安装magento extension
  8. Eclipse设置软tab(用4个空格字符代替)及默认utf-8文件编码(unix)
  9. JS中的自执行函数
  10. JS——基础知识(三)
  11. Tomcat和java的安装
  12. SqlServer存储过程,学习
  13. /etc/hosts,GoldenGate
  14. eclipse 关联 Maven本地仓库的配置
  15. React(0.13) 定义一个动态的组件(函数作为动态的值)
  16. hadoop hbase install (2)
  17. kafka操作清单
  18. python常用工具
  19. 为Linux设置IPTables防火墙
  20. luogu 1437 敲砖块(DP)

热门文章

  1. BZOJ 5450 轰炸 (强连通缩点+DAG最长路)
  2. Spring bean相关
  3. go中基本数据类型的默认值
  4. Solr的学习使用之(二)schema.xml等配置文件的解析
  5. OC学习--继承
  6. Windows下svn使用教程
  7. 第二节:链接mongodb服务器
  8. Ubunu12.04 vncserver xstartup配置文件
  9. eclipse 启动项目 报错 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderLis(亲测)
  10. 【SPOJ1811】Longest Common Substring(后缀自动机)