I have a String like this
String s1="1 AND 1 OR 1";
I want split with AND OR and my result should be 1,1,1
I am using JAVA /eclipse package com.test;
String s1="1 AND 1 OR 1";
String[] splits=s1.split("[AND\OR]");
for (int i = 0; i < splits.length; i++) {
System.out.println(splits[i]);
}
}
}
Can I get any help how to do this?
Any Help appreciated