{"comment":{"url":"https://api.github.com/repos/SandyAlfianoor002/New-Tugas-Besar-Java-SandyNaufalRizqon/comments/11442348","html_url":"https://github.com/SandyAlfianoor002/New-Tugas-Besar-Java-SandyNaufalRizqon/commit/ecb0f1539201fef2f464d3ba4181ac1af1e7206d#commitcomment-11442348","id":11442348,"user":{"login":"RizqonRifani012","id":12217832,"avatar_url":"https://avatars.githubusercontent.com/u/12217832?v=3","gravatar_id":"","url":"https://api.github.com/users/RizqonRifani012","html_url":"https://github.com/RizqonRifani012","followers_url":"https://api.github.com/users/RizqonRifani012/followers","following_url":"https://api.github.com/users/RizqonRifani012/following{/other_user}","gists_url":"https://api.github.com/users/RizqonRifani012/gists{/gist_id}","starred_url":"https://api.github.com/users/RizqonRifani012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RizqonRifani012/subscriptions","organizations_url":"https://api.github.com/users/RizqonRifani012/orgs","repos_url":"https://api.github.com/users/RizqonRifani012/repos","events_url":"https://api.github.com/users/RizqonRifani012/events{/privacy}","received_events_url":"https://api.github.com/users/RizqonRifani012/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"ecb0f1539201fef2f464d3ba4181ac1af1e7206d","created_at":"2015-05-31T06:59:12Z","updated_at":"2015-05-31T06:59:12Z","body":"/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r\n */\r\npackage tbsandynaufalrizqon;\r\n\r\nimport java.util.Scanner;\r\n\r\n/**\r\n *\r\n * @author Ahmad Naufal\r\n */\r\npublic abstract class Analisis_LCD implements Warisan_jumlah_kondisi_posisi_sarana {\r\n    Scanner input = new Scanner (System.in);\r\n\tprivate int jumlah;\r\n\tprivate String kondisi;\r\n\tprivate String posisi;\r\n\t\r\n\tpublic int getJumlah() {\r\n            return jumlah;\r\n\t}\r\n\tpublic void setJumlah(int jumlah) {\r\n            this.jumlah = jumlah;\r\n\t}\r\n\tpublic String getKondisi() {\r\n            return kondisi;\r\n\t}\r\n\tpublic void setKondisi(String kondisi) {\r\n            this.kondisi = kondisi;\r\n\t}\r\n\tpublic String getPosisi() {\r\n            return posisi;\r\n\t}\r\n\tpublic void setPosisi(String posisi) {\r\n            this.posisi = posisi;\r\n\t} \r\n\r\n    @Override\r\n    public int analyticJumlah() {\r\n        System.out.println(\"\\nMasukkan Jumlah LCD : \");\r\n            jumlah = input.nextInt();\r\n            if(jumlah >=1){\r\n            return 1;\r\n            }\r\n            else{\r\n            return 0;\r\n            }\r\n    }\r\n\r\n    @Override\r\n    public int analyticKondisi() {\r\n        System.out.println(\"\\nMasukkan Kondisi LCD : \");\r\n            kondisi = input.next();\r\n            if(kondisi.equals(\"BERFUNGSI\")){\r\n            return 1;\r\n            }\r\n            else{\r\n            return 0;\r\n            }\r\n    }\r\n\r\n    @Override\r\n    public int analyticPosisi() {\r\n        System.out.println(\"\\nMasukkan Posisi LCD : \");\r\n            posisi = input.next();\r\n            if(posisi.equals(\"dekatdosen\")){\r\n            return 1;\r\n            }\r\n            else{\r\n            return 0;\r\n            }\r\n    }\r\n\r\n    @Override\r\n    public void show() {\r\n        System.out.println(\"\\nJumlah LCD : \"+jumlah);\r\n\tSystem.out.println(\"Kondisi LCD : \"+kondisi);\r\n\tSystem.out.println(\"Posisi LCD : \"+posisi);\r\n    }   \r\n}"}}