20 lines
335 B
Markdown
20 lines
335 B
Markdown
---
|
|
parents:
|
|
- "[[Вопросы для собеседование Java]]"
|
|
---
|
|
```java
|
|
public class Train {
|
|
|
|
public static void main(String[] args) {
|
|
Integer integer = 1;
|
|
add(integer);
|
|
System.out.println(integer);
|
|
}
|
|
|
|
public static void add(Integer integer) {
|
|
integer += 1;
|
|
}
|
|
|
|
}
|
|
```
|
|
*** |