I have a String that looks like this:
String meta = "1 \n"
+ "Herst \n"
+ "01 Jan 2019 – 31 Dec 2020 \n"
+ "01 Jan 2020 \n"
+ "CONFIG \n"
+ "XML \n"
+ "AES \n"
+ "RSA \n"
+ "256 \n"
+ "16 \n"
+ "128 \n";
What is the smartest way if I want to read a specific line out of this String in Java?
For example, I need in another part of my code the number of the second last line (in this case it's 16). How can I read this number out of the String?