Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Autor{
- String nome;
- String cidade;
- public Autor(String nome, String cidade){
- this.nome = nome;
- this.cidade = cidade;
- }
- public String getAutor(){
- return "\nNome: "+nome+"\nCidade: "+cidade;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement