Click here to Skip to main content
15,888,590 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
in java : i read that code and i cannot understand it and also cannot apply it on NetBeans .
int a = readInt("enter a num");
what is readInt method ? and to wich package does it belong ? and is it similar to nextInt from the Scanner class ? thank you .

What I have tried:

int a = readInt("enter a number :");
but it told me there is a problem un my code .
Posted
Updated 10-Nov-19 12:54pm

You didn't type "Java readint" into Google, did you?

Google: Java ReadInt[^]
 
Share this answer
 
If this is how it is declared
Then there is two possibilities
1. It's method of the current class.
2. Method is static inclusion. In this case look for 'import static' at the top of your source code.

If this is injected by annotation, i have nothing to say
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900