DEV Community

Milena
Milena

Posted on

11 1

1/30 days of Java

In my first day of this challenge, I already found something that I did not know!

While I was coding and trying to solve this challenge, I did not know what was wrong, because it simply was not making any sense in my head. My problem was the following: I had to create three variable. One for an integer value, other for a double value and the last one, for a string. I also had inputs for all of the them. The problem was that, the compiler was not reading the last input (nextLine) and I discovered that, for some reason, when the compiler starts getting the values, it jumps the nextLine command and to solve this, we need to convert it.

I am still researching and learning about this to know why and how it works, but, pretty exciting thus far.

For curiosity, this is how I was doing:
Java code

And this is how it works:
Java code

Top comments (1)

Collapse
 
mdsujan99 profile image
Md Sujan

Great read:

Is it Time to go Back to the Monolith?

History repeats itself. Everything old is new again and I’ve been around long enough to see ideas discarded, rediscovered and return triumphantly to overtake the fad. In recent years SQL has made a tremendous comeback from the dead. We love relational databases all over again. I think the Monolith will have its space odyssey moment again. Microservices and serverless are trends pushed by the cloud vendors, designed to sell us more cloud computing resources.

Microservices make very little sense financially for most use cases. Yes, they can ramp down. But when they scale up, they pay the costs in dividends. The increased observability costs alone line the pockets of the “big cloud” vendors.

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay