I am new to JNA and have some questions regarding the same.

The C code has a variable char ** ch. How should I cast it into JNA. JNA docs suggests to cast it into String[] however, I have seen some tutorials cast it into PointerByReference ch (representing a void** ch). I am confused as to what should be used.

If I use PointerByReference ch, will the following code make it equivalant to char** ch:
public PointerByReference ch;
ch.setPointer(new Memory (1)) // Sizeof char = 1 byte.