- 博客(3)
- 收藏
- 关注
原创 Java Output Format
Note:这些内容都是来自hackerrank的题目笔记和讨论区。先看这道题的解法:import java.util.Scanner;public class Solution {public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.println(
2017-03-06 22:13:32
363
原创 Java Stdin and Stdout II
Note: If you use the nextLine() method immediately following the nextInt() method, recall that nextInt() reads integer tokens; because of this, the last newline character for that line of integer input
2017-03-05 19:45:43
686
原创 Java && ||
我先写在这里以免自己老是忘记。1、&&是且2、||是或3、在if 判断的括号里面:if(n&2==1){...} else(2<n<6){...}//错误 else(2<n%%n<6){...}//正确
2017-03-05 19:41:16
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人