文章标题
来源:互联网 发布:openwrt 网络唤醒 编辑:程序博客网 时间:2024/06/13 06:20
//测试局部变量的程序;public class variablePart { public void eat() { int i = 12; String eat = "午饭时间"; String tea = "下午茶时间"; if (i > 11 && i < 14) { System.out.println("现在是" + eat); } else if (i > 14 && i < 18) { System.out.println("现在是" + tea); } } public void tea() { int i = 16; String eat = "午饭时间"; String tea = "下午茶时间"; if (i > 11 && i < 14) { System.out.println("现在是" + eat); } else if (i > 14 && i < 18) { System.out.println("现在是" + tea); } } public static void main(String[] args) { variablePart var = new variablePart(); var.eat(); var.tea(); }}
阅读全文
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- Android与服务器通过Servlet进行双向通信
- centos 通过rsync实现远程文件同步
- python 3.X版本 利用urllib.request 通过制定的URL抓取网易内容
- codeblocks运行时提示Can't find compiler executabl...
- 字符集与编码
- 文章标题
- 最新版Oracle数据库的PLSQL安装链接服务器
- Error:Execution failed for task transformClassesWithDexForDebug
- TypeScript 学习笔记:属性索引器
- ios10 禁止用户缩放失效
- How to output the message when using the function 'printf'
- Freemarker TemplateLoader.findTemplateSource("WEB-INF/template/index.html"): Not found错误原因
- form表单提交方式
- 面试可能问到的问题