public class First
{
public static void main(String[] args)
{
int a;
a=EasyIn.getInt();
System.out.println(" the value of a " +a);
}}
// this code is showing an error of " easy In " not finding symble.
// help me

Recommended Answers

All 4 Replies

you are calling the method getInt() from the class EasyIn. unless you have written a class EasyIn, that class does (as far as I know) not exist.
if you did make it, you need to import it.
or, you could use the Scanner class instead.

Where is EasyIn defined? Is it a class that is in a jar file that you need to include on the javac program's classpath?

Where did you find EasyIn? Is there any doc there about it?

you are calling the method getInt() from the class EasyIn. unless you have written a class EasyIn, that class does (as far as I know) not exist.
if you did make it, you need to import it.
or, you could use the Scanner class instead.

since someone thinks this answer of mine is negative input, would that person be so kind as to share with me why it is wrong? if it indeed is nonsense, informing me why might help me giving the correct answer next time.

commented: To counter the down arrow +13

Let us know if you find out how to determine who presses those arrows.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.