This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sunmeat; | |
public class Program { | |
public static void main(String[] args) { | |
int size = 10; | |
int[] ar = new int[size]; | |
// заполнение массива циклом |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pack; | |
class Student { | |
static String academy = "IT Step"; | |
int name; | |
double avgRating; | |
} | |
class AudiCar { | |
static String brand = "Audi"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
import java.util.Date; | |
class Program { | |
public static void main(String args[]) throws IOException { | |
String filepath = "one.txt"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
class Program { | |
public static void main(String args[]) throws IOException { | |
File file = new File("C:\\1\\file.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
class Program { | |
public static void main(String args[]) throws IOException { | |
File file = new File("C:\\1\\file.txt"); | |
// создаем объект FileReader для объекта File |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.io.*; | |
import javax.swing.*; | |
import javax.swing.event.*; | |
class Demo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
class MakeUpperCase extends FilterReader { | |
protected MakeUpperCase(Reader r) { | |
super(r); | |
// Implicit super constructor FilterReader() is undefined for default | |
// constructor. Must define an explicit constructor! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
class Program { | |
public static void main(String args[]) throws IOException { | |
try { | |
int countOfBytes = 200000; | |
String fileName = "C:\\1\\sample.txt"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
import java.util.*; | |
class Program { | |
public static void main(String args[]) throws IOException { | |
Properties ht = new Properties(); | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package files; | |
import java.io.*; | |
class MyInFilterStream extends FilterInputStream { | |
protected MyInFilterStream(InputStream in) { | |
super(in); | |
} |
OlderNewer