@nabbit123/

project#11

Java

No description

fork
loading
Files
  • Main.java
  • Address.class
  • Address.java
  • Main.class
  • Student.class
  • Student.java

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.5460765105332923","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"cHVibGljIGNsYXNzIE1haW57CiBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncyl7CiAgIEFkZHJlc3Mgc2Nob29sID0gbmV3IEFkZHJlc3MoIjUwIEF2ZW51ZSBBdmUuIiwgIkJyb29rbHluIiwgIk5ZIiwgMTEyMjMpOwogICBBZGRyZXNzIGpIb21lID0gbmV3IEFkZHJlc3MoIjIxIEF2ZW51ZSBYIiwgIkJyb29rbHluIiwgIk5ZIiwgMTEyMjMpOwogICBTdHVkZW50IGpvaG4gPSBuZXcgU3R1ZGVudCgiSm9obiIsICJHb21leiIsIGpIb21lLCBzY2hvb2wpOwogICBBZGRyZXNzIG1Ib21lID0gbmV3IEFkZHJlc3MoIjEyMyBNYWluIFN0cmVldCIsICJCcm9va2x5biIsICJOWSIsMTEyMjMpOwogICBTdHVkZW50IG1hcnNoYSA9IG5ldyBTdHVkZW50KCJNYXJzaGEiLCAiSm9uZXMiLCBtSG9tZSwgc2Nob29sKTsKICAgQWRkcmVzcyBnSG9tZSA9IG5ldyBBZGRyZXNzKCIxNjAwIEF2ZSBOVyIsICJXYXNoaW5ndG9uIERDIiwgIlBBIiwgMjA1MDApOwogICBTdHVkZW50IGdpb3Zhbm5pID0gbmV3IFN0dWRlbnQoIkdpb3Zhbm5pIiwgIlJvamFzIiwgZ0hvbWUsIHNjaG9vbCk7CiAgIFN5c3RlbS5vdXQucHJpbnRsbihqb2huKTsKICAgU3lzdGVtLm91dC5wcmludGxuKCk7CiAgIFN5c3RlbS5vdXQucHJpbnRsbihtYXJzaGEpOwogICBTeXN0ZW0ub3V0LnByaW50bG4oKTsKICAgU3lzdGVtLm91dC5wcmludGxuKGdpb3Zhbm5pKTsKICB9Cn0gIA=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public class Main{
 public static void main (String[] args){
   Address school = new Address("50 Avenue Ave.", "Brooklyn", "NY", 11223);
   Address jHome = new Address("21 Avenue X", "Brooklyn", "NY", 11223);
   Student john = new Student("John", "Gomez", jHome, school);
   Address mHome = new Address("123 Main Street", "Brooklyn", "NY",11223);
   Student marsha = new Student("Marsha", "Jones", mHome, school);
   Address gHome = new Address("1600 Ave NW", "Washington DC", "PA", 20500);
   Student giovanni = new Student("Giovanni", "Rojas", gHome, school);
   System.out.println(john);
   System.out.println();
   System.out.println(marsha);
   System.out.println();
   System.out.println(giovanni);
  }
}