fork download
  1. import java.util.Arrays;
  2.  
  3. public class Main
  4. {
  5. public static void main(String[] args) {
  6. String resultObject = new String("button 1 of window \"abc\" of application process \"xyz\" button 2 of window \"abc\" of application process \"xyz\" button 3 of window \"abc\" of application process \"xyz\" button \"Finish\" of UI element 1 of scroll area 1 of window \"abc\" of application process \"xyz\"");
  7. String[] list = resultObject.toString().split("\"xyz\"");
  8. for (String item : list) {
  9. System.out.println(item.trim());
  10. }
  11. }
  12. }
Success #stdin #stdout 0.03s 245632KB
stdin
Standard input is empty
stdout
button 1 of window "abc" of application process
button 2 of window "abc" of application process
button 3 of window "abc" of application process
button "Finish" of UI element 1 of scroll area 1 of window "abc" of application process