This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Add implements Comparable<Add>{ | |
private String name; | |
private String lastName; | |
private int number; | |
public Add(String name, String lastName, int number) { | |
this.name = name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Add implements Comparable<Add>{ | |
private String name; | |
private String lastName; | |
private int number; | |
public Add(String name, String lastName, int number) { | |
this.name = name; |