I am new to programming,(Java)
Clash 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.