Skip to content

Instantly share code, notes, and snippets.

View rashemihmih's full-sized avatar

Михаил Захаров rashemihmih

View GitHub Profile
@rashemihmih
rashemihmih / Country.java
Created March 6, 2018 15:46
FORECSYS test
public class Country {
private String name;
private int sum;
private HashSet<Integer> users = new HashSet<>();
public Country(Record record) {
name = record.getCountry();
sum = record.getCount();
users.add(record.getId());
}
import java.io.*;
public class Main {
public static void main(String[] args) {
A a = new A(4);
try (OutputStream os = new FileOutputStream("a");
ObjectOutputStream oos = new ObjectOutputStream(os)) {
oos.writeObject(a);
os.write("hello".getBytes());
} catch (IOException e) {