Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
package sepatu;
import java.util.Scanner;
public class Sepatu{
String Merek;
String Warna;
int Ukuran_Sepatu;
long Harga;
public Sepatu(){}
public Sepatu(String merek, String warna, int ukuran, long harga){
Merek=merek;
Warna=warna;
Ukuran_Sepatu=ukuran;
Harga=harga;}
public void inputDataSepatu(){
Scanner in = new Scanner(System.in);
System.out.println("Masukan Merek : ");
Merek=in.nextLine();
System.out.println("Masukan Warna : ");
Warna=in.nextLine();
System.out.println("Masukan Ukuran Sepatu : ");
Ukuran_Sepatu=in.nextInt();
System.out.println("Masukan Harga : ");
Harga=in.nextLong();}
public void tampilDataSepatu(){
System.out.println("Masukan Merek : "+Merek);
System.out.println("Masukan Warna : "+Warna);
System.out.println("Masukan Ukuran Sepatu : "+Ukuran_Sepatu);
System.out.println("Masukan Harga : "+Harga);}
}
Sneakers
package sepatu;
import java.util.Scanner;
public class Sneakers extends Sepatu implements Tali_Sepatu{
String Jenis;
public Sneakers(){
super();}
public Sneakers(String merek, String warna, int ukuran, long harga, String jenis){
super(merek,warna,ukuran,harga);
Jenis=jenis;}
public void inputDataSneakers(){
Scanner in = new Scanner(System.in);
super.inputDataSepatu;
System.out.println("Masukan Jenis : ");
Jenis=in.nextLine();
public void tampilDataSneakers(){
super.tampilDataSepatu;
System.out.println("Masukan Jenis : "+Jenis);}
@override
public void Tali_Sepatu(){
Scanner in=new Scanner(System.in);
String Ikat;
System.out.println("Masukan Pilihan ( i / l )");
Ikat=in.nextLine();
if(Ikat.equals("i")){
System.out.println("Tali Diikat");}
if else(Ikat.equals("l")){
System.out.println("Tali Dilepas");}
else{
System.out.println("Inputan Salah");}}
}
Tali_Sepatu(interface)
package sepatu;
public interface Tali_Sepatu{
public void ikat();}
Main
package sepatu;
public class Main{public static void main(String[] args){
Sneakers S1 = new Sneaker();
S1.inputDataSneakers();
S1.tampilDataSneakers();
S1.ikat();}
}
![]() |
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team