+ 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"); } }
4 Réponses
+ 4
OK..thank u
+ 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!");}
}
+ 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
- 2
Initialize the value of a...