Vote count:
0
I'm trying to count how many files are not empty in a text file. I can count the number of total files, I just having trouble with creating the loop for ONLY the files with data in them.
while(s != null)
{
array = s.split(delimiter);
if(!array[0].equals(Empty_Record))
{
int total = 0;
for(int i = 0; i < array.length; i++)
total +=i;
ATextField.setText(total);
}
s = reader.readLine();
}
reader.close();
}
catch(Exception e)
{
System.out.println("Message: " + e);
}
}
asked 1 min ago
Loop through and an array with conditions
Aucun commentaire:
Enregistrer un commentaire