-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSolution.java
More file actions
34 lines (20 loc) · 1.12 KB
/
Solution.java
File metadata and controls
34 lines (20 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//And he opened the bottomless pit; and there arose a smoke out of the pit, as the smoke of a great furnace; and the sun and the air were darkened by reason of the smoke of the pit. (Revelation 9:2)
package com.javarush.task.task35.task3501;
/*
Вызов статического метода
*/
public class Solution {
public static void main(String[] args) {
Number number = GenericStatic.<Number>someStaticMethod(new Integer(3));
}
}
/*
Вызов статического метода
Измени статический метод в классе GenericStatic так, чтобы он стал дженериком.
Пример вызова дан в методе main.
Требования:
1. Метод someStaticMethod в классе GenericStatic должен быть изменен в соответствии с условием задачи.
2. Метод someStaticMethod должен быть статическим.
3. Метод someStaticMethod должен быть публичным.
4. Метод someStaticMethod должен выводить данные на экран.
*/