Java
134
Вклад в тег
class A {
public void superMethod() {}
}
class B extends A {
@Override
public void superMethod() {}
}
public Scanner(InputStream source) {
this(new InputStreamReader(source), WHITESPACE_PATTERN);
}
java Game>file.txt
java -jar Game.jar>file.txt
static {
try {
System.setOut(new PrintStream(new File("file.txt")));
} catch (FileNotFoundException e) {
e.printStackTrace();
}
}
public static void main(String[] args) throws FileNotFoundException {
System.out.println("Hello World!"); // будет записано в файл
}