#Whats wrong with this code? the method marks() isn't allowing the user to populate the array
1 messages ยท Page 1 of 1 (latest)
I uploaded your attachments as gist. That way, they are easier to read for everyone, especially mobile users ๐
<@&987246399047479336> please have a look, thanks.
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
look closely at your for loop
you sure?
Closed the thread.
error
in ``` for(int i = 0; i>array.length; i++)
{
System.out.print("Enter mark "+(i+1)+ ":");
array[i] = sc.nextInt();
}
Detected code, here are some useful tools:
for (int i = 0; i > array.length; i++) {
System.out.print("Enter mark " + (i + 1) + ":");
array[i] = sc.nextInt();
}
yes silly mistake