Search:

Type: Posts; User: SOG

Page 1 of 2 1 2

Search: Search took 1.45 seconds.

  1. [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    Thanks. I finally got the needed response from the computer with the equals-method's help.
  2. [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    The problem I should've mentioned is that the current loop I have now just makes my method return the same string-statement I typed in as a user.

    For example:

    The program's output comes as a...
  3. [SOLVED] Re: A while-loop is SUPPOSED to replace a substring

    I got past the part where there are too many elements, but I still need help finding the word-replacement substring for the program.

    Here is my current code-setup:



    // Use the...
  4. [SOLVED] A while-loop is SUPPOSED to replace a substring

    I notice that my method doesn't work even though I tried to get it's while-loop set-up to do the following things:


    Have each token of a string get put into another one
    Replace each...
  5. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I got the method to show the most frequent-character now. Thanks for your help.



    Now all I would have to do is do this sort of thing on a bigger scale (with a bigger loop-setup, but...
  6. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    The purpose of executing the program is just for home-project practice with a textbook, but I wanted to see if I could get it done this way: without the warning for the computer. So, I need help with...
  7. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    What I was asking in the last question was if it was practical to get either me or the user to tell the computer what characters to look for beforehand, so making an array of characters to look for...
  8. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I realize - now - that I must have gotten ahead of myself with the logic: I thought that using a 2D-array would help to arrange the characters as if they were in rows and columns. I tried to count...
  9. [SOLVED] Re: I'm trying to get the most frequent character out of a bunch

    I went ahead and redid my code to try something out, so I might as well give it to the forum as is - it's part of what I'm doing. Instead of using Unicode numbers, I just decided to use a...
  10. [SOLVED] I'm trying to get the most frequent character out of a bunch

    My goal is to get the most frequent character referred to in the title by:


    Storing character-set in an array
    Rearranging the array - somehow - as Unicode-numbers
    Comparing the...
  11. Replies
    9
    Views
    539

    Re: Is programming a very time-consuming process?

    I got what I wanted from this thread. Thanks!
  12. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    Yes, the output is correct, I have tested the second part too, and more than one division has appeared in a quarter. I somehow believe this works because of the way I setup the new array-variable -...
  13. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I solved the problem with something else to consider: one different array variable, and one new loop-control variable Here is how it works in code...



    // Use these nested-loops...
  14. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I thought I made the highestQuart-variable an accumulator and now I realize that it does work as a non-accumulator, but I believe they don't all print because 3 more variables are needed to store the...
  15. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I answered each question one at a time.


    I have, and I believe it has to do with the way I declared highestQuart - as an accumulator, somehow - so I need help with that. Now I think I may have to...
  16. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I remember two important things you said...



    ...and...



    So, I wrote this...
  17. Replies
    9
    Views
    539

    Re: Is programming a very time-consuming process?

    I'm doing something on my own myself: using a textbook to study without a class and/or tutorial. I was also thinking about making money one of these days when it comes to programming. I wonder how...
  18. Replies
    9
    Views
    539

    Re: Is programming a very time-consuming process?

    I see. The bottom-line though, is that a program sells enough as far as finances are concerned, isn't it?
  19. Replies
    9
    Views
    539

    Is programming a very time-consuming process?

    It is normal for a programmer to take weeks, even months to finish a program - no matter how big or small it is, right? (I'm trying to be realistic about my future.)
  20. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I did that part as well with this setup below...



    // Use these nested-loops to display the highest sales-division for a quarter.
    for (int rows = 0; rows <...
  21. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I did what you told me to do...



    // Use these nested-loops to display the highest sales-division for a quarter.
    for (int rows = 0; rows < QUARTERS; rows++)
    ...
  22. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    The information given to me was that the if-statement worked 3 times, but that something I haven't identified in the if-statement stopped it from printing a 4th one. Maybe it was a newline-statement...
  23. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I typed in a println-statement that says "Statement printout here." and it appeared 3 times in a row.
  24. Re: Do even programmers with the most expertise need help at some point in time?

    So, in other words, I guess we use Java like English - a language that can change over time?
  25. [SOLVED] Re: How do I get the one part of the needed output for quarterly sales-statistics?

    I haven't solved the problem yet, but I have made some adjustments. Up in the higher-part of the program, I've tried to follow or copy (to an extent) what my textbook was saying about...
Results 1 to 25 of 48
Page 1 of 2 1 2