Trying to read MULTIPLE 3 character words from a file and write it to the another file ..i m surrogate pairs to count the unicode pairs...for eg) பலன்..i want to count this word as 3...(not as 4 including dot)
Start by printing out the length of the array and the lengths of the words.
Why are you creating a variable to hold the length of the array? Always use i < myArray.length; in the header of the for loop.
You are also using the length of the array to find the index of the char; that means that the nth (0‑based) word in the line must have ≥ n + 1 chars in.