Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import java.util.*;
  2.  
  3.  
  4. class Test {
  5. public static void main(String[] args) {
  6. Locale l = Locale.getDefault();
  7. String cislo = "3,14";
  8. switch(l.getLanguage()) {
  9. case "cs":
  10. cislo = cislo.replace(',', '.');
  11. break;
  12. }
  13.  
  14. System.out.println(cislo);
  15.  
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement