Advertisement
MarouaneTheViper

Untitled

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