Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- //Niholas Joannou 2015-07-04
- public class Calculations {
- public static void main(String[] args) {
- String num="";
- num=JOptionPane.showInputDialog("Enter a decimal number");
- System.out.println("Your number is " + num);
- System.out.println("The length of your number is " + num.length());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement