Search:

Type: Posts; User: macko

Search: Search took 0.09 seconds.

  1. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    True but his main problem is he lacks the ability to debug...

    You cannot in any circumstance build a project of decent size without debugging, Doing what his done will cause him to have to go...
  2. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    i give up...

    Ive meant you write code to actualy initialize the values.. such as firstnum = console.readline(); or so on...

    I may take kevins blog advice, Although might have to break it and...
  3. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    Can you just read my posts and follow them O_O... nobody here will "give you the code" java can be frustrating at times, We all deal with it.

    If what you are doing is beginner java which it looks...
  4. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    There you go... you've got the debugging now.. work out how you would fix that..

    As ive said i will not help complete home work.. Now that you know what the outcome is doing.. try changing it and...
  5. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    True it's just that when you first declare firstnum = 0...

    its hard to do the debugging, Hence if you remove the = 0

    Then if the next line doesn't go through properly you can see that firstnum...
  6. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    Forget my crappy first comment, Upon further reading i had discovered the real error obv.. as ive updated ;)
  7. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    try saying

    int firstnum;
    int secondnum;
    int thirdnum;

    and then simply under your custom error message type
    System.out.println(firstnum + " " + secondnum + " " + thirdnum);

    You will then...
  8. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    Sorry, As i have said:



    You need to actually learn yourself rather then me simply giving the code to you, What will you do once you've finished java? so please follow mine and others guides...
  9. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    simply change the value of first, second and third to String or w.e ur wanting lol :D I've clearly said that this is for demo only.

    As i've said tho try actualy sending the values from the console...
  10. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    Correct me if im wrong but.. is this not what you're trying to do only simplified?



    public demo() throws Exception{
    // CREATE SCANNER
    Scanner sc = new Scanner(System.in);

    // GET...
  11. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    take a look at this demo ive just done on console reading / writing:



    public demo() throws Exception{
    // GET FIRST NUMBER
    Scanner sc = new Scanner(System.in);...
  12. Re: FractionCalculator StringTokenizer with parsing DUE IN 4 HOURS

    REMOVED DUE TO INCORRECT AND STUPID ADVICE BY ME LOL :D
Results 1 to 12 of 12