Skip to content
Snippets Groups Projects
Commit 3db6bb78 authored by JotaJota96's avatar JotaJota96
Browse files

DataType de Comentario hecho

parent 2a1b2006
Branches
Tags
No related merge requests found
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Logica.DataType;
/**
*
* @author pc01
*/
import java.util.Date;
public class DtComentario {
private int id;
private String nickname;
private Date fecha;
private String texto;
private int nivelSubComentario;
public DtComentario(int id, String nickname, Date fecha, String texto, int nivelSubComentario) {
this.id = id;
this.nickname = nickname;
this.fecha = fecha;
this.texto = texto;
this.nivelSubComentario = nivelSubComentario;
}
public int getId() {
return id;
}
public String getNickname() {
return nickname;
}
public Date getFecha() {
return fecha;
}
public String getTexto() {
return texto;
}
public int getNivelSubComentario() {
return nivelSubComentario;
}
}
package Logica;
import java.util.Date;
public class main {
public static void main(String[] args) {
System.out.println("Hola mundo");
Date d = new Date(2019-1900, 8 -1, 20);
System.out.println(d);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment