Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package love;
- /**
- *
- * @author ferdhika31
- */
- public class Love {
- private String nama;
- private boolean relation=false;
- private String ret;
- public Love(String nama_saya,boolean relationship){
- nama = nama_saya;
- relation = relationship; //jomblo or not
- }
- public void nyariGebetan(){
- if(relation==true)
- ret = "Eh "+nama+" jangan ngedua!";
- else
- ret = "Cie "+nama+" Jomblo cie aha :p";
- System.out.println(ret);
- }
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- // TODO code application logic here
- Love ferdhika = new Love("Ferdhika",false);
- ferdhika.nyariGebetan();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement