Advertisement
iamaamir

Printing in Hindi

Aug 25th, 2014
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. package extra;
  2.  
  3. import java.text.NumberFormat;
  4. import java.util.Locale;
  5.  
  6. /**
  7.  *
  8.  * @author toffe boy Aamir
  9.  */
  10. public class Hindi_123 {
  11.     public static void main(String[] args) {
  12.        
  13.         Locale myloc = new Locale("hi","in");
  14.         NumberFormat nf = NumberFormat.getInstance(myloc);
  15.         for(int i=0; i<=100; i++){
  16.             System.out.println(nf.format(i));
  17.         }
  18.        
  19.        
  20.     }
  21.  
  22.    
  23.    
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement