id
stringlengths
36
36
text
stringlengths
1
1.25M
df72281b-5b13-438f-b206-7b05f8bae0d5
@Override public InputStream getStream(URI uri) { return this.getStream(uri.getHost(), uri.getPath()); }
44e1a7f9-c600-458e-b5a8-e33814aa2ae9
@Override public DirectoryStream<Path> list(String host, String path) { try { return Files.newDirectoryStream(getPath(host, path), new DirectoryStream.Filter<Path>() { @Override public boolean accept(Path entry) throws IOException { return Files.isRegularFile(entry); } }); } catch (IOException ex) { return null; } }
af5251b8-e071-4799-a3cc-0afc8e316c45
@Override public boolean accept(Path entry) throws IOException { return Files.isRegularFile(entry); }
25166785-0294-40d7-b6cb-b892b9676053
@Override public DirectoryStream<Path> list(URI uri) { return list(uri.getHost(), uri.getPath()); }
6bf2fb12-6f21-46ad-974d-227652869cec
public ZipFilePathResolver(Path path) { super(path); }
39fad745-6ff9-41df-9233-4d7559158f3d
protected String getFullHost(String host) { return host + ".zip"; }
77794952-0e78-4394-9c78-dba2922c16f5
@Override public Path getPath(String host, String path) { Path zip = directory.resolve(getFullHost(host)); try (FileSystem zipfs = FileSystems.newFileSystem(zip, null)) { return zipfs.getPath(path); } catch (IOException ex) { throw new RuntimeException("Error in getting path of ZipFilePathResolver", ex); } }
3ad8851a-8393-4ecd-9725-83ed09ea3768
public JarFilePathResolver(Path directory) { super(directory); }
688926e1-c458-4883-b529-a5c92637ea01
@Override protected String getFullHost(String host) { return host + ".jar"; }
2154a18e-b475-46cc-a1ef-e4a1822f70d9
public HttpRequest(String request, String path, String data) { method = request; target_path = path; this.data = data; }
79289d96-e6ec-4fe4-9441-7178e0dfedfb
public void write(OutputStream stream) throws IOException { final PrintWriter out = new PrintWriter(stream); out.printf("%s %s %s\n", this.method, this.target_path, "HTTP/1.1"); if (this.data != null) { out.write(data); } out.printf("\n"); out.flush(); stream.flush(); }
8adb7427-b2cb-454a-86e1-84fafd9b7af8
public static void main(String[] args) throws UnknownHostException, IOException{ HttpClient client = new HttpClient(); client.setFollow(true); System.out.println(client.open("GET", "google.com", "/", null)); }
f3fa997b-5b9d-4d03-9c66-7a1b1ba9d3e1
public void setFollow(Boolean follow) { following = follow; }
edaa10e2-ad19-4fdc-9c82-8bb064b0cba0
public String open(String request, String host, String path, String data) throws UnknownHostException, IOException { Socket socket = new Socket(host, 80); OutputStream stream = socket.getOutputStream(); HttpRequest httprequest = new HttpRequest(request, path, data); httprequest.write(stream); HttpResponse httpresponse = new HttpResponse(); httpresponse.read(socket.getInputStream()); if(httpresponse.statusCode == 301) { String newLocation = httpresponse.headers.get("Location"); final URL newURL = new URL(newLocation); path = newURL.getFile(); host = newURL.getHost(); return open(request, host, path, data); } socket.close(); return new String(httpresponse.body); }
8af091bc-c14c-4d11-9293-9a29f0b1bb38
public HttpResponse() { headers = new HashMap<String, String>(); }
dfbebdad-4af3-4a7c-ad16-28a9658aeeae
public void read(InputStream inputStream) throws IOException { final InputStreamReader reader = new InputStreamReader(inputStream); final BufferedReader in = new BufferedReader(reader); final String statusLine = in.readLine(); final String[] statusLineSplit = statusLine.split("\\s", 3); // final String httpVersion = statusLineSplit[0]; this.statusCode = Integer.parseInt(statusLineSplit[1]); // final String statusReason = statusLineSplit[2]; String headerLine = in.readLine(); while (!headerLine.isEmpty()) { final String[] headerSplit = headerLine.split(":\\s?", 2); if (headerSplit.length != 2) { throw new IllegalArgumentException("Header line not valid"); } headers.put(headerSplit[0], headerSplit[1]); headerLine = in.readLine(); } int body_size = Integer.parseInt(headers.get("Content-Length")); body = new char[body_size]; in.read(body, 0, body_size); in.close(); }
a2279bbe-3012-4b54-9e4d-dd00b9be284b
public static void main(String[] args) throws IOException{ System.out.println("Enter date in format d/M/y: "); final InputStream input = System.in; final InputStreamReader inputStreamReader = new InputStreamReader(input); final BufferedReader reader = new BufferedReader(inputStreamReader); final String date = reader.readLine(); final Socket clientSocket = new Socket("localhost", 44012); try { //get I/O streams final InputStream inputStream = clientSocket .getInputStream(); final OutputStream outputStream = clientSocket.getOutputStream(); final InputStreamReader inputStreamReader1 = new InputStreamReader(inputStream); final BufferedReader in = new BufferedReader(inputStreamReader1); final PrintWriter out = new PrintWriter(outputStream); out.println(date); out.flush(); final String result = in.readLine(); System.out.println(result); }catch (IOException e) { }finally { clientSocket.close(); } }
bee57427-72a2-4d48-973b-e878340d8c9b
public static void main(String[] args) { }
2508c214-dc15-4d84-8265-219148635fac
public static void main(String[] args) throws Exception { EchoServer echo = new EchoServer(); echo.run(); }
e84ba105-a1e9-4ae4-92ef-9981c7bd265c
public ClientHandler(Socket s) { clientSocket = s; }
7ce4a89b-3627-4ea4-a1ec-6a6613309014
@Override public void run() { try { handleClient(); } catch (IOException e) { e.printStackTrace(); } }
447c90d0-d2b0-46f3-9f74-bcc3ee3c4c35
private void handleClient() throws IOException { while(true) { try { final InputStream inputStream = clientSocket.getInputStream(); final OutputStream outputStream = clientSocket.getOutputStream(); final InputStreamReader inputStreamReader = new InputStreamReader(inputStream); final BufferedReader in = new BufferedReader(inputStreamReader); final PrintWriter out = new PrintWriter(outputStream); final String readLine = in.readLine(); out.println(readLine); out.flush(); }catch(java.net.SocketException e) { break; } } }
bc20e5af-da3a-4bb9-8eeb-6e8a60fca7ba
public void run() throws Exception { final ServerSocket serverSocket = new ServerSocket(44012); boolean started = true; while(started) { final Socket clientSocket = serverSocket.accept(); new ClientHandler(clientSocket).start(); } serverSocket.close(); }
845ac59e-af1d-432f-ae9c-d7a5226e0b7a
public static void main(String[] args) throws IOException { new DateServer().run(); }
12a29eb0-3ff6-4cfb-b870-1c4a0fadcce4
private void run() throws IOException { final ServerSocket serverSocket = new ServerSocket(44012); boolean started = true; while(started) { final Socket clientSocket = serverSocket.accept(); new ClientHandler(clientSocket).start(); } serverSocket.close(); }
3d37d047-83f2-4b77-bae6-2e62712ab343
public ClientHandler(Socket socket_) { clientSocket = socket_; }
18ba207a-2164-404d-8ce5-2c833273a388
@Override public void run() { try { handleClient(); } catch (IOException e) { e.printStackTrace(); } }
9a3549ac-6f0d-4b71-aa37-3974fb01f4a7
private void handleClient() throws IOException{ final InputStream inputStream = clientSocket.getInputStream(); final OutputStream outputStream = clientSocket.getOutputStream(); final InputStreamReader inputStreamReader = new InputStreamReader(inputStream); final BufferedReader in = new BufferedReader(inputStreamReader); final PrintWriter out = new PrintWriter(outputStream); final String readLine = in.readLine(); try { Date date = new SimpleDateFormat("d/M/y", Locale.ENGLISH).parse(readLine); Date now = new Date(); long diff = Math.abs(date.getTime() - now.getTime()); out.print(diff / 1000 / 60 / 60 / 24); out.print("\n"); } catch (ParseException e) { out.print("Bad format. Use d/M/y\n"); } finally { out.flush(); clientSocket.close(); } }
8bd36e11-6059-4f9a-be8e-9ac609455cc0
public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); final String str = in.readLine(); System.out.println(str.toUpperCase()); }
ec45485a-7356-44bd-884b-12c16ec90054
TestClass(int v) { this.var = v; }
5720aa72-c0e5-46da-accf-3d30afe94505
public static void main(String[] args) { arrayNumbers(); arrayNumbersInitialization(); iterateArrayNumbers(); iterateArrayIterator(); listInitialization(); mapExample(); completeMap(); }
89bbf87f-6d8a-43a8-9221-66d44b877416
public static void arrayNumbers() { final int a[] = new int[SIZE]; a[0] = 1; a[SIZE - 1] = 2; System.out.println(a[0]); }
ac805a7b-efb2-48e3-92cc-fc642b3e4ed6
public static void arrayNumbersInitialization() { final int a[] = new int[]{1, 2, 3, 4, 5}; System.out.println(a[0]); }
99400883-aca5-42f0-97d6-6cd186285e5e
public static void iterateArrayNumbers() { final int a[] = new int[] {1, 3, 5, 6, 7}; for (int i = 0; i < a.length; i += 1) { final int el = a[i]; System.out.println(el); } }
024c20f4-1897-4e1d-9b3f-aabb627f95c6
public static void iterateArrayIterator() { final int a[] = new int[] {1, 3, 5, 6, 7}; for (int el : a) { System.out.println(el); } }
5bdc551f-cbc4-467a-b98f-fc7c01618d63
public static void listInitialization() { final List<String> list = new ArrayList<String>(); list.add("First element"); list.add("Last element"); System.out.println(list.get(0)); for (String str : list) { System.out.println(str); } System.out.println(list.size()); }
32dadc4b-563d-4c34-935d-aa871667724f
public static void mapExample() { final Map<String, Integer> m = new HashMap<String, Integer>(); m.put("Bulgaria", 8); m.put("Germany", 80); System.out.println("Bulgaria: " + m.get("Bulgaria")); for (int val : m.values()) { System.out.println(val); } for(Entry<String, Integer> en : m.entrySet()) { System.out.println(en.getKey() + en.getValue()); } printCountriesWithPopAbove(10, m); }
7e620852-709e-4fac-b004-ead4308cbeb5
public static void printCountriesWithPopAbove(int pop, Map<String, Integer> m) { System.out.println("Population above " + pop + ":"); for(Entry<String, Integer> en : m.entrySet()) { if(en.getValue() > pop) System.out.println(en.getKey() + " -> " + en.getValue()); } }
f6b1f022-cbbb-4a91-867e-c54e993d81f7
public static void completeMap() { final Map<String, List<Integer>> a = new HashMap<String, List<Integer>>(); final List<Integer> list = new ArrayList<Integer>(); list.add(2); list.add(3); for (Entry<String, List<Integer>> e : a.entrySet()) { System.out.println("Name: " + e.getKey()); for (int i : e.getValue()) { System.out.println(i); } System.out.println(); } }
6363c73f-58cc-409d-b856-f42bf00a7656
public Equality(int value) { this.value = value; }
c41f749f-aff6-4d1b-b036-13139915cf4a
public boolean equals(Object obj) { if (obj instanceof Equality) { Equality equality = (Equality) obj; return equality.value == this.value; } return false; }
9f93c0e3-0d29-4a83-893b-ac56c8a15e64
public static void main(String[] args) { final Equality a1 = new Equality(1); final Equality b1 = new Equality(1); final Equality c1 = a1; final Equality c2 = new Equality(2); System.out.println(a1 == b1); System.out.println(a1 == c1); System.out.println(a1 == c2); System.out.println(b1 == c1); System.out.println(b1 == c2); System.out.println(c1 == c2); System.out.println(); System.out.println(a1.equals(b1)); System.out.println(a1.equals(c1)); System.out.println(a1.equals(c2)); System.out.println(b1.equals(c1)); System.out.println(b1.equals(c2)); System.out.println(c1.equals(c2)); }
2ea053f4-59e9-4930-a996-403cf249c257
public Fundamentals(int number) { my_number = number; }
dd7fb9ba-3638-44bc-b084-b9d5e23dfab8
private void showNumber() { System.out.println(my_number); }
60cca3dc-155e-4eab-a72d-8cf47f4bc7ae
public static void main(String[] args) { int a = 8; int b = 10; int c = b - a; for(int i = 0; i < c; ++i) { System.out.println(CONSTANT_STR + "!"); } Fundamentals fund1 = new Fundamentals(1); Fundamentals fund2 = new Fundamentals(1); Fundamentals fund3 = new Fundamentals(2); Fundamentals fund4 = fund3; if(fund1 == fund2) { System.out.println("fund1 == fund2"); }else{ System.out.println("fund1 != fund2"); } if(fund1.equals(fund2)) { System.out.println("fund1 equals fund2"); }else{ System.out.println("fund1 not equals fund2"); } if(fund3 == fund4) { System.out.println("fund3 == fund4"); }else{ System.out.println("fund3 != fund4"); } if(fund3.equals(fund4)) { System.out.println("fund3 equals fund4"); }else{ System.out.println("fund3 not equals fund4"); } fund1.showNumber(); fund2.showNumber(); fund3.showNumber(); fund4.showNumber(); }
6568a3c5-3961-44c5-8d98-a4ea39766318
public static void main(String []args) throws IOException { //inputStreamExample(); //bufferedReaderExample(); //readLinecountLetterInLine(); //readLineGetLength(); //readFromUrl(); readFromFile(); }
44a6eac9-c728-4d1b-9206-a910c86b00ff
public static void inputStreamExample() throws IOException { InputStream input = System.in; final int b = input.read(); System.out.println(Character.toString((char)b)); final byte a[] = new byte[3]; input.read(a); System.out.println(new String(a)); }
7c11321c-6e7c-491e-8a98-81e0e26777e5
private static void readFromFile() throws IOException { final File file = new File("/home/nickie/test.txt"); final InputStream input = new FileInputStream(file); final InputStreamReader inputStreamReader = new InputStreamReader(input, Charset.forName("UTF-8")); final BufferedReader reader = new BufferedReader(inputStreamReader); try { String nextLine; while((nextLine = reader.readLine()) != null) { System.out.println(nextLine); } } finally { reader.close(); } }
ee45c8a6-b63f-4fcb-affe-c77bce9a1a02
private static void readFromUrl() throws IOException { final URL url = new URL("http://google.com"); final InputStream input = url.openStream(); final InputStreamReader inputStreamReader = new InputStreamReader(input, Charset.forName("UTF-8")); final BufferedReader reader = new BufferedReader(inputStreamReader); try { String nextLine; while((nextLine = reader.readLine()) != null) { System.out.println(nextLine); } } finally { reader.close(); } }
ab1bcca3-7ad0-4d25-9f76-4893efd5e456
public static void bufferedReaderExample() throws IOException { final InputStream input = System.in; final InputStreamReader inputStreamReader = new InputStreamReader(input); final BufferedReader reader = new BufferedReader(inputStreamReader); final String wholeLine = reader.readLine(); System.out.println(wholeLine); int count = 0; while(!reader.readLine().equals(END_READER)) { ++count; } System.out.println("You have entered: " + count + " lines."); }
b5a5c053-068b-4eca-a6cc-52c8a33856a3
public static String getLine() { final InputStream input = System.in; final InputStreamReader inputStreamReader = new InputStreamReader(input); final BufferedReader reader = new BufferedReader(inputStreamReader); try { return reader.readLine(); } catch (IOException e) { return null; } }
6dd3be99-eba9-4f96-a091-76cc299833d8
public static int countSingleLetter(String line, char letter) { int count = 0; for (int i = 0; i < line.length(); ++i) { if (line.charAt(i) == letter) { ++count; } } return count; }
c701a506-3abb-4b94-8a61-f3a8f1310d1f
public static int countLineLength(String line) { return line.length(); }
99544461-c3ba-4652-b360-fa7f8153b180
public static void countLetterInLine() { final String line = getLine(); final int count = countSingleLetter(line, 'a'); System.out.println("Count is: " + count); }
91248f11-012a-4c36-942d-16fd3680cf73
public static void readLineGetLength() { final String line = getLine(); System.out.println("Length is: " + countLineLength(line)); }
06741534-a827-478c-ac33-4d16e7318d05
Epic() { }
224dea05-45a1-4f8e-86df-32ad99a39aae
public void start(Stage primaryStage) { primaryStage.setTitle("Hello World!"); Button btn = new Button(); btn.setText("Say 'Hello World'"); btn.setOnAction( new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("Hello World!"); } }); StackPane root = new StackPane(); root.getChildren().add(btn); primaryStage.setScene(new Scene(root, 300, 250)); primaryStage.show(); }
148b929f-b0a0-4091-8e0a-4b5e09ae1ab6
@Override public void handle(ActionEvent event) { System.out.println("Hello World!"); }
a6bac9ef-2d7c-4760-97fb-ec18733b7056
GloryCalc() { calc = new Calculator(); }
0fbe3bc2-0ef4-48de-8d3f-127a31eff3e8
public void run() { try { calc.run(); while(Glory.getInstance().shouldThreadBeRunning()) ; } catch(Exception e) { } calc.setVisible(false); }
a3d6eff1-eeb8-4639-b680-ef0726a6d2f7
EpicGlory(String [] args) { thing = args; epic = new Epic(); }
348f44b8-0622-4f18-9d0d-be8a1e26c0a0
public void run() { try { while(Glory.getInstance().shouldThreadBeRunning()) ; } catch(Exception e) { } }
0dc5ac50-e822-4141-9d42-44d7997999dc
public static void main(String [] args) { (new EpicGlory(args)).run(); }
57faba8b-a789-444b-b188-5ab9e325fa98
public Calculator() { super("Calculator"); setFont(new Font("Arial", 1, 20)); GridBagConstraints c = new GridBagConstraints(); GridBagLayout gridBag = new GridBagLayout(); Insets inset = new Insets(3, 3, 3, 3); outText = new String(""); total = 0; oper = " "; buttons = new JPanel(); text = new JPanel(); mainPanel = new JPanel(); EmptyBorder em = new EmptyBorder(new Insets(5, 5, 5, 5)); mainPanel.setBorder(em); setMinimumSize(new Dimension(250, 300)); buttons.setLayout(new GridLayout(5, 4)); text.setLayout(new GridLayout(1, 1)); mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS)); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { } }); nListener = new ActionListener() { public void actionPerformed(ActionEvent e) { outText += ((JButton)e.getSource()).getText(); t1.setText(outText); } }; oListener = new ActionListener() { public void actionPerformed(ActionEvent e) { calculate(Float.parseFloat(t1.getText())); oper = ((JButton)e.getSource()).getText(); outText = ""; t1.setText(Float.toString(total)); } }; b0 = new JButton("0"); b1 = new JButton("1"); b2 = new JButton("2"); b3 = new JButton("3"); b4 = new JButton("4"); b5 = new JButton("5"); b6 = new JButton("6"); b7 = new JButton("7"); b8 = new JButton("8"); b9 = new JButton("9"); ba = new JButton("+"); bb = new JButton("<-"); bc = new JButton("c"); bd = new JButton("/"); be = new JButton("="); bm = new JButton("*"); bp = new JButton("."); bs = new JButton("-"); t1 = new JTextField("", 15); text.add(t1); buttons.add(bc); buttons.add(bb); buttons.add(new Label("")); // buttons.add(bd); buttons.add(b1); buttons.add(b2); buttons.add(b3); buttons.add(bm); buttons.add(b4); buttons.add(b5); buttons.add(b6); buttons.add(bs); buttons.add(b7); buttons.add(b8); buttons.add(b9); buttons.add(ba); buttons.add(new Label("")); buttons.add(b0); buttons.add(bp); buttons.add(be); mainPanel.add(text); mainPanel.add(buttons); add(mainPanel); //add(mainFrame); }
f25f0e41-11b9-4cb1-9d39-ae217d39f834
public void windowClosing(WindowEvent e) { }
3919e488-c865-477d-b623-53df9d914773
public void actionPerformed(ActionEvent e) { outText += ((JButton)e.getSource()).getText(); t1.setText(outText); }
9bf1b256-c9c1-4dae-87ae-e96986e52de3
public void actionPerformed(ActionEvent e) { calculate(Float.parseFloat(t1.getText())); oper = ((JButton)e.getSource()).getText(); outText = ""; t1.setText(Float.toString(total)); }
e9195428-079f-48dc-a834-be6219088129
public void calculate(float num) { switch(oper) { case "+": total += num; break; case "-": total -= num; break; case "*": total *= num; break; case "/": total /= num; break; case " ": total = num; case "=": default: } }
271c1fb1-0369-489a-b2c2-532c1dd59c2e
public void run() { b1.addActionListener(nListener); b2.addActionListener(nListener); b3.addActionListener(nListener); b4.addActionListener(nListener); b5.addActionListener(nListener); b6.addActionListener(nListener); b7.addActionListener(nListener); b8.addActionListener(nListener); b9.addActionListener(nListener); b0.addActionListener(nListener); bp.addActionListener(nListener); ba.addActionListener(oListener); bb.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { outText = outText.substring(0, outText.length() - 1); t1.setText(outText); } catch(Exception x) { } } }); bc.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { outText = ""; total = 0; t1.setText(""); } }); bd.addActionListener(oListener); be.addActionListener(oListener); bm.addActionListener(oListener); bs.addActionListener(oListener); this.setVisible(true); }
354f10ac-6fdc-4681-9d2d-346e79accd22
public void actionPerformed(ActionEvent e) { try { outText = outText.substring(0, outText.length() - 1); t1.setText(outText); } catch(Exception x) { } }
80f140ca-d9da-4a1d-bcb9-23ab5beee2b5
public void actionPerformed(ActionEvent e) { outText = ""; total = 0; t1.setText(""); }
9cf3b6a2-024a-49f2-83c3-5a310857de71
Find(String[] tArg) { mArg = tArg; }
b2e3a740-0421-4c3c-b876-dfe8494f4fe1
void run() { File f = new File("."); String[] list = f.list(); for(String tList:list) { System.out.println(tList); } }
c5059c99-2410-46a1-91e5-a7f144ef144e
public static void main(String [] arg) { new Find(arg).run(); }
7cda3301-c651-42f5-a2dc-a07e0758ceaf
public Holiday[] sortHoliday(Holiday holiday[]);
665965ff-cef9-40ba-9497-765bebdb231b
public Birthday[] sortBirthday(Birthday b[]);
3b5162f8-9ed5-4160-a0dc-ccc262f8a7dd
public Other[] sortOther(Other o[]);
51ce42a9-cbf6-4b4a-875c-8c8d804cbd0d
public int searchHoliday(String Holi,Holiday holiday[],int low, int high);
6620c87f-9aaa-4bac-8ba7-7353f170dda6
public int searchBirthday(String name,String rela,Birthday birthday[],int low, int high);
0a0975af-4bfa-4d0f-9d80-7461e446de01
public int searchOther(String oth,Other other[],int low, int high);
f9b00af5-de92-4be5-8fc4-2a6a0d6d56f7
public Holiday[] readinHoliday()throws IOException;
28f43c9d-afdc-44b1-a747-7be4271a7b01
public Birthday[] readinBirthday()throws IOException;
ac026f45-5c81-485f-adc9-315681b14b85
public Other[] readinOther()throws IOException;
16d1fbaf-1eb2-4de3-8862-0fa1d98a88a1
public void writeoutHoliday()throws IOException;
426844e0-5a99-4975-9a74-20cf12d914b5
public void writeoutBirthday()throws IOException;
dfeb0301-87b7-4e07-a6c8-60e4d9db65c4
public void writeoutOther()throws IOException;
2827d99a-6aa8-4e2f-b372-fb9c949c218a
public Event(String n,int d,int m){ NameofEvent = n; Day = d; Month = m; }
a7adbaae-d862-474d-bbb8-971265387e41
public Event(int d,int m){ Day = d; Month = m; }
098398ab-d819-4e15-8fa7-d1eea72fdcdc
abstract public int getDay();
1dfb08df-e9aa-4e1d-a1ce-e6308183b2da
abstract public int getMonth();
d69684fb-b2cb-4547-bfc8-3b8ee43aff15
abstract public String printInfo();
25b9d0f0-3876-4733-a9e8-3b27e91f7147
public Birthday(String NoP,String r,int d,int m){ super(d,m); NameofPerson = NoP; Relationship = r; }
b48fa37a-c8db-43ca-ab6a-aef5a9c07bd7
public String getRelationship(){ return Relationship; }
39baee8d-ca6c-404d-b505-efe034a02280
public String getNameofPerson(){ return NameofPerson; }
8cfaef8a-000b-4eca-9278-0eeeb5b45b7b
public int getDay(){ return Day; }
7d2fd8f9-93b4-4fe6-99e2-bf5b81df2ea5
public int getMonth(){ return Month; }
677c0872-ebe7-48b3-8e2d-2d7e3af641f5
public String printInfo(){ return NameofPerson+"'s"+" "+"Birthday "+ " Day;"+Day + " Month:" + Month; }
2469b00e-5307-46da-b8a7-0ba8b1e86f03
public Other(String AoE,String NoE,int d,int m){ super(NoE,d,m); ActionsOnEvent = AoE; }
6ca83447-00dc-48c1-8445-0efaa1623a7b
public int getDay(){ return Day; }
8dcb4271-b016-4f5a-8139-5d5e80e3baa3
public int getMonth(){ return Month; }