public static long parseString(String value){
  if ((value.endsWith("L")) || ((value.endsWith("l")))) {
    value=value.substring(0,value.length() - 1);
  }
  if (value.startsWith("+")) {
    value=value.substring(1);
  }
  return Long.parseLong(value);
}

public static long parseString ( String value ) { if ( ( value . endsWith ( "L" ) ) || ( ( value . endsWith ( "l" ) ) ) ) { value = value . substring ( 0 , value . length ( ) - 1 ) ; } if ( value . startsWith ( "+" ) ) { value = value . substring ( 1 ) ; } return Long . parseLong ( value ) ; }
parse the string containing a long value .
