Day 0 of code: Print Hello World! hackerrank | java | tutorial

Java

Video is ready, Click Here to View ×


here is the blog link from there you can get solution of live competition https://trickyprog.blogspot.in/

day 0 code of hackerrank in java. you can learn from hello world and slowly slowly can learn all java concept
and any problem in coding ask me if possible i help you

14 thoughts on “Day 0 of code: Print Hello World! hackerrank | java | tutorial

  1. Okay okay
    i still have doubts can you clear them up for me?
    1.why did you put
    Scanner sc= new Scanner(Syatem.in);
    2.why did you put
    String s=sc.nextline();
    3.and how did that 30 days of code got into the String!?

  2. Exception in thread "main" java.util.NoSuchElementException: No line found
    at java.util.Scanner.nextLine(Scanner.java:1585)
    at sample.main(sample.java:10)
    here is my code
    public class sample {
    public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.nextLine();

    System.out.println("Hello, World.");
    System.out.println(s);
    }
    }
    what's the problem??

Leave a Reply

Your email address will not be published. Required fields are marked *