I just wrote this program on Programiz Online Compiler.
Struggling with Programiz
How to make two files within one project in an online compiler?
Java compiler running in-browser?
Videos
When you assign 7.0 to both integer variable and float variable they return true and execute first line of print statement but further any addition of decimal points executes else condition
Not sure if it's because i'm not cut out for programming, or if this tool is just confusing, but sometimes during the lessons it'll change something random and not explain why. I remember it's done this 3 time so far and it leaves me incredibly frustrated. The most recent one was that for every single piece of code before this, we would always get user input BEFORE any thing else. It was the first thing we did. In one challenge, I wrote the code perfectly, except I asked for the input first, like I always have, but this time my code didnt work. And i was frustrated for a while and couldnt figure out what was wrong, and when I asked for the answer my code was exactly the same as theirs except the input was after a while True loop, no explanation why. Is there an obvious reason why this is that I just missed? Or maybe I need to find a better teacher that actually explains things?
I'm using an online java compiler on the browser because my school issued laptop does not allow me to download Eclipse. But in this website, I can only have one file. I want to one file for construction and one for running but I'm unable to do it.