I just beginning to learn java, so please don't mind. I have string
String test="John Software_Engineer Kartika QA Xing Project_Manager Mark CEO Celina Assistant_Developer"; I want to splitting based of position of Company={"Software_Engineer", "QA","Project_Manager","CEO ","Assistant_Developer"};
EDITED:
if above is difficulties then is it possible??? Based or {AND, OR)
String value="NA_USA >= 15 AND NA_USA=< 30 OR NA_USA!=80" String value1="EUROPE_SPAIN >= 5 OR EUROPE_SPAIN < = 30 " How to split and put in hashtable in java. finally how to access it from the end. this is not necessary but my main concern is how to split.
Next EDIT:
I got solution from this, it is the best idea or not????
String to="USA AND JAPAN OR SPAIN AND CHINA"; String [] ind= new String[]{"AND", "OR"}; for (int hj = 0; hj < ind.length; hj++){ to=to.replaceAll(ind[hj].toString(), "*"); } System.out.println(" (=to=) "+to); String[] partsparts = to.split("\\*"); for (int hj1 = 0; hj1 < partsparts.length; hj1++){ System.out.println(" (=partsparts=) "+partsparts[hj1].toString()); } and
List<String> test1=split(to, '*', 1); System.out.println("-str333->"+test1); New EDIT:
If I have this type of String how can you splitting:
final String PLAYER = "IF John END IF Football(soccer) END IF Abdul-Jabbar tennis player END IF Karim -1996 * 1974 END IF"; How can i get like this: String [] data=[John , Football(soccer) ,Abdul-Jabbar tennis player, Karim -1996 * 1974 ]
Do you have any idea???
"QA"is a position and not a name, without a list of positions (unless you're going by all capital letters)