Here, I am trying to start an array of objects in Java, but I did not know that one The nested array of objects I tried to create an array of objects with the first element as a string and create an array of strings as the second element.
The error message I received is:
Main Java: 8: Error: invalid starter for object and this error Generating code was:
import java.util. *; Import java.lang *; Class main {public static zero main (string [] args) java.lang.Exception {Object] [] Multi-functional object throws = {"Hi!", {5, 5}}; }}
For some reason, even if you have new in front of the main array Object [] , it appears that you need one for the internal array: object [] multidimensional objectArere = {"Hi!", New object [] ( 5, 5}};
No comments:
Post a Comment