This file contains hidden or 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
package temposulgiro; | |
public class Intervallo { | |
private Istante start; | |
private Istante end; | |
public Intervallo(){ | |
start = new Istante(); | |
} | |
public Intervallo(Istante start) { |
This file contains hidden or 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
package prenotazioni; | |
import java.util.Vector; | |
public class Ristorante { | |
private final String nome; | |
private Vector<Tavolo> tavoli; | |
public Ristorante(String nome, int nTavoli) { |
This file contains hidden or 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
package org.ap.jpr; | |
import processing.core.PGraphics; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Game { | |
private final List<GameObject> gameObjects; | |
private final Renderer renderer; |
This file contains hidden or 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
package org.example; | |
import java.math.BigDecimal; | |
import java.util.Date; | |
public class Earthquake { | |
private final String place; | |
private final Date date; | |
private final Double magnitude; |
This file contains hidden or 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
package angoliradianti; | |
public class Angolo { | |
private float gradi; | |
public Angolo(float gradi) { | |
this.gradi = gradi; | |
} | |
public float getGradi() { |
This file contains hidden or 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
package dateformatter; | |
public class Application { | |
public static void main(String[] args) { | |
Data d = new Data(26,9,2022); | |
var f1 = new FormatterEUData("/"); | |
var f2 = new FormatterMeseInLettereData(); | |
System.out.println(f1.format(d)); | |
System.out.println(f2.format(d)); | |
} |
This file contains hidden or 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
package csvformatter; | |
public class Application { | |
public static void main(String[] args) { | |
var persona = new Persona("Mario Maria", "Rossi"); | |
var studente1 = new Studente("Pinco","Pallo", "4AI"); | |
var formatter = new CSVFormatter(":"); | |
System.out.println(formatter.format(persona)); | |
System.out.println(formatter.format(studente1)); | |
This file contains hidden or 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
package veicoli; | |
public class Automobile { | |
private final Motore motore; | |
private final Fanale fanalePosteriore; | |
private final Fanale fanaleAnteriore; | |
private final Fanale frecciaSx; | |
private final Fanale frecciaDx; | |
private boolean quadroAcceso; |
This file contains hidden or 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
package veicoli; | |
/** | |
* | |
* @author 15367519 | |
*/ | |
public class Auto extends Veicolo { | |
private final int nPorte; | |
private final String trazione; // ANT - POS - 4x4 |
This file contains hidden or 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
/* | |
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license | |
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template | |
*/ | |
package frazioni; | |
/** | |
* | |
* @author 15367519 | |
*/ |