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.txtjava -jar Game.jar>file.txtstatic {
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!"); // будет записано в файл
}