mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
21 lines
448 B
Java
21 lines
448 B
Java
import java.io.File;
|
|
import java.io.FileNotFoundException;
|
|
import java.util.Scanner;
|
|
|
|
public class Test {
|
|
public int test(int x) {
|
|
int y = 42;
|
|
try {
|
|
y = getY(x, y);
|
|
} catch (FileNotFoundException e) {
|
|
}
|
|
return y;
|
|
}
|
|
|
|
private int getY(int x, int y) throws FileNotFoundException {
|
|
new Scanner(new File("file.txt"));
|
|
y = y + x;
|
|
y = y / x;
|
|
return y;
|
|
}
|
|
} |