Question: Explain line by line the following and code and why it doesn't work and which lines contains and error.This is using java: public class Array1

Explain line by line the following and code and why it doesn't work and which lines contains and error.This is using java:


public class Array1 (1 public static void main(String[] args) { int array[] 

public class Array1 (1 public static void main(String[] args) { int array[] = new int[11],i; for (1-2; i -2; i--) { System.out.println(i + "^3 = " + array[i] + 'n'); } } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Public class Array The keyword Public should be public as it is casesensitive in Java Th... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!