Java Number Parse toNumbers(char[] array_)

Here you can find the source of toNumbers(char[] array_)

Description

to Numbers

License

Open Source License

Declaration

public static int[] toNumbers(char[] array_) 

Method Source Code

//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_;
    }
}

Related

  1. toNumber(String text)
  2. toNumber(String value, int defValue)
  3. toNumberArray(byte[] array)
  4. toNumberMatrix(byte[][] matrix)
  5. toNumberPassword(int length)