Java String to convertStringToArray(String str)

Here you can find the source of convertStringToArray(String str)

Description

convert String To Array

License

Open Source License

Declaration

public static int[] convertStringToArray(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[] convertStringToArray(String str) {
        int[] A = new int[str.length()];
        for (int i = 0; i < A.length; i++) {
            A[A.length - i - 1] = Integer.parseInt(str.substring(i, i + 1));
        }/*from w w w .  ja  v a  2s.co  m*/
        return A;
    }
}

Related

  1. convertStringArrayToFloatArray(String[] num)
  2. convertStringArrayToString(String[] a_asStrings, String a_sDelim)
  3. convertStringArrayToString(String[] value, String separator)
  4. convertStringFormat(String property)
  5. convertStringsToTextSet(String[] values)
  6. convertStringToColor(String color)
  7. ConvertStringToEnumValue(String enumAsString, Class type)
  8. convertStringToFloat(String str)
  9. convertStringToId(String s)