Scanner sc= new Scanner(System.in); // finding if there is a digit then printing the contain and that count digit and then digit if (there is no digit present then we ...