Der Code des Hauptprogramms (der Fehler ist fett geschrieben):
Code (Java):
package collectionsapp;
import java.util.Stack;
public class CollectionsApp
{
public static void main(String[] args)
{
Stack<Payment> s = new Stack<>();
Payment p = new Transfer("AT55 1567 0989 9106 3041", " OBKLAT7K", 1000, "Maestro");
s.push(p);
p = new CreditCard("670 544391 3848",...
import java.util.Stack;
public class CollectionsApp
{
public static void main(String[] args)
{
Stack<Payment> s = new Stack<>();
Payment p = new Transfer("AT55 1567 0989 9106 3041", " OBKLAT7K", 1000, "Maestro");
s.push(p);
p = new CreditCard("670 544391 3848",...
Fehler in der Entwicklungsumgebung NetBeans
0 commentaires:
Enregistrer un commentaire