#Variable not working

1 messages · Page 1 of 1 (latest)

lofty emberBOT
#

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

junior plume
#

try using int a and int b instead of Integer a and Integer b

#

you can also use a.toString() instead of Integer.toString(a)

#

otherwise hover over the variable names with red underlines and send the error/warning here

limber heart
#

Well yeah, dont use the wrapped class for such.

#

Just use the primitive type int as exokem suggested

#

You than dont have to make a String of that int when printing to the console

#

It will be handled automatically

#

And instead of a += 1 you can do a++ which is just shorter and more common

#

Your class name should also be Uppercase instead of lowercase, thats Java convention

#

script -> Script

#

Even tho its not considered a script but I already talked too much pepekek

near nexus
#

@lilac spindle ↑
Also, you don't need to call toString when appending to a string

lilac spindle
#

ok thanks a lot I will try my best

#

Well

#

doesn't work as I wanted it to

#

I want it to print in the console the result

#

in this case : 12 12; False

#

for 400 times with diferent values