Learn to Code via Tutorials on Repl.it!

← Back to all posts
if you want to learn Java basics,
GordonHuang4

This is the place! also capital matters in java so........... LOOK IN THE CODE :)

Voters
GordonHuang4
Comments
hotnewtop
Bunnytoes

I think you should add some more stuff

GordonHuang4

@Bunnytoes well its hard tho also i 4got how to do for loops AGAIN

Bunnytoes

I can help :) @GordonHuang4

GordonHuang4

@Bunnytoes Sure :)

Bunnytoes

@GordonHuang4
for loops and foreach
for loops are structured like this

i++, i goes up after each loop and opposite for i-- and ++i does this

foreach is like this

if you use enum put the enumname.value() like this

example of a for loop

output:
i is 0
i is 1
i is 2
if we used ++i it would start at i is 1
check out this it is a cipher program that uses a lot of for loops
ping me if you need any help :)

GordonHuang4

@Bunnytoes Thanks :)!

Bunnytoes
VulcanWM

Nice! I feel like this is better than the Python one

GordonHuang4

@VulcanWM its a bit harder to me i also have an html one that really all i know

GordonHuang4

@VulcanWM thanks :)

GordonHuang4

@VulcanWM the html one was 7 days ago

VulcanWM

that’s at least better than me
I only know Python and a bit of JavaScript @GordonHuang4

VulcanWM
GordonHuang4

@VulcanWM i think this isn't javascript this is java javascript is combined with html

GordonHuang4

@VulcanWM wait isn't it lunch?

VulcanWM

Yeah I know @GordonHuang4

GordonHuang4

@VulcanWM umm the air is polluted

GordonHuang4

@GordonHuang4 now its not

VulcanWM

I probably live in a different time zone to you
It’s 7:16pm @GordonHuang4

GordonHuang4

@GordonHuang4 the air quality is at 60

GordonHuang4

@GordonHuang4 now it is

GordonHuang4

@VulcanWM its 11:18 here

VulcanWM

ah okay @GordonHuang4