Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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 atividade;
- /**
- *
- * @author Thiago Filipe
- */
- public class Atividade {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Data dataTest = new Data();
- dataTest.setDiaCarai(2);
- dataTest.setMesCarai(12);
- dataTest.setAnoCarai(2016);
- System.out.println(dataTest.toStringFormated());
- if (dataTest.isValid()){
- System.out.println("A data é válida");
- }
- else{
- System.out.println("A data é inválida");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement