I been using three different methods for each of the "counts" It works now, as I put everything in one method.
Thank you :)
Type: Posts; User: GameGirl91
I been using three different methods for each of the "counts" It works now, as I put everything in one method.
Thank you :)
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...
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...
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...
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...
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.
Is there there anyway in which I can read from the array?
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...
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
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...
The array is going to be
String[] faults = {
"Misspelled",
"Error",
"Fixed",
"Change",}
And
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.
Can I use HashTable as well?
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...
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...
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...