Here you can find the source of toNumbers(char[] array_)
public static int[] toNumbers(char[] array_)
//package com.java2s; public class Main { public static int[] toNumbers(char[] array_) { int[] new_ = new int[array_.length]; for (int i = 0; i < new_.length; i++) new_[i] = (int) array_[i] & 0x0FFFF; return new_; }//from w w w .j ava 2s. c o m public static int[] toNumbers(byte[] array_) { int[] new_ = new int[array_.length]; for (int i = 0; i < new_.length; i++) new_[i] = (int) array_[i] & 0x0FF; return new_; } }