+ 3
What's it problem???
import java.util.*; public class Ghh { public class void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("please enter an integer"); int n = input.nextInt(); if(n == 6) { System.out.println("it is 6."); } else { System.out.println("it is not 6"); } } }
2 Respostas
+ 9
public class void main(String[] args)
Should be
public static void main(String[] args)
+ 2
Tnx alot🙏🙏🙏