#2 DIFFERENT FOR LOOPS THAT SHOULD DO THE SAME NOT WORKING

25 messages · Page 1 of 1 (latest)

abstract drift
#

I want to know why the one using for(int i=0...) works and the one that is extended doesnt

dry knotBOT
#

This post has been reserved for your question.

Hey @abstract drift! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

abstract drift
dry knotBOT
#

<@&765578700724371486>

Requested by cece#1332
feral iris
#

because element is the element

#

you dont need to use .get(element)

abstract drift
#

because if u do

#

that in tables

#

it wont work

feral iris
#

wot?

#

/run ```java
int[] arr = {9,8,7,6};
for(int element: arr)
System.out.println(element);

wispy hedgeBOT
#

Here is your java(15.0.2) output @feral iris

9
8
7
6
feral iris
#

@abstract drift

abstract drift
#

oh so thats the command ?

#

wtf

#

TYTY

#

even if

#

instead of element

#

i use x

#

or anything

#

itll be same output

#

?

#

would it be possible to get the position of element in the list @feral iris