Skip to content
Snippets Groups Projects
Commit f03b4041 authored by Jesse Laine's avatar Jesse Laine
Browse files

Vaihe 5; eka versio tulostamisesta.

parent 57c66949
No related branches found
No related tags found
No related merge requests found
Manifest-Version: 1.0
Main-Class: fxtaidegalleria.TaidegalleriaMain
Class-Path: Ali.jar fxgui.jar Graphics.jar Music.jar
package taidegalleria;
import java.io.PrintStream;
/**
* @author lainejee
* @version 1.0 24.2.2025
* |------------------------------------------------------------------------|
* | Luokan nimi: Taiteilija | Avustajat: |
* |-------------------------------------------------------------------------
* | Vastuualueet: | |
* | | |
* | (- Ei tiedä tietokannasta eikä käyttöliittymästä.) | |
* | - Tietää taiteilijan kentät (nimi, ikä, jne.) | |
* | - Osaa tarkistaa tietyn kentän oikeellisuuden. | |
* | - Osaa muuttaa 1|Edward Hopper|..|-merkkijonon | |
* | jäsenen tiedoiksi. | |
* | - Osaa antaa merkkijonona indeksin kentän tieodt. | |
* | - Osaa laittaa merkkijonon indeksin kentäksi. | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* |-------------------------------------------------------------------------
*/
public class Taiteilija {
/**
* Tulostetaan taiteilijan tiedot.
* @param out tietovirta johon tulostetaan
*/
public void tulosta(PrintStream out) {
out.println("Hiroshige");
}
public static void main(String[] args) {
Taiteilija hiroshige = new Taiteilija();
Taiteilija edward = new Taiteilija();
// hiroshige.rekisteroi();
// edward.rekisteroi();
hiroshige.tulosta(System.out);
edward.tulosta(System.out);
// hiroshige.tayta();
// edward.tayta();
hiroshige.tulosta(System.out);
edward.tulosta(System.out);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment