User Profile
Collapse
-
i really cannot thank you enough, that was such a big help.... :) -
help with Scanner
Hey guys, im trying to finish an assignment for a java class, and i have finished the program except for one part. The program requires that i take 3 values inputted from the user, the first 2 must be digits between 0 and 9, and the third an operator.
the operator decides if the two numbers are added subtracted...et c. anyways the things i cannot get, is i need to check if they enter valid digits, and not letters, however if i do put a letter...Last edited by Nepomuk; Feb 20 '09, 05:26 AM. Reason: Code belongs in the [CODE] tags, not [QUOTE] tags. ^^ -
ROFL never mind.....
i was raising the WHOLE formula with Math.pow and not the part i needed to.... please disregard my question....Leave a comment:
-
Please help with Math.pow
I am trying to write a program that will calculate monthly payments based on information entered by the user. however, when i used math.pow it returns infinity. i know my formula is right i have tested it with a calculator 100 times now, i just dont get why its returning infinity.
this is my code...
[code=java]
import java.util.Scann er;
public class problem2 {
public static void main(String[]args)...
No activity results to display
Show More
Leave a comment: