Package zpxx; import java.util.randem; import java.sql. *; import java.net. *; import java.util. *; import java.text. *; import java.io. *; public class pass {private [] passArray = new string [10]; public string getpassword () {passarray [0] = "0"; passArray [1] = "1"; PassArray [2] = "2" PassArray [3] = "3"; PassArray [4] = "4"; PassArray [5] = "5"; PassArray [6] = "6"; PassArray [7] = "7"; PassArray [8] = "8"; PassArray [9] = "9"; random r = new random (); string str = "; string strsum =" "; for (int i = 0; i <10; i ) {str = PassArray [R.Nextint (9)]; strsum = strsum str;} return strsum;}
}