User Profile
Collapse
-
Data Validation
So I have a class called lines and main called line Tester, I put an (if) statement in class lines that will check my input for negative values.Compiles fine, in my main I am using Switch/case method for my menu. I am not sure how to call my validation that I built in class lines. and were do I put it, tried within the Switch/case within the case one were my data is being entered but it barked at me,any suggestion project is due Wednesday at midnight... -
Thank you Just finished the project Loving the feeling of finishing. I really enjoy java so much more solid then python. Thanks again for all the help -
Rational Numbers
My question is this. I want to add two rational numbers together. Does that mean that I will need two sets of input scanners such this:
Code:Scanner keyboard = new Scanner(System.in); System.out.println("Enter numerator: "); num = keyboard.nextInt(); System.out.println ("Enter Denomenator: "); den = keyboard.nextInt();
No activity results to display
Show More
Leave a comment: