0

Any reason this dosent work in sololearn?

import java.io.Console; public class Program { public static void main(String[] args) { Console console = System.console(); console.printf("hello"); } }

7th Sep 2017, 7:04 PM
D_Stark
D_Stark - avatar
2 Answers
+ 5
I did not know printf works in java.
7th Sep 2017, 7:18 PM
Manual
Manual - avatar
+ 2
try print or println instead of printf, it might work
7th Sep 2017, 7:18 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar