1 If you had the test to screen for colon cancer and you're at average risk â you have no colon cancer risk factors other than age â your doctor may recommend waiting one year and then repeating the test. 2  Positive result. 3  A fecal occult blood test is considered positive if blood is detected in your stool samples. A fecal occult blood test is considered positive if blood is detected in your stool samples. 2  You may need additional testing â such as a colonoscopy â to locate the source of the bleeding.
1 Note that we have to import java.util.InputMismatchException in order to use the InputMismatchException class.  We are using a while loop to ask the user the same question until the user enters the correct input.
This Java Program uses java.util.Scanner to get String, int and float as input from User and then finally display a dialog box using JOptionPane to get input from User. you can use any approach as per your need./** * Simple Java program to get Input from User. Shows two examples to get input from. Scanner class can be used to get different kind of input from User. * e.g. String, int, char, float and double. * * JOptionPane has static utility method which can display dialog boxes and ask. * user to enter input, a much interactive way of getting input from User.