{"action":"opened","issue":{"url":"https://api.github.com/repos/linglongchen/firstweb/issues/1","repository_url":"https://api.github.com/repos/linglongchen/firstweb","labels_url":"https://api.github.com/repos/linglongchen/firstweb/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/linglongchen/firstweb/issues/1/comments","events_url":"https://api.github.com/repos/linglongchen/firstweb/issues/1/events","html_url":"https://github.com/linglongchen/firstweb/issues/1","id":258468616,"number":1,"title":"java","user":{"login":"linglongchen","id":31821538,"avatar_url":"https://avatars0.githubusercontent.com/u/31821538?v=4","gravatar_id":"","url":"https://api.github.com/users/linglongchen","html_url":"https://github.com/linglongchen","followers_url":"https://api.github.com/users/linglongchen/followers","following_url":"https://api.github.com/users/linglongchen/following{/other_user}","gists_url":"https://api.github.com/users/linglongchen/gists{/gist_id}","starred_url":"https://api.github.com/users/linglongchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linglongchen/subscriptions","organizations_url":"https://api.github.com/users/linglongchen/orgs","repos_url":"https://api.github.com/users/linglongchen/repos","events_url":"https://api.github.com/users/linglongchen/events{/privacy}","received_events_url":"https://api.github.com/users/linglongchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-18T12:53:20Z","updated_at":"2017-09-18T12:53:20Z","closed_at":null,"author_association":"OWNER","body":"import java.util.Scanner;\r\npublic class while1 {\r\n\r\n\tpublic static void main(String[] args) {\r\nScanner sc = new Scanner(System.in);\r\n\r\n\t\t\t\t//键盘录入数据\r\n\t\t\t\tSystem.out.println(\"请输入第一个数据：\");\r\n\t\t\t\tint a = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"请输入第二个数据：\");\r\n\t\t\t\tint b = sc.nextInt();\r\n\r\n\t\t\t\t//调用方法\r\n\t\t\t\tboolean flag = compare(a,b);\r\n\t\t\t\tSystem.out.println(flag);\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t\t比较两个数是否相等\r\n\t\t\t\t两个明确：\r\n\t\t\t\t\t返回值类型：boolean\r\n\t\t\t\t\t参数列表：int a,int b\r\n\t\t\t*/\r\n\t\t\tpublic static boolean compare(int a,int b) {\r\n\t\t\t\t/*\r\n\t\t\t\tif(a == b) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t*/\r\n\r\n\t\t\t\t//三元格式1\r\n\t\t\t\t//boolean flag = a==b?true:false;\r\n\t\t\t\t//return flag;\r\n\r\n\t\t\t\t//三元格式2\r\n\t\t\t\t//return a==b?true:false;\r\n\t\t\t\r\n\t\t\t\t//最终版\r\n\t\t\t\treturn a == b;\r\n\t}\r\n}\r\n\r\n"}}
{"actor":{"display_login":"linglongchen"}}