Also it would be ast = in.NextDouble() not in.nextInt() because you declared ast as a double.
Type: Posts; User: llowe29
Also it would be ast = in.NextDouble() not in.nextInt() because you declared ast as a double.
Use system.out.printf();
Here is the API
Complete Printf for Java Format String Specification