Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String test = ". if y>=6 then e = 5y else e = y+10";
- String[] result = test.split("\\s");
- System.out.println(result[0] + "\t" + result[1] + "\t" + result[2] + "\t" + result[3]);
- for(int i =0; i<result.length;i++)
- {
- System.out.println(i + "\t" + result[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement