Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1. import javax.swing.JOptionPane;
  2. public class passwordCodeDriver1
  3. {
  4.    private static String password;
  5.  
  6.  
  7.    
  8.  
  9.   public static void main( String[] args )
  10.   {
  11.   passwordCodeDriver1 codeDriver = new passwordCodeDriver1();
  12.   }
  13.  
  14.   public passwordCodeDriver1()
  15.   {
  16.     password = "";
  17.    
  18.   }
  19.  
  20.  
  21.  
  22.  
  23.   public static void inputPassword()
  24.   {
  25.     password = JOptionPane.showInputDialog("please input your password");
  26.   }
  27.  
  28.    
  29.   //time to get stuff
  30.    
  31.     public static String getPassword()
  32.     {
  33.       return password;
  34.     }
  35.                            
  36.  
  37.   //calling methods
  38.   passwordCodeFinished2 callMethods = new passwordCodeFinished2();
  39.   public  String methodCaller()
  40.   {
  41.   callMethods.removeWhiteSpaceAndConvertToUpper();
  42.   callMethods.substitute();
  43.  callMethods.swapHalfsForEncrypt();
  44.   callMethods.swapFirst2WithLast2();
  45.   callMethods.swapMiddleChars();
  46. JOptionPane.showMessageDialog(null,password);
  47. return password;
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement