I am currently trying to split a string 1128-2 so that I can have two separate values. For example, value1: 1128 and value2: 2, so that I can then use each value se
1128-2
You can also do:
Integer a = '1182-2'.split('-')[0] as Integer Integer b = '1182-2'.split('-')[1] as Integer //a=1182 b=2