-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonetary_unit.java
More file actions
38 lines (19 loc) · 845 Bytes
/
Monetary_unit.java
File metadata and controls
38 lines (19 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//import com.sun.org.apache.xpath.internal.functions.FuncTrue;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Monetary_unit{
public static void main(String[] arg) {
//System.out.print("Enter money: ");
// Scanner input = new Scanner(System.in);
// float money = input.nextFloat();
String money = JOptionPane.showInputDialog(null,"Ente a number", "TEST", JOptionPane.INFORMATION_MESSAGE);
// System.out.println(money+ "$");
// int n = Integer.parseInt(money);
// JOptionPane.showMessageDialog(null, n+54);
//(float)money = (float)money * 100;
//int dollar = (int)money / 100;
//System.out.println(n);
int k = JOptionPane.showConfirmDialog(null, "yes?");
System.out.println(k);
}
}