Welcome Guest.

2Answers

Java can’t find symbol

Asked by: Walter 190 views IT November 8, 2018

import java.util.Scanner;

public class Test{

public static void main(String[] agrs){

Scanner in=new Scanner(System.in);

System.out.println("Please enter your name:");

String name=in.next();

System.out.println("Please enter your age:");

int age=in.nextlnt();

System.out. Println("Please enter your gender:");

String sexuality= in.next();

System.out.println("name"+name );

System.out.println("age"+age);

System.out.println("gender"+sexuality);

}

}

Why can't I find the symbol in the eighth one?

2 Answers

  1. +2Votes  

    What symbol to look for

    Question: is the prompt error

    Answer: int age=in.nextlnt();
    This sentence is wrong, what you compiled, did not give you an error, actually can still run

    Answer: Change it can be

    Question: How should I write? Learning is not very understanding

    Answer: You are not written in software, pure hand to play? Int age=in.nextInt(); int is i is not L, are you playing L, lI seeing that they are a lowercase L, an uppercase i looks more like

    Question: I just learned to play with pure hands The int is not i is not l

    Answer: This is the wrong sentence, you see it yourself, the red is wrong, the following sentence is correct

    Ronald Brown- November 8, 2018 |

  2. +5Votes  

    Are you writing English I as a number 1

    Stephen Cook- November 8, 2018 |