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.
yes, I know that. However, the problem we are facing is that while we are not printing anything, the checker is telling us that our answer is wrong because of a newline character in the output line of the prewritten code.
// Print the result of 3 calls to Adder's `add(int,int)` method as 3 space-separated integers:
System.out.print(a.add(10,32) + " " + a.add(10,3) + " " + a.add(10,10) + "\n");
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Inheritance II
You are viewing a single comment's thread. Return to all comments →
yes, I know that. However, the problem we are facing is that while we are not printing anything, the checker is telling us that our answer is wrong because of a newline character in the output line of the prewritten code.