Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;

import java.util.List;

public class Main {
    public static List<Integer> stringToPassword(String string) {
        List<Integer> result = new ArrayList<Integer>();
        final byte[] bytes = string.getBytes();
        for (int i = 0; i < bytes.length; i++) {
            byte b = bytes[i];
            result.add(Integer.valueOf(b));
        }
        return result;
    }
}