метод getClass.getSimpleName возвращает строку значит
Long_byte
57 уровень
класс
Обсуждается
Комментарии (1)
- популярные
- новые
- старые
Для того, чтобы оставить комментарий Вы должны авторизоваться
Grock
19 февраля 2024, 07:31
Метод getSimpleName возвращает строку:
java.lang.Class<T>
@Contract(pure = true)
@NotNull
public String getSimpleName()
Returns the simple name of the underlying class as given in the source code. An empty string is returned if the underlying class is anonymous. A synthetic class, one not present in source code, can have a non-empty name including special characters, such as "$".
The simple name of an array class is the simple name of the component type with "[]" appended. In particular the simple name of an array class whose component type is anonymous is "[]".
Returns: the simple name of the underlying class
Например, такой код:
Вернет это:
0