question: public String constructTrainWeight ( String trainName ) throws IOException { Train train = tm . getTrainByName ( trainName ) ; if ( train != null ) { return String . valueOf ( train . getTrainWeight ( ) ) ; } sendErrorStatus ( "ERROR train name doesn't exist " + trainName ) ; return null ; }
target:  constructs a String containing the tonnage of a train