F
fjordschritt
Wurde gelöst!
Zuletzt bearbeitet von einem Moderator:
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
public Book (String name, String autor, int isbn, double preis) {
this.name = name;
this.autor = autor;
this.isbn = isbn;
this.preis = preis;
}
Book b = new Book(a,b,c,d);
public static void main(String[] args) {
String a = JOptionPane.showInputDialog("Bitte geben Sie den Titel des ersten Buches ein");
String b = JOptionPane.showInputDialog("Bitte geben Sie den Autor des ersten Buches ein");
String c = JOptionPane.showInputDialog("Bitte geben Sie die ISBN Nummer des ersten Buches ein");
String d = JOptionPane.showInputDialog("Bitte geben Sie den Preis des ersten Buches ein");
int m = Integer.parseInt(c);
double n = Double.parseDouble(d);
Book book = new Book(a,b,m,n);
public class Book {
private String titel;
private String autor;
private int isbn;
private double preis;
public Book(String titel, String autor, int isbn, double preis) {
this.titel = titel;
this.autor = autor;
this.isbn = isbn;
this.preis = preis;
}
}
Book book =
int i =
Jetzt müsste ich doch mit der Sortierung beginnen oder?
sortByPrice()
sortByTitel()
sortByAuthor()
sortByISBN()