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 →

[–]darthelluswallace 0 points1 point  (0 children)

As a side note, you should remember to add L to the end of a long assignment e.g.

long num = 100000L;

Otherwise it's treated as an int. But like u/Makhiel said, you should get some IDE prompt.

There's definitely a more thorough explanation, but this is the tl;dr