Code example for Scanner

Methods: close

0
package codeforces.task.m162.div2.task_c; 
 
import java.io.PrintWriter; 
import java.util.Scanner; 
 
public class TestTaskC { 
 
	public static void main(String[] s) { 
		Scanner in = new Scanner(TestTaskC.class.getResourceAsStream("testC.txt")); 
		PrintWriter out = new PrintWriter(System.out); 
 
		new TaskC().solve(in, out); 
//		new TaskC().betterSolve(in,out); 
		in.close(); 
		out.close(); 
	} 
}