Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- class Test {
- public static void main(String[] args) {
- Locale l = Locale.getDefault();
- String cislo = "3,14";
- switch(l.getLanguage()) {
- case "cs":
- cislo = cislo.replace(',', '.');
- break;
- }
- System.out.println(cislo);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement