Ask coding questions

← Back to all posts
Qwerty Ask 2#

This is the code of Hi! I'm Qwerty.
There are 3 errors.
Hint: Check the link to see my original Hi! I'm Qwerty

Answered by Coder100 (17013) [earned 5 cycles]
View Answer
Coder100 (17013)

There's a lot more than three...


Should be consistent, so you should have:

class Main
  public static void main(...)


Don't forget to do read.close at the end


Don't forget to encapsulate "


Don't forget to call the constructor using new


Java is different from C#. Methods are likeThis and not LikeThis. So, it is nextInt, not NextInt

All together

import java.util.Scanner;
class Main
  public static void main(String[] args)
    System.out.println(" Hi Unknown Person");
    Scanner read = new Scanner(;
    System.out.print("Enter your name so I know who you are: ");
    String nameKid =;
    System.out.print("Enter your age. Yeah. : ");
    int ageKid = read.nextInt();
    System.out.println("Hi uh. I forgot your name. Oh! It's " +  nameKid + " I'm  " +  ageKid + " to! " + ", A tornado is coming your way! Run! ");



Can someone lend me their codes so I can make Qwerty Asks #3?


No homework.

SixBeeps (5062)

Line 11, you forgot the starting "


I'm a starter in coding so I'm gonna say ???

ch1ck3n (1626)

Please don't post homework here