mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 00:50:53 +07:00
16 lines
358 B
Java
16 lines
358 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 {
|
|
<selection>new Scanner(new File("file.txt"));
|
|
y = y + x;
|
|
y = y / x;</selection>
|
|
} catch (FileNotFoundException e) {
|
|
}
|
|
return y;
|
|
}
|
|
} |