Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.belajar.aritmatika;
- //class Profile
- public class Profile{
- public String nama;
- public String kelas;
- public int lahir;
- public int hitungUmurKu(int thnSekarang, int thnLahir){
- return thnSekarang-thnLahir;
- }
- /*
- 9.Line 9 = public void diganti jadi public int sama
- String thnLhir diganti jadi int thnLahir
- */
- }
Add Comment
Please, Sign In to add comment