+ 1
FOR LOOP ERROR
import java.util.* ; public class JavaApplication9 { public class temp{ Scanner i=new Scanner(System.in); int len = i.nextInt(); double[] temp_=new double [len]; for(int q=1; q <5; q++){ Scanner x=new Scanner(System.in); double list=x.nextDouble(); temp_[q]=list; ..\Playground\\.java:12: error: illegal start of type for(int q=1; q <5; q++){ ^ WHY IS THIS ILLEGAL START?
1 Answer
+ 7
lemme see your full code with code playground link instead