I need to remove a line from string if some column is empty: Check it:
ArrayList<String> students = new ArrayList<>();
students.add("8246, ,JUCIELLY,SOUSA,ENSINO REGULAR - MEDIO - 1ช SERIE,[email protected],10071999");
students.add("8246,1282,JUCIELLY,SOUSA,ENSINO REGULAR - MEDIO - 1ช SERIE,[email protected],10071999");
students.add("8246,1282,JUCIELLY,SOUSA,ENSINO REGULAR - MEDIO - 1ช SERIE,[email protected],10071999");
students.add("8246,,JUCIELLY,SOUSA,ENSINO REGULAR - MEDIO - 1ช SERIE,[email protected],10071999");
students.add("8246,1282,,[email protected],10071999");
students.add("8246,1282, ,,10071999");
As you can see some colunms on this strins is EMPTY or " "(have blankspaces)
someone can help me? i think it is easy to do but i tried and failed.
i need a full 7 columns with something. cannot be ,, or blankspaces =\