Category: java learning

StringBuilder class in java 0

StringBuilder class in java

introduce StringBuilder constructor StringBuilder common methods use Small case introduce StringBuilder is a variable string manipulation class, we can think of it as an object container. The core function of using StringBuilder: the performance...

Kafka producer and consumer usage 0

Kafka producer and consumer usage

1. Producers 1. Add [maven] configuration public class KakfaNotice { private KafkaProducer producer; public KakfaNotice( String url) { this.producer = create(url); } public void send(String topic, String key, JSONObject message) { producer.send(new ProducerRecord<>(topic, key,...

java learning day4 write a landlord today 0

java learning day4 write a landlord today

The case of Doudizhu, written by myself, is still very far from the online gods Requirement: Realize the shuffling, dealing and viewing of cards in the process of fighting landlords through programs Ideas:   1:...