You are viewing a single comment's thread. Return to all comments →
import java.util.Scanner; class myScanner { public static void main(String[ ] args) { Scanner sc=new Scanner(System.in); String s=in.nextLine(); sc.close(); System.out.println("Hello,World.\n"+s); } } Sir,"I'm getting compliation successful message but testcases are failing why?"
Seems like cookies are disabled on this browser, please enable them to open this website
Day 0: Hello, World.
You are viewing a single comment's thread. Return to all comments →
import java.util.Scanner; class myScanner { public static void main(String[ ] args) { Scanner sc=new Scanner(System.in); String s=in.nextLine(); sc.close(); System.out.println("Hello,World.\n"+s); } }
Sir,"I'm getting compliation successful message but testcases are failing why?"