I made a function that requires an `int[]`, `Conflict(int[] tab)`, and as you all know we extract information from a `JTextField` in the form of an `String` (s) ,so I then convert in into an integer with:

```
int input=Integer.parseInt(s);

```

Now, I found this way to do it :

```
int input= 1234;
String input= String.valueOf(input);
Vector<int> tab = new Vector<int>();
for (int cpt = 0; cpt <input.length(); cpt++)
{
    tab.add(Integer.valueOf(input.substring(cpt, cpt+1)).intValue());
}

```

but I'm looking for a simple way without the vector ,so again the Question is How can I convert the input (int) into a table of `int[]` so that I can use it in the Conflict function? 

Here is an answer to my question for all of you who's looking to turn an `int` into an `int[]` using a string with a very smart simple trick 

```
tcst = ""+inputc;
int tcn = tcst.length();
int[] tctab = new int[tcn];
for(int h=0; h<tcn; h++){
    tctab[h] = (int) Integer.parseInt("" + tcst.charAt(h));
}

```