Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LaptopSaya {
- String merek,processor;
- int ram;
- public static void main(String[] args) {
- LaptopSaya s1 = new LaptopSaya();
- LaptopSaya s2 = new LaptopSaya();
- s1.merek = "Hp";
- s1.processor = "icore3";
- s2.ram = 8;
- System.out.println(s1.merek + " " + s1.processor);
- System.out.println(s2.ram + " " + "gb");
- s1.main(null);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement