I have a 18 character string I want characters 2-8 from. In python I can do this:
sliceMe = \"nnYYYYYYnnnnnnnnnn\" print sliceMe[2:8]
prin
You inherit all the Java methods off String so sliceMe.substring(2,7) should do the trick.
String
sliceMe.substring(2,7)