<awangdev>58. Length of Last Word_2.java
public int lengthOfLastWord(String s) {
        if (s == null || s.length() == 0) {
        	return 0;
        }
        String[] arr = s.split("\\ ");
        String lastWord = arr[arr.length - 1];

       	return lastWord.length();
    }
public int sample_funcname ( String var_1 ) {
  if ( var_1 == null || var_1 . length ( ) == 0 ) {
    return 0 ;
  }
  String [ ] var_7 = var_1 . split ( "\\ " ) ;
  String var_9 = var_7 [ var_7 . length - 1 ] ;
  return var_9 . length ( ) ;
}
