Suppose, I have a combio.txt file on my Machine which contains some string values as: q gjk 54Agh 56@hjgf 65g @uyt&ht@ yt2
Note:- All values are Separated as New Line.
So want a code (Especially Java) which will return the strings whose length is less than 4 on consol.
Extension to This, All Strings values whose length is less than 4 should get deleted from the same file. OR Code should be able to separate the String values whose length is less than 4 in one newly created file and Greater than 4 to another newly created file.
Aucun commentaire:
Enregistrer un commentaire