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
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
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
Math,
5 months ago
Science,
5 months ago
Hindi,
5 months ago
Environmental Sciences,
11 months ago
English,
11 months ago