#Array + random teacher task

1 messages · Page 1 of 1 (latest)

glacial pier
#

Can someone just remind me of the syntax for arrays I feel like I know how to do this (just need to make 2 arrays then compare the index's to each other to check if they wrote the correct answer or not)

silk dewBOT
#

<@&987246399047479336> please have a look, thanks.

glacial pier
#

i cant specifically remember

#

i think it was something like

#

int variable [item 1, item2, };

#

something like that

viscid slate
#

int[] array = {1,2,3}; i think

glacial pier
#

oh

#

in this case would it be string

viscid slate
#

But for small things like these, it helps to google them

#

Saves time

glacial pier
#

oh wait yeah ur right

#

thats mb

#

i jsut realised i have gooogle

#

😭

#

sorry about that

viscid slate
#

Nah it is alright

glacial pier
#

uh

#

i wrote this out

#

String[] myArray = new String[] {String hot, String summer, String hard, String dry, String simple, String light, String weak, String male, String sad, String win, String small, String ignore, String buy, String succeed, String reject, String prevent, String exclude};

#

and its giving me errors

viscid slate
#

You cant do String text you have to do "text"

glacial pier
#

oh yeahh