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 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 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 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 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 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 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 estrazioni; | |
import java.util.Vector; | |
import java.util.concurrent.ThreadLocalRandom; | |
public abstract class Estrattore { | |
protected Vector<Studente> studenti; | |
protected Estrattore() { | |
studenti = new Vector<>(); |
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 processingtest; | |
public class Punto { | |
private final float x; | |
private final float y; | |
public Punto(float x, float y) { | |
this.x = x; | |
this.y = y; | |
} |
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.todolist; | |
import java.util.Scanner; | |
public class Application { | |
private final TodoList todoList; | |
public Application() { | |
todoList = new TodoList(); | |
} |