Loops in Java: for, forEach, while, and do-while
Java has four ways to write a loop, and most code only needs two of them. Here’s the difference between each, when to use which, and the few places choosing wrong actually matters.
Tag
4 articles tagged #programming basics. See all tags →
Java has four ways to write a loop, and most code only needs two of them. Here’s the difference between each, when to use which, and the few places choosing wrong actually matters.
An IDE is a text editor with steroids. The features that make one an IDE (instead of just an editor) are the difference between writing code and fighting your tools.
Java has eight primitive types. Everything else is an object. Knowing what each primitive does, and which ones you should default to, prevents most of the silly bugs new Java developers ship.
HTML defines what a page contains. CSS defines how it looks. The relationship between them is one of the cleanest separation-of-concerns examples in computing, and it's also a lot more nuanced than most beginner tutorials let on.