Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public class NewClass4 {
- public static void main(String[] args) {
- String[] test1 = new String[2];
- int[] test2 = new int[2];
- String t1 = null;
- int t2;
- for (int i = 1; i < 2; i++) {
- t1 = JOptionPane.showInputDialog(null, "enter any string value");
- t2 = Integer.parseInt(JOptionPane.showInputDialog(null, "enter integer value"));
- test1[i] = t1;
- test2[i] = t2;
- }
- int result = Integer.parseInt(t1)/5;
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment