Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pk3
import java.io.*; import java.util.*; class sortt { public static void main(String[] args) throws Exception { ArrayList <String> a1=new ArrayList<String>(); a1.add("doc.RZZ>ELA>FTP>GPM@REPO>D22096.INDX.T#00599; ok"); a1.add("doc.RZZ>ELA>FTP>GPM@REPO>D22096.INDX.T#00599; ok"); for(int i=0;i<a1.size();i++) { if(a1.get(i).contains("ok")) { String a=a1.get(i); a=a.substring(0,44); a1.set(i, a); } else { a1.remove(i); i--; } } System.out.println(a1); } }
run
|
edit
|
history
|
help
0
epeenconverter
pre
2.7 intersection
Problem: binary
++a vs a++ and calculations around different variables
Vikas
Java messing around
ChangePI
3.c
DevStuff