Question: Java Language-Does anyone understand the red words? Current document is out of sync with the Interactions Pane and should be recompiled! import java.util.*; public class
Java Language-Does anyone understand the red words?
"Current document is out of sync with the Interactions Pane and should be recompiled!"
import java.util.*; public class Main{ public static void main(String args[]){ int[] arr1=new int[20]; Random rand=new Random(); for(int i=0;i<20;i++){ arr1[i]=rand.nextInt(10)+1; } int arr2[]=new int[20]; arr2[0]=arr1[0]; for(int i=1;i<20;i++){ arr2[i]=arr1[1]+arr1[i-1]; } System.out.println("Arr1: "+Arrays.toString(arr1)); System.out.println("Arr2: "+Arrays.toString(arr2)); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
