We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Writer out = new BufferedWriter(new OutputStreamWriter(System.out));
Read the javadocs on the Writer. Also when writing I had to surround the write statement with a try catch block because the method can throw an exception. Feel free to ask for more clarification.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bigger is Greater
You are viewing a single comment's thread. Return to all comments →
Writer out = new BufferedWriter(new OutputStreamWriter(System.out));
Read the javadocs on the Writer. Also when writing I had to surround the write statement with a try catch block because the method can throw an exception. Feel free to ask for more clarification.