Final answer:
To read an array of source systems from a properties file in Java, use the java.util.Properties class to load the file, and then retrieve the property as a string and split it into an array.
Step-by-step explanation:
You want to read the array of source systems from a properties file in Java without using the org.ini4j.Ini library. Instead, you can use the java.util.Properties class to achieve this. Below is the modified code that reads the source_system_MUB from a properties file:
Properties fileProp = new Properties();
fileProp.load(new FileInputStream("path/to/your/fileProcessing.properties"));
String source_systems_MUB = fileProp.getProperty("source_system_MUB");
String[] source_system_MUB = source_systems_MUB.split(",");
Ensure that your fileProcessing.properties file includes a line like the following to define the source_system_MUB:
source_system_MUB=AES,CCX,CIF,MSB,PTT,SEI,TD1,TD2,TD3,TSP,TSX,PAP,USR
This will read the comma-separated values and split them into an array. Do not forget to handle exceptions properly in the actual code to deal with situations where the file might not exist or content cannot be read due to permission issues.