Search:

Type: Posts; User: PC_flea

Search: Search took 0.54 seconds.

  1. Re: String counter doesn't count the appropriate strings properly

    I pulled off the source code from a notepad copy. The counter was supposed to be a "5" and not "10".
    Unfortunately, though the counter value is set at 5, it still doesn't work. I remember using...
  2. String counter doesn't count the appropriate strings properly

    I have this source code that is supposed to count the repeated occurrences of certain strings in the text file, "string.txt".
    The contents of the file are listed below:


    But as I checked it...
  3. Re: how do I fix a "java.lang.ArrayIndexOutofBoundsException:6" problem?

    So if I am to use the length attribute, is this how I should write it? :-??

    for (int charArray.length=0; charArray.length <=60;charArray.length++)

    And the loop -
    for (int counter=0;...
  4. how do I fix a "java.lang.ArrayIndexOutofBoundsException:6" problem?

    I have this program to see the occurrences of a character in a string stored in a text file.
    My text file has the following contents (as shown below):


    As you notice, each character is...
  5. Replies
    4
    Views
    22

    Re: Is this syntax possible?

    As I have written in my question, I intend to search through only 12 lines of strings in the text. By the way, what you said made me wonder: as for all the lines in the text (when those get stored...
  6. Replies
    4
    Views
    22

    Is this syntax possible?

    Is this syntax possible?

    for (int counter=o,charArray[0]; counter <=10,charArray[] <=0; counter++, charArray[]++)

    I am asking this since I am having a hard time with the code I'm making....
  7. Re: COUNTING THE FREQUENCY OF NUMBERS INSIDE A TEXT FILE

    If I am to insert your ideas in the code, would it look like the one below?


    import java.io.*;

    public class letternumberfrequency {
    public static void main (String [] args) throws...
  8. COUNTING THE FREQUENCY OF NUMBERS INSIDE A TEXT FILE

    I have a source code here that counts the frequency of alphabetic characters and non-alphabetic characters (see the source code below).


    import java.io.*;

    public class letterfrequency {...
  9. Re: How to assign an array cell value into a switch statement

    I'm using the freeware JCreator LE 3.50. Whenever an error message shows up, it displays it in a box below the source code (as can be seen in the link in my very first post on this thread). I tried...
  10. Re: How to assign an array cell value into a switch statement

    I have this program in Java to read a database written in a .txt format (file name is "info.txt").

    It has the values record number, name, age, state, and salary class written in it. I've named...
  11. How to assign an array cell value into a switch statement

    I have this program in Java to read a database written in a .txt format (file name is "info.txt").

    It has the values record number, name, age, state, and salary class written in it. (Kindly refer...
  12. How to assign an array cell value into a switch statement

    I have this program in Java to read a database written in a .txt format (file name is "info.txt").

    It has the values record number, name, age, state, and salary class written in it. (Kindly refer...
Results 1 to 12 of 12