Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package com.belajar.aritmatika;
  7.  
  8. /**
  9. *
  10. * @author Genta
  11. */
  12. public class Profile {
  13.  
  14. public String nama;
  15. public String kelas;
  16. public int lahir;
  17.  
  18. public int hitungUmurKu(int thnSekarang, int thnLahir){
  19.  
  20. return thnSekarang-thnLahir;
  21.  
  22. }
  23.  
  24. }
  25.  
  26. /*
  27.  
  28. Pada line 16 : Tipe data String diubah menjadi int
  29. Pada line 18 : public void diubah menjadi public int
  30. Pada line 18 : Tipe data diubah menjadi int
  31. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement