public static Timestamp toTimestamp(String data,String modelo){
  return Timestamp.valueOf(LocalDateTime.parse(data,formatter(modelo)));
}

public static Timestamp toTimestamp ( String data , String modelo ) { return Timestamp . valueOf ( LocalDateTime . parse ( data , formatter ( modelo ) ) ) ; }
converte string em timestamp indicando o formato
