Search:

Type: Posts; User: xdrechsler

Search: Search took 0.16 seconds.

  1. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    Thanks! I'll give it a go later, I need to get some rest first, busy day for me.
  2. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    Do I have to change the entire program or I just add something to it with regards to newbie's post?
  3. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    Got It!


    OUTPUT:


    Can you help me with the whitespace so that I can enter "20+5" instead of "20 + 5".
  4. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    I'm sorry but I don't really know how to use Scanner. I've tried some but I ended up the same with using BufferedReader.
  5. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    @Sean4u
    Yes! that's what I'm saying. Can you help me with the java.lang.Scanner because we are not using it in our class.
  6. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    Let me put it this way. Let say I want to ADD 3 and 5. So the computer will ask me to enter/input my equation which is "3+5". Then, the computer will display the sum which is 8.

    INPUT: 3+5
    SUM: 8...
  7. Replies
    17
    Views
    1,855

    Re: Concatenating Inputs, need help please!

    "3+5" there was supposed to be an input but they are equivalent to 3 variables which is (num1, operation, num3)
  8. Replies
    17
    Views
    1,855

    Concatenating Inputs, need help please!

    OUTPUT
    Enter Operation: +
    Enter Number 1: 3
    Enter Number 2: 5

    * end of program *
    But our professor wants us to have an output like this,

    OUTPUT
    Input: 3+5
  9. Replies
    1
    Views
    3,027

    Output Alignment

    Hello, here I am again. The program is already working but I don't know how to align the output because it is so messed up. Hope you can help me again with this.

    PROGRAM:


    OUTPUT:
  10. Replies
    13
    Views
    2,693

    Re: Looping Question (newbie)

    That clears it. I thought that the use of the indexOf("JAVA")!=-1 is to scan every 4- letter word from the start and when it does find the word "JAVA", there will be some values that is not equal to...
  11. Replies
    13
    Views
    2,693

    Re: Looping Question (newbie)

    Its okay, I'm after the logic. I'll just ask my professor about it.

    Can I ask some questions?
    temp+=value; -> this is to store the value of the 4 strings to be formed right?

    I don't get the -1...
  12. Replies
    13
    Views
    2,693

    Re: Looping Question (newbie)

    I'm not familiar with Scanner but I think it is the same as BufferedReader?
  13. Replies
    13
    Views
    2,693

    Re: Looping Question (newbie)

    @Norm
    It is a statement.

    Hmm, I'll try to fill it.

    Enter a letter: J
    Enter a letter: A
    Enter a letter: C

    First, I enter "J" followed by "A" which is to formed JAVA but I enter a "C" on...
  14. Replies
    13
    Views
    2,693

    Re: Looping Question (newbie)

    @aussiemcgr
    In our situation, it will only stop if the word JAVA is formed.

    indexOf(String value) - I don't know this function yet because I think it is on more complex programming and I think...
  15. Replies
    13
    Views
    2,693

    Looping Question (newbie)

    Hello, I am new in this forum, hope you guys can help me with my problem.

    Our professor gave us a take home quiz and I don't know what to do anymore after several attempts in doing the program. I...
Results 1 to 15 of 15