I did the solution with the help of the new feature "download correct solution". Who can explain how it works and what it doing? I tried to run that code in Idea, but there is nothing coming out to console,despite it passing validator - i am stil not fully understand what it doing. Even debuging didn't help. package com.codegym.task.task13.task1318; import java.io.*; import java.util.Scanner; /* Reading a file */ public class Solution { public static void main(String[] args) throws IOException { // write your code here BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //reading from console String g = br.readLine();//putting it to variable FileInputStream stream = new FileInputStream(g);// searching "variable path" on the disk Scanner scanner = new Scanner(stream); // USUALLY FOR USING IT HAS TO BE SYSTEM.IN INSIDE StringBuilder builder = new StringBuilder();// I've read what it is,we want to build String while (scanner.hasNextLine()) { builder.append(scanner.nextLine()).append("\n");//why we using 2 append,and what the heck is "\n" } System.out.println(builder.toString());// nothing coming to console,but validator satisfied, but not me,i didn't get it :( scanner.close(); br.close(); } }