Enter three sides for a triangle: 1.2 3.5 6
The area of the triangle is xxx.x
However I get error after i typed 3 inputs
Learning language is easy but learning basics is difficult
posted 8 months ago
the nextLine method will return everything entered up to the Enter key.
If you want to enter the data on one line use the next or nextDouble method to read individual tokens
If you want to use the nextLine method, press Enter after every number has been entered.