![]() |
[Java] StringBuffer ignoring captalized letters
I have an assignment that is to read from a file that is too large for RandomFileAccess to use. So, instead I'm using FileChannel through MappedByteBuffer reader so that the memory doesn't get overloaded. The first method extract word is to extract the word from inputted file. The second method findNextLetter is to find the next letter as long as it is [a-z][A-Z].
Code:
private static String extractWords(MappedByteBuffer readBuffer) { Code:
WASHINGTON (CNN) -- North Korea's claims of a nuclear test establish Pyongyang as a "threat to international peace," President Bush said Wednesday as he pledged to defend U.S. allies and interests in the region. Code:
WASHINGTON |
Do you want a not (!) on the first part of the while loop in the findNextLetter method?
|
All times are GMT -8. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project