Search:

Type: Posts; User: GameGirl91

Search: Search took 0.22 seconds.

  1. Replies
    2
    Views
    224

    [SOLVED] Re: Find the sum or total of count

    I been using three different methods for each of the "counts" It works now, as I put everything in one method.
    Thank you :)
  2. Replies
    2
    Views
    224

    [SOLVED] Find the sum or total of count

    Hello,

    Is there any way in which I can find the sum or the total of two count variables?

    E.g. I want to be able to use the COUNT, and add them together to give me a total, but I am not sure...
  3. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    I thought it would be easier to use it, rather than just using a standard array. I also removed the first line, as it was not useful.

    --- Update ---

    I sorted my program out by just using an...
  4. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    It works, by
    System.out.println(newarray.toString()); all the elements in the arrayList is printed out.
    but I get warning that says
    - ArrayList is a raw type. References to generic type...
  5. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    I have a standard array right now, but I guess in order to read the elements from I need to convert the array into an arrayList. I have used this to do it:


    new...
  6. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Because I already have two arrays I wondering how can I read the keywords from the array, and match them with the words in the sentences that I have in the text file.
  7. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Is there there anyway in which I can read from the array?
  8. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Thank you, I'll do that.

    I just wanted to know to make an For loop, I need a stop condition for the loop stop, and since I don't know how many sentences are there in the text file, how would I...
  9. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Can I than print out the results, e.g. all the sentences and print it out in another text file? If I can get any help in how to start the loop through the array, I would be great full.

    Thank you
  10. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Each of the two array's has keywords. The system will read those keywords from the text file and output those sentence's which will have the matching array keyword and print them, in the either one...
  11. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    The array is going to be


    String[] faults = {
    "Misspelled",
    "Error",
    "Fixed",
    "Change",}
    And
  12. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Ah, didn't know that. Do you know how I can get started? Because I don't really have clue. There are tutorials out there that helps you with just using hashmap by itself, but not with the arrays.
  13. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    Can I use HashTable as well?
  14. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    I have all the steps, and someone suggested that I should use Hashmap to put the the sentences into their categories using ArrayList. I don't know how to actually do that. So I was asking for any...
  15. Replies
    27
    Views
    1,508

    Re: Output sentences using keywords in java

    At this moment, I have the arrays list, e.g. the keywords that goes with their category. And I have read the text file that I need, and split the words up. However, I'm trying to read the file, and...
  16. Replies
    27
    Views
    1,508

    Output sentences using keywords in java

    Hello,

    I am trying to write a program in Java that tags sentences from a text file. Each tag has an associated array of keywords. A tag is applied to a sentence if and only if the sentence...
Results 1 to 16 of 18