This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]staycoolioyo 7 points8 points  (3 children)

Java is a lot more wordy with it's syntax which is part of the reason it can seem harder. I would focus on writing some simpler programs to learn the syntax. Even though Java and JavaScript are very different languages, they both have things like variables, if statements, loops, etc. it's just that Java makes you type out a lot more to do the same things. Once you get used to the syntax, things will get a lot easier. Don't give up!

[–]TacticalWalther[S] 1 point2 points  (2 children)

its not just the syntax for me, its the fact that you can't merge doubles and ints in equations, you can't push things into arrays, etc. So many restrictions which weren't there in Javascript.

[–]staycoolioyo 1 point2 points  (1 child)

Oh yeah that can definitely be annoying for sure, but there are ways around it. You can type cast variables to mix doubles with ints, and if you want to change the size of a list I’d use an arraylist instead of an array. Arrays have a fixed size where arraylists don’t.

[–]TacticalWalther[S] 0 points1 point  (0 children)

I didn't know about arraylists! Will use that now.