Answer:
import java.util.Scanner;
public class Comma {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("please enter an ineger between 1,000 and 999,999");
String number = input.nextLine();
System.out.println(number.replace(",", ""));
}
}
Step-by-step explanation:
here is the solution