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 pong; | |
import processing.core.PGraphics; | |
import processing.core.PVector; | |
public class Ball { | |
private PVector pos; | |
private PVector vel; | |
private int mag; |
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
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.ProxySelector; | |
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
public class App { | |
public static void main(String[] args) { |
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 pianocartesiano; | |
public class App { | |
public static void main(String[] args) { | |
var piano = new PianoCartesiano(); | |
piano.add(new Punto()); | |
piano.add(new Triangolo()); | |
piano.add(new Cerchio()); | |
piano.add(new Vettore2D(new Punto(),new Punto())); | |
piano.draw(); |
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 fileio; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
public class FileTest { | |
public static final String FILENAME = "pippo.txt"; |
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 com.ap.pizzeria; | |
import java.util.Scanner; | |
import java.util.StringJoiner; | |
public class GestionalePizzeria { | |
private final InformazioniAttivita informazioni; | |
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
JMP start | |
R0: DB 140 | |
R1: DB 255 | |
start: | |
CALL sign | |
HLT |
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 libreria; | |
import java.util.Vector; | |
public class AppLibreria { | |
public static void main(String[] args) { | |
// long i=0; | |
// Vector<Long> vals = new Vector<>(); | |
// while (true) { | |
// vals.add(1L); |
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(); | |
} |
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 estrazioni; | |
import java.util.Vector; | |
import java.util.concurrent.ThreadLocalRandom; | |
public abstract class Estrattore { | |
protected Vector<Studente> studenti; | |
protected Estrattore() { | |
studenti = new Vector<>(); |