Advertisement
Guest User

Untitled

a guest
Mar 26th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import java.text.BreakIterator;
  2. import java.util.Locale;
  3.  
  4. public class Thai {
  5. public static void main(String args[]) throws Exception {
  6. BreakIterator iterator = BreakIterator.getWordInstance(new Locale("th"));
  7. // check that we have a working dictionary-based break iterator for thai
  8. iterator.setText("ภาษาไทย");
  9. System.out.println(iterator.isBoundary(4));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement