I am new to programming,(Java)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



I am new to programming,(Java)



I an trying to code a input and output program some how its keeps giving me errors in the "int name=in.nextInt();" and the brackets. i keep looking at the issues and fixing but nothing seems to work. i want the user to answer a series of questions such as what is your name,enter your age,enter your favorite food.


public class Main

public static void main(String args);

Scanner Int=new Scanner(System.in) ;

int n;



System.out.print("What is your name", args) ;
int name=in.nextInt();


}

}









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS