Code example for Scanner

Methods: close

0
package codeforces.task.m165.div2.task_b; 
 
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); 
 
		TaskB solution = new TaskB(); 
		solution.solve(in,writer); 
 
		writer.close(); 
		in.close(); 
 
 
	} 
} 
 
class TaskB {