Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import java.text.*;
  2.  
  3. public class quiz2
  4. {
  5. public static void main(String[] args)
  6. {
  7. DecimalFormat percent = new DecimalFormat("0.00%");
  8. double fraction = 0.734;
  9. System.out.println(percent.format(fraction));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement