{"action":"opened","issue":{"url":"https://api.github.com/repos/danitkj2bangkalan/Oriented-Object-Programming/issues/1","repository_url":"https://api.github.com/repos/danitkj2bangkalan/Oriented-Object-Programming","labels_url":"https://api.github.com/repos/danitkj2bangkalan/Oriented-Object-Programming/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/danitkj2bangkalan/Oriented-Object-Programming/issues/1/comments","events_url":"https://api.github.com/repos/danitkj2bangkalan/Oriented-Object-Programming/issues/1/events","html_url":"https://github.com/danitkj2bangkalan/Oriented-Object-Programming/issues/1","id":363203314,"node_id":"MDU6SXNzdWUzNjMyMDMzMTQ=","number":1,"title":"Array","user":{"login":"danitkj2bangkalan","id":23434565,"node_id":"MDQ6VXNlcjIzNDM0NTY1","avatar_url":"https://avatars1.githubusercontent.com/u/23434565?v=4","gravatar_id":"","url":"https://api.github.com/users/danitkj2bangkalan","html_url":"https://github.com/danitkj2bangkalan","followers_url":"https://api.github.com/users/danitkj2bangkalan/followers","following_url":"https://api.github.com/users/danitkj2bangkalan/following{/other_user}","gists_url":"https://api.github.com/users/danitkj2bangkalan/gists{/gist_id}","starred_url":"https://api.github.com/users/danitkj2bangkalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danitkj2bangkalan/subscriptions","organizations_url":"https://api.github.com/users/danitkj2bangkalan/orgs","repos_url":"https://api.github.com/users/danitkj2bangkalan/repos","events_url":"https://api.github.com/users/danitkj2bangkalan/events{/privacy}","received_events_url":"https://api.github.com/users/danitkj2bangkalan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-24T15:39:47Z","updated_at":"2018-09-24T15:39:47Z","closed_at":null,"author_association":"OWNER","body":"public class Jurusan\r\n{\r\n    public String NamaJurusan;\r\n    \r\n    void setNama(String n){\r\n        NamaJurusan = n;\r\n    }\r\n    \r\n    String Tampil(){\r\n        return \"jurusan : \"+ NamaJurusan;\r\n    } \r\n}\r\npublic class Fakultas\r\n{\r\n    // instance variables - replace the example below with your own\r\n    private String NamaFakultas;\r\n    \r\n    void setNama( String n ){\r\n        NamaFakultas = n;\r\n    }\r\n    \r\n    String Tampil(){\r\n        return\"Fakultas : \" + NamaFakultas;\r\n    }\r\n}\r\npublic class testFakultas\r\n{\r\n   public static void main()\r\n   {\r\n       // deklarasi array untuk fakultas\r\n       Fakultas[] fakultas = new Fakultas[2];\r\n       \r\n       fakultas[0] = new Fakultas();\r\n       fakultas[1] = new Fakultas();\r\n     \r\n       fakultas[0].setNama (\"Teknik\");\r\n       fakultas[1].setNama (\"Pendidikan\");\r\n      \r\n       // deklarasi array untuk juruasan\r\n       Jurusan[] jur = new Jurusan[6];\r\n       \r\n       jur[0] = new Jurusan();\r\n       jur[1] = new Jurusan();\r\n       jur[2] = new Jurusan();\r\n       jur[3] = new Jurusan();\r\n       jur[4] = new Jurusan();\r\n       jur[5] = new Jurusan();\r\n       \r\n       jur[0].setNama(\"Informatika\");\r\n       jur[1].setNama(\"Mesin\");\r\n       jur[2].setNama(\"Elektro\");\r\n       jur[3].setNama(\"Matematika\");\r\n       jur[4].setNama(\"Pendidikan anak usia dini\");\r\n       jur[5].setNama(\"Sekolah dasar\");\r\n       \r\n       int swap = 3;\r\n       for (int a = 0; a < fakultas.length;a++){\r\n           System.out.println(fakultas[a].Tampil());\r\n           if(a == 0){\r\n               for (int i= 0;i<3;i++){\r\n                   System.out.println(jur[i].Tampil());\r\n                }\r\n            }\r\n            else if(a == 1){\r\n                for (int j = 3;j<jur.length;j++){\r\n                    System.out.println(jur[j].Tampil());\r\n                }\r\n            }\r\n        }\r\n       \r\n   }\r\n}\r\n\r\n\r\n"}}
{"actor":{"display_login":"danitkj2bangkalan"}}