I\'m trying to take the last three chracters of any string and save it as another String variable. I\'m having some tough time with my thought process.
Strin
Alternative way for "insufficient string length or null" save:
String numbers = defaultValue(); try{ numbers = word.substring(word.length() - 3); } catch(Exception e) { System.out.println("Insufficient String length"); }