I am creating a program for my java class and I need to find a way to check a double and see if it has a decimal. Is there any way to do this. Here is the code from the program:
import java.util.Scanner;
import java.text.DecimalFormat;
public class MethodsSurprise {
public static void...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.