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 com.belajar.aritmatika;
- /**
- *
- * @author Genta
- */
- public class Profile {
- public String nama;
- public String kelas;
- public int lahir;
- public int hitungUmurKu(int thnSekarang, int thnLahir){
- return thnSekarang-thnLahir;
- }
- }
- /*
- Pada line 16 : Tipe data String diubah menjadi int
- Pada line 18 : public void diubah menjadi public int
- Pada line 18 : Tipe data diubah menjadi int
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement