
Java: incompatible types: String cannot be converted to int, and how to fix it
nextLine() always gives you text. Here's why Java won't put it into an int, and the fix with Integer.parseInt.
Short coding lessons for beginners in Python, Web, SQL and Java. Learn by writing code yourself, with hints instead of answers. By Craftstack Academy, an AI coding tutor.

nextLine() always gives you text. Here's why Java won't put it into an int, and the fix with Integer.parseInt.
input() always gives you text. Here's why Python refuses to subtract it, and the one-word fix.

SQLite thinks your value is a column. Here's why, and the five causes that produce this error.

JavaScript didn't find your element. Four causes, four fixes, and the errors that look alike.

Stop fearing red text. Find the what, the where, and the question to ask, with real examples from the most common beginner errors.

Open Python and type this: print(0.1 + 0.2) You'd expect 0.3. Python gives you this: 0.30000000000000004 And it gets stranger: print(0.1 + 0.2 == 0.3) False If you're learning to code, this is the