Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.text.*;
- public class quiz2
- {
- public static void main(String[] args)
- {
- DecimalFormat percent = new DecimalFormat("0.00%");
- double fraction = 0.734;
- System.out.println(percent.format(fraction));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement