+ 3

Output...is not coming...plz anyone check my program &...tell me the mistake

class apple { void find(int a) { if(a==10) System. out. println (" hello"); else System. out. println(" hi"); } }

21st Jan 2017, 10:24 AM
Dolu
Dolu - avatar
4 Respuestas
+ 4
OK..thank u
21st Jan 2017, 10:31 AM
Dolu
Dolu - avatar
+ 4
import java.util.Scanner public static void (String[] args){ System.out.println(" Please enter any number between 1-20"); Scanner input = new scanner (System.in); int a = nextInt(); if(a==10){ System. out. println (" Wow you have entered correct number ");} else{ System. out. println("Better luck next time!");} }
21st Jan 2017, 3:47 PM
Noman Shakoor
Noman Shakoor - avatar
+ 1
variable a value should be initialised. By convention, class name should begin with capital alphabet, and you have also given space between System.out
26th Jan 2017, 12:43 PM
Kumar Abhishek
Kumar Abhishek - avatar
- 2
Initialize the value of a...
3rd Feb 2017, 4:40 PM
Ashu Bagul
Ashu Bagul - avatar