"Hi, Amigo. Here are some interesting tasks involving static methods:"
Declare a static int variable catCount in the Cat class. Declare a constructor, i.e. public Cat(), that increases this variable by 1.
Static methods: int getCatCount() and setCatCount(int)
In the Cat class, implement two static methods: int getCatCount() and setCatCount(int), which you can use to get/change the number of cats (catCount variable).
In the StringHelper class, implement two static methods: - String multiply(String s, int count) - returns a string that has been repeated count times - String multiply(String s) - returns a string that has been repeated 5 times. Example: Amigo -> AmigoAmigoAmigoAmigoAmigo
Controlling body weight
The program should read a weight entered by the user in kilograms and a height in meters. Then it should display a message about the user's body mass index. Implement a static method in the Body class. The method should calculate the body mass index and display the following message: "Underweight: B
In the ConsoleReader class, implement four static methods: - String readString() - reads a string from the keyboard - int readInt() - reads a number from the keyboard - double readDouble() - reads a fractional number from the keyboard boolean readBoolean() - reads the string "true" or "false" from t
Make a Calculator class, which will have 5 static methods: int plus(int a, int b) - returns the sum of a and b int minus(int a, int b) - returns the difference between a and b int multiply(int a, int b) - returns the product of a and b double divide(int a, int b) - returns the result of dividing a b
Distance between two points
Implement the static double getDistance(x1, y1, x2, y2) method. It should calculate the distance between two points. Use the double Math.sqrt(double a) method, which calculates the square root of the passed argument. The distance between points is calculated according to the formula: https://javaru