New course! Every coder should learn Generative AI!
Try a free lesson0
How to insert a two decimal place input using java
3 Answers
+ 5
nextDouble method
+ 4
import java.util.Scanner; // first line of programme
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
0
Can you give an example outline