User Profile

Collapse

Profile Sidebar

Collapse
pjsicurello43
pjsicurello43
Last Activity: Dec 22 '11, 08:48 PM
Joined: Nov 6 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pjsicurello43
    started a topic Data Validation
    in Java

    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...
    See more | Go to post

  • pjsicurello43
    replied to Rational Numbers
    in Java
    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
    See more | Go to post

    Leave a comment:


  • pjsicurello43
    started a topic Rational Numbers
    in Java

    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();
    I am thinking that if I am going to add two rationals...
    See more | Go to post
    Last edited by Meetee; Nov 7 '11, 04:40 AM. Reason: code tags added
No activity results to display
Show More
Working...