Commit fa80d9d3 authored by Omid Sayfun's avatar Omid Sayfun

Initialize Classes

parents
import java.util.*;
import java.io.IOException;
public class Main{
static class Board{
public int n;
public int m;
public ArrayList<Thief> thiefs;
public ArrayList<Police> polices;
public Board(int n, int m){
this.n = n;
this.m = m;
this.thiefs = new ArrayList<Thief>();
this.polices = new ArrayList<Police>();
}
}
static class Thief{
public int x;
public int y;
public Thief(int x, int y){
this.x = x;
this.y = y;
}
}
static class Police{
public int x;
public int y;
public Police(int x, int y){
this.x = x;
this.y = y;
}
}
public static void main(String[] args) throws IOException, InterruptedException{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment