Hello eva.
How about using objects of instance Object. Like:
public static Object startProcess(Object a) {
//Todo
return null;
}
You can then use casting to get the correct data type depending on what you want to do. To implement this method, you will need to use the
instanceof keyword. For example:
public static Object startProcess(Object a) {
// Handel if it is a String
if (a instanceof String){
String aString = (String) a;
// Do something to aString
}
return aString;
}
I hope this helped.