Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JOptionPane;
- public class test{
- public static void main(String args[]){
- String a;
- char c;
- a = JOptionPane.showInputDialog("Enter");
- System.out.print(a);
- for (int i = 0; i<=a.length() - 1; i++){
- c = a.charAt(i);
- }
- }
- }
Add Comment
Please, Sign In to add comment