Question: java and i cannot seem to fix the issue. thank you and 5 star rating File: work/RestoreBlanks.iml 1 2 import java.util.Scanner; 3 import java.util. Random;

File: work/RestoreBlanks.iml 1 2 import java.util.Scanner; 3 import java.util. Random; 4 public class RestoreBlanks{ public static void main(String[] args) { public Scanner sc = new Scanner(System.in); Random rand = new Random(); 10 System.out.print("Enter a string: "); 11 String str = sc.nextLine(); 12 int i, x; 13 x = 1; 14 System.out.print("Output of the string is: " + str.charAt(0)); 15 i = 1; 16 while (i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
