SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to print/write double value at console then use System.out.printf() or System.out.format() methods.
System.out.printf()
System.out.format()
System.out.printf("\n$%10.2f",shippingCost); System.out.printf("%n$%.2f",shippingCost);