Ask your own question, for FREE!
Computer Science 7 Online
OpenStudy (mokeira):

How do I get the first 5 integers in java... im stuck

OpenStudy (kainui):

I'll help you out, show me your best attempt. use this symbol ` three times to make code stuff and three more times to end it, here's a simple example: ``` public static void main(String[] args){ int bob = 3; } ```

OpenStudy (mokeira):

hmmm.....hasn't what you have done assigned the integer bob a value of 3?

OpenStudy (kainui):

Yeah, I was just showing how you can use this symbol '

OpenStudy (mokeira):

i cant see the symbol in your code

OpenStudy (woodrow73):

if you use the ``` key 3 times like I did before you type code and after you type the code, it will give it a cool format like: ``` I'm written below 3 ` and above 3 ` ``` the ` key should be near the top left corner of your keyboard.

OpenStudy (mokeira):

ok...i still dont understand lol sorry

OpenStudy (woodrow73):

http://docs.oracle.com/javase/tutorial/java/nutsandbolts/for.html if you want to learn the for loop - it'll surely help you with your question.

OpenStudy (woodrow73):

this tutorial is probably better: http://www.javamex.com/tutorials/java/for_loop.shtml#.VFlcQ_nF98E

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!