Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1.  
  2. public class Demonstranion {
  3.  
  4. public static void main(String[] args) {
  5.  
  6. double value=25.6;
  7.  
  8. System.out.println((int)value);
  9. System.out.println((String.valueOf(value)).substring((String.valueOf(value)).indexOf(".")+1));
  10.  
  11. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement