Search:

Type: Posts; User: newbie

Search: Search took 0.08 seconds.

  1. Replies
    17
    Views
    1,837

    Re: Concatenating Inputs, need help please!

    That sounds a little excessive Sean4u.
    A simple program which reads in 1 line, then uses String.charAt(index) to get the first, second and third character from the input String, which you can then...
  2. Replies
    17
    Views
    1,837

    Re: Concatenating Inputs, need help please!

    Yeah, Scanner is better.
    Look up: String.charAt()
    And: Integer.parseInt()

    Should be enough information there to get you going.
  3. Replies
    17
    Views
    1,837

    Re: Concatenating Inputs, need help please!

    So what is wrong with taking one of the approaches I suggested? If it's not right, why isn't it? What is your program supposed to do?
  4. Replies
    17
    Views
    1,837

    Re: Concatenating Inputs, need help please!

    Can't you just print it all out in the end? I.e System.out.println("Input: " + n1+operator+n2);?
    Or request 1 input, everything in 1 go, then extract 1 character at a time from the input?
Results 1 to 4 of 4