2/11


#1

i have no idea where to type, int on this part of java script... way to confusing, help please!!


#2

This is Java, not JavaScript. There is a huge difference.

Could you explain the problem you are having a little better?


#3

lol i meant java. sorry. i failed at it so many times that it ended up just doing it for me.


#4

i do not get step five. the first instruction to step five of java says: set the int variable to myNumber equal to the value of 42... i have no idea what any of that means.


#5

It is asking you to set the integer myNumber equal to 42.

You would do that like this:

int myNumber = 42;

int means the variable you are declaring is an integer.

myNumber is the name of your variable.

= sets myNumber equal to the integer that follows.

42 is the integer that you set myNumber equal to.

; <--- This semicolon ends the statement.

I hope this helps even the slightest bit.


#6

@savi1234567890,
Have a read
https://docs.oracle.com/javase/tutorial/java/javaOO/variables.html


#7

thanks it helps a lot