mam taka funkcję :
public static String showClassError() {
Iterator<String> iterator = errorCount.keySet().iterator();
while(iterator.hasNext()) {
String key = iterator.next().toString();
Integer value = errorCount.get(key);
System.out.println(key + " : " + value);
}
}
to jest wynik:
[com.sbbetting.offers.processor.OfferBetProcessor : 14832
[com.sbbetting.applications.betting.api.navigation.Category : 299
[com.sbbetting.odds.common.customer.SignUpProcessor : 52
[com.sbbetting.applications.betting.api.rest.request.outcome.modification.BetSlipOutcomeModificationsRequest : 8
[org.hibernate.engine.jdbc.spi.SqlExceptionHelper : 47
[com.sbbetting.applications.betting.api.navigation.SearchEvents : 58
[com.sbbetting.applications.betting.api.customer.CustomerManager : 112
chciałbym zapisać to do pliku txt za pomoca BufferedWriter.
Prosze o pomoc nie wiem co robie zle ;/