+ 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"); } } }

4th Jan 2021, 7:47 AM
Amateur
2 Respostas
+ 9
public class void main(String[] args) Should be public static void main(String[] args)
4th Jan 2021, 7:58 AM
Ipang
+ 2
Tnx alot🙏🙏🙏
4th Jan 2021, 8:01 AM
Amateur