很大的问题,解决不了了,请高手帮忙,谢谢
import java.io.BufferedReader;
import java.io.File;
import
java.io.FileNotFoundException;
import java.io.FileReader;
import
java.io.IOException;
import java.io.Reader;
import java.sql.*;
import java.sql.ResultSet;
public class Zhuanyouci
{
File newFile;
FileReader fis;
Reader in;
char[] cha;
public Zhuanyouci()
{
newFile = new File( "duanju.txt ");
cha = new char[(int)newFile.length()];
try
{
fis = new FileReader(newFile);
in = new BufferedReader(fis);
in.read(cha);
int i=0,ss=0;
String str1;
String str2;
while(i <=(int)newFile.length()-2)
{
char a = cha[i];
if(a== '@ '||a== ' ')
i++;
else
{
for(int j=i+1;j <=(int)newFile.length()-2;j++)
{
while(cha[i]==cha[j])
{
if(cha[i+1]==cha[j+1]&&cha[i+2]==cha[j+2])
{
char[] ch1 = {cha[i],cha[i+1],cha[i+2]};