In my program a string is generated like this: Energie 670 kJ / 160 kcal
So how to write split function in java code and the first keyword Energie should print
the outputs?
Input :
Energie 670 kJ / 160 kcal
Expected output :
1) Energie 670 kJ 2) Energie 160 kcal
If anyone have a solution to this problem or better way of going about splitting a string twice?
Thanks in advance