Computer Science, asked by Anonymous, 11 months ago

write a program in bluej to input a bad Number. please don't spam with answer. if u will do i will report the answer. so please don't do that​

Answers

Answered by Pravinojha
1

Answer:

1.The three ways to take the input in java are: "By Buffered Reader Class","By Console Class" and "By Scanner Class."

Answered by prashantrohilla32
1

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

   

    Scanner sc=new Scanner(System.in);

    int a;

 System.out.println("Enter bad number");

 a=sc.nextInt();

 System.out.println("Bad number= "+a);

}

}

Explanation:

Similar questions