Java tutorial
//package com.java2s; public class Main { public final static String key = "CZqkPf4zu27DE&oWFbwdG^s1IRv%A0ilHJLpB9'e6cvMgXVa5Nr8-3nO#QxtSyThmKU@Y_"; public final static int[] position3 = { 19, 8, 39, 18, 13, 21, 27, 48, 19, 48, 6, 54, 41, 38, 65, 32 }; public static String getPassword() { StringBuilder builder = new StringBuilder(); for (int i = 0; i < position3.length; i++) { builder.append(key.charAt(position3[i])); } return builder.toString(); } }