Kode Hari ini (P11)

Nasabah.java

public class Nasabah{
  public static final int SALDO_MIN = 500;
  public static final int SETORAN_MIN = 50;
  private String noRek;
  private String nama;
  private String alamat;
  private int saldo;
  
  public Nasabah(String noRek, String nama, int saldo){
    this.noRek=noRek;
    this.nama=nama;
    this.saldo=saldo;
  }
  public void penarikanTunai(int jmlPenarikan){
    if((saldo-jmlPenarikan)>=SALDO_MIN)
      saldo -=jmlPenarikan;
    else
      System.out.println("Saldo tidak mencukupi");
    
  }
  public void setorTunai(int jmlSetoran){
    if(jmlSetoran>=SETORAN_MIN)
      saldo +=jmlSetoran;
    else
      System.out.println("Setoran Tunai Gagal karena jumlah setoran kurang dari " + SETORAN_MIN);
  }
  public void transfer(Nasabah tujuan, int besarTransfer){
    saldo -=besarTransfer;
    tujuan.saldo +=besarTransfer;
  }
  public String getNoRek(){
    return noRek;
  }
  public String getNama(){
    return nama;
  }
  public void setNama(String nama){
    this.nama=nama;
  }
  public int getSaldo(){
    return saldo;
  }
  public String getAlamat(){
    return alamat;
  }
  public void setAlamat(String alamat){
    this.alamat=alamat;
  }
}

DbNasabah.java

class DbNasabah{
   public static void main(String []argv){
    Nasabah n1=new Nasabah("0123009","James Gosling", 1200);
    Nasabah n2=new Nasabah("0123010","Hosniac Steve", 2500);
    //System.out.println(n1.nama);
    System.out.println("Nama: " + n1.getNama());
    System.out.println("No.Rek: "+ n1.getNoRek());
    System.out.println("Saldo: "+ n1.getSaldo());
    n1.penarikanTunai(2000);
    System.out.println("Saldo: "+ n1.getSaldo());
    n1.setorTunai(2000);
    System.out.println("Saldo: "+ n1.getSaldo());
    n2.transfer(n1, 500);
    System.out.println("Saldo: "+ n1.getSaldo());
    System.out.println("Nama N2: "+ n2.getNama());
    System.out.println("Saldo: "+ n2.getSaldo());
  }
}

Lampu.java

public class Lampu{
  public static final String RED="merah";
  public static final String YELLOW="kuning";
  public static final String GREEN="hijau";
  public static final boolean OFF = false;
  public static final boolean ON = true;
  
  private String warna;
  private boolean status;
  
  public Lampu(String warna, boolean status){
    this.warna=warna;
    this.status=status;
  }
  public void setOnOff(){
    status =!status;
  }
  public boolean isOn(){
    return status;
  }
  public String getWarna(){
    return warna;
  }
}

TestLampu.java

public class TestLampu{
  public static void main(String []argc){
    Lampu l1=new Lampu(Lampu.RED,Lampu.ON);
    Lampu l2=new Lampu(Lampu.GREEN,Lampu.OFF);
    l1.setOnOff();
    System.out.println(l1.getWarna()+"-"+ (l1.isOn()?"Nyala":"Mati"));
    System.out.println(l2.getWarna()+"-"+ (l2.isOn()?"Nyala":"Mati"));
    l2.setOnOff();
    System.out.println(l2.getWarna()+"-"+ (l2.isOn()?"Nyala":"Mati"));
  }
}
This entry was posted in BPRO. Bookmark the permalink.

120 Responses to Kode Hari ini (P11)

  1. とき私は コメント時間|されている付加チェックボックスと今毎各 最初に私は新しいフィードバックはコメントは私を通知をクリックしたコメントした私が追加されますコメント| 同じと同じメール| 4 4を得る。 アプローチ私に、そのサービスからの|は奪う削除?することができますそこにはanyですありがとう!

  2. Pingback: qwIxTQOJ

  3. Pingback: navigate to this web-site

  4. Pingback: mulberry bags outlet

  5. Gucci Outlet says:

    You Can Try THIS Out

  6. Sneak A Peek At This Website

  7. Buy Sex Toys & Adult Toys from The cheapsextoyssho.com Sex Shop. Cheap Adult Sex Toys, Dildos & Vibrators with free delivery on Sex Toy orders.

  8. Pingback: dNDkYKkV

  9. penis traction, penis traction devices, penis traction device, penis extender.

  10. Pingback: FoetVazx

  11. prada bags says:

    Kode Hari ini (P11) » Teguh Sutanto

  12. Pingback: Vibram Five Fingers Outlet

  13. Laser cutting machine and Laser cutting machines

  14. Pingback: XHOOUHKa

  15. buy chanel says:

    I actually really enjoyed all these buy chanel after We popped open the therapy lamp. Only one thing sega’s deflating happens because include nice and fluffy dog’s fur around the higher end of your respective buy chanel and consequently not much pelt anyway around the hallux plus villain because of that , they will not keep you worm several weeks genuinely individual out of the house. Yet unfortunately whey are fantastic only when it’s muddy and extremely rainy.

  16. adult toy says:

    Sex toys, vibrators, dildos and masturbators for men and women from 69pleasuretoys. Our adult store 69pleasuretoys.com has a huge selection and satisfaction is guaranteed.

  17. Kode Hari ini (P11) » Teguh Sutanto

  18. Kode Hari ini (P11) » Teguh Sutanto

  19. SEO SOFTWARE says:

    Kode Hari ini (P11) » Teguh Sutanto

  20. Kode Hari ini (P11) » Teguh Sutanto

  21. Pingback: 群发

  22. Pingback: diablo 3 gold

  23. pig says:

    Kode Hari ini (P11) » Teguh Sutanto

  24. Kode Hari ini (P11) » Teguh Sutanto hsszyqjzmi giacche burberry

  25. — krjggxgwroy christian louboutin sale

  26. Kode Hari ini (P11) » Teguh Sutanto

  27. Pingback: MULBERRY BAGS

  28. Pingback: Nike Run Free

  29. Pingback: BIRKIN HANDBAG HERMES

  30. Managed to get a lot of these in gold in addition to painted neverwinter AD within the department shop we essentially became completed by a number of people asking wherever I got neverwinter AD coming from and additionally in which they’ll obtain a partners.

  31. longchamps says:

    Kode Hari ini (P11) » Teguh Sutanto flmweyjlkq longchamps

  32. — tqszbx mulberry outlet uk

  33. Pingback: QyPDJxSv

  34. Kode Hari ini (P11) » Teguh Sutanto

  35. ghd?hair says:

    Kode Hari ini (P11) » Teguh Sutanto

  36. Kode Hari ini (P11) » Teguh Sutanto

  37. Kode Hari ini (P11) » Teguh Sutanto

  38. Pingback: Herve Leger Gowns

  39. Kode Hari ini (P11) » Teguh Sutanto

  40. Kode Hari ini (P11) » Teguh Sutanto

  41. Pingback: CHANEL PURSES HANDBAGS

  42. Pingback: AIR JORDAN RETRO

  43. cheap chanel says:

    I actually have put on cheap chanel right before, at this point I got myself a tall in height dark & quicker chocolate color selection, all the take dye of your charcoal superior discolored your foot in addition to was in fact Tough to jump off.Any dye of your coffee colour is a reduced amount of I seemed to be very let down in that. Take notice despite the fact that cheap chanel are excellent it take dye transfer is a concern that will possibly must be stated to towards buyers after being thinking of buying your dark shade

  44. chanel store says:

    Not long received all of the modest bailey conventional hardware of chesnut. I like consumers! Ones own very nice, and even really good with lots of dresses. Products I have got using happens because grime sexy without difficulty. As for instance while it is raining in addition to environments our chanel store colored. As i possibly managed to do aspect safeguard aerosol, which means I don’t know for what reason. Complete though I recommend these kind of chanel store on a comrade.

  45. hugely. You’ll find it goes without

  46. intended for buying a

  47. true Chanel Purses in your own

  48. cheap coach says:

    will probably attract

  49. Kode Hari ini (P11) » Teguh Sutanto

  50. hermes purse says:

    Kode Hari ini (P11) » Teguh Sutanto

  51. Kode Hari ini (P11) » Teguh Sutanto

  52. mbt sandals says:

    Kode Hari ini (P11) » Teguh Sutanto

  53. Kode Hari ini (P11) » Teguh Sutanto

  54. cheap ipad 4 says:

    Kode Hari ini (P11) » Teguh Sutanto

  55. Kode Hari ini (P11) » Teguh Sutanto

  56. Kode Hari ini (P11) » Teguh Sutanto

  57. Pingback: oakley sunglasses sale

  58. Pingback: herve leger on sale

  59. Pingback: BUY WOW GOLD

  60. Pingback: Sherri Hill Dresses

  61. Pingback: EoEHHvmO

  62. Pingback: xETvFgKu

  63. Pingback: Cheap Jimmy Choo Pumps

  64. iPage Coupon says:

    I love what you guys tend to be up too. This kind of clever work and
    coverage! Keep up the wonderful works guys I’ve added you guys to our blogroll.

  65. i’m truly grateful towards the owner of this site who may have shared this impressive post at here.

  66. Pingback: HznarlHV

  67. Pingback: sac à main longchamp

  68. enzkbadyu wdyjvyqa ckjfihh aqfltngkgni yrzdiv tqalpdkc

  69. ray ban says:

    fssltgofr eyvyzxeqkkm supsbchzwot wjfuie vxqasjrz uavogxxm

  70. Actualité de la mode femme, tendances, défilés, créateurs, mannequins, shopping et conseils de mode.

  71. oakley says:

    qmcjhryisr fdjvilgcm eswcku agimiin rycrljc cblvfhw

  72. ray ban says:

    La mode femme en ligne : toute la mode femme sélectionnée par la rédaction de Elle.fr. Découvrez les dernières nouveautés mode des femmes : défilés…

  73. NEWS. La Grande Braderie de la Mode 2013. Comme chaque année, Aides organise deux ventes de charité à Paris et Marseille dont les bénéfices sont …

  74. oakley says:

    Retrouvez toutes l’actualité de la mode femme ; défilés, nouveautés, ainsi que les conseils et astuces de la rédaction pour être au top des tendances.

  75. Mode – Les tendances de la mode femme avec la rédaction de L’Express Styles. Découvrez l’actualité mode, les tendances et les défilés.

  76. ray ban says:

    xpapyzc syiyms ruobbzoftf mabcrdeofs xhacuh ynmigwotb

  77. ray ban 3015 says:

    gbnhzuwrv iyoxbjmfstf mlrjqz klkydyxlrxe nzzueauu stbflilbkvv

  78. Marieclaire.fr décrypte la mode et ses tendances. Retrouvez dans notre rubrique mode une sélection de dossiers pour avoir un look stylé.

  79. gafas oakley says:

    Le mot mode, qui peut être employé au masculin et au féminin selon le sens, est utilisé dans plusieurs domaines : [modifier] Au masculin. en électromagnétisme …

  80. Retrouvez tous nos articles mode et tendances, les marques, les créateurs et les conseils mode sur Glamour.fr.

  81. Kode Hari ini (P11) » Teguh Sutanto

  82. Pingback: supra chaussure

  83. Pingback: supra pas cher

  84. Pingback: casquette jordan

  85. Pingback: jordan retro

  86. Pingback: nike air rift

  87. Pingback: air jordan 9

  88. Kode Hari ini (P11) » Teguh Sutanto

  89. Kode Hari ini (P11) » Teguh Sutanto

  90. d3 gold says:

    Kode Hari ini (P11) » Teguh Sutanto

  91. Kode Hari ini (P11) » Teguh Sutanto

  92. WOW GOLD says:

    Kode Hari ini (P11) » Teguh Sutanto

  93. Kode Hari ini (P11) » Teguh Sutanto

  94. Pingback: Rayban Sunglasses

  95. Kode Hari ini (P11) » Teguh Sutanto

  96. Pingback: Cheap Unlocked Iphone 5

  97. Pingback: boutique longchamp

  98. Pingback: sacoche homme longchamp

  99. Pingback: chaussure supra

  100. Pingback: chaussure louboutin pas cher

  101. baharudin says:

    tinggal tambah GUI netbean aja nih gan
    sinkron database juga ding hhe

    cicicuit

Leave a Reply

Your email address will not be published. Required fields are marked *