'The record keyword in java is convenient. What is the most similar mutable option to easily create a class?

Using a record seems like a very convenient way to create a basic class. However, it is immutable. Is there a similar keyword that creates a class that can be changed?

In other words, is there a way to create a basic class without typing it all out by hand?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source