java notes

Addition from time to time

BufferReeader

BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine())

//Divided by spaces
String[] str = line.split(" "); 

cast

//string->int
int i = Integer.parseInt(str); 

Scanner

 Scanner scanner = new Scanner(System.in);

In order not to become TLE with AtCoder

・ Do not use break ・ BufferedReader from Scanner ・ When the order exceeds O (N²), it definitely looks like an out.

Recommended Posts

java notes
Java Generics (Notes)
[Java] Array notes
[Java] Study notes
Java serialization notes
[Java] Stream Collectors notes
Java formatted output [Notes]
[Java] Control syntax notes
Java NIO 2 review notes
Java
Java
[Java] Basic method notes
Try scraping using java [Notes]
[Implementation] Java Process class notes
Java learning (0)
Studying Java ―― 3
[Java] array
Java protected
[Java] Annotation
[Java] Module
Java array
Studying Java ―― 9
Java scratch scratch
Java tips, tips
Java methods
Java method
java (constructor)
Java array
java (override)
java (method)
Java Day 2018
Java string
[Java] Basic types and instruction notes
JUnit 4 notes
Java static
Java serialization
java beginner 4
JAVA paid
Studying Java ―― 4
Java (set)
[Java] compareTo
Studying Java -5
java reflexes
java (interface)
Java memorandum
☾ Java / Collection
Java array
[Java] Array
Studying Java # 0
Java review
java framework
Java features
[Java] Inheritance
FastScanner Java
Java features
java beginner 3
Java memo
Java inheritance
[Java] Overload
Java basics
[Java] Annotation