Code example for Scanner

Methods: close

0
package codeforces.task.m162.div2.task_a; 
import java.io.PrintWriter; 
import java.util.Scanner; 
 
public class Main { 
	public static void main(String[] s) { 
		Scanner in = new Scanner(System.in); 
		PrintWriter writer = new PrintWriter(System.out); 
 
		TaskA solution = new TaskA(); 
		solution.solve(in,writer); 
 
		writer.close(); 
		in.close(); 
 
 
	} 
 
} 
 
class TaskA {