This file contains 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.awt.*; | |
import javax.swing.*; | |
/** | |
* | |
* @author Cherubi | |
*/ | |
public class LayoutBlockOut implements Runnable { | |
private JFrame kehys; |
This file contains 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 swing; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.JLabel; | |
/** | |
* | |
* @author Cherubi | |
*/ |
This file contains 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.awt.event.*; | |
public class AjastimenKuuntelija implements ActionListener { | |
private Nopeustesti ohjelma; | |
public AjastimenKuuntelija(Nopeustesti ohjelma) { | |
this.ohjelma = ohjelma; | |
} | |
public void actionPerformed(ActionEvent tapahtuma) { |
This file contains 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 nopeustesti; | |
import java.awt.Graphics; | |
import javax.swing.JButton; | |
public class Nappula extends JButton { | |
public Nappula(String teksti) { | |
super(teksti); | |
} | |
This file contains 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.util.*; | |
public class Main { | |
public static Scanner input = new Scanner(System.in); | |
public static void opettaminen(OppivaTekoaly a, OppivaTekoaly b) { | |
// BEGIN SOLUTION | |
for (int i = 0; i < 100000; i++) { | |
int tikut = 99; | |
int valinta; |
This file contains 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
import fi.helsinki.cs.tmc.edutestutils.Points; | |
import fi.helsinki.cs.tmc.edutestutils.Reflex; | |
import fi.helsinki.cs.tmc.edutestutils.Reflex.ClassRef; | |
import fi.helsinki.cs.tmc.edutestutils.Reflex.MethodRef1; | |
import org.junit.AfterClass; |
This file contains 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
import fi.helsinki.cs.tmc.edutestutils.Points; | |
import fi.helsinki.cs.tmc.edutestutils.ReflectionUtils; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.Method; | |
import org.junit.AfterClass; |
This file contains 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 org.junit.Test; | |
import org.junit.Rule; | |
import static org.junit.Assert.*; | |
import fi.helsinki.cs.tmc.edutestutils.Points; | |
import fi.helsinki.cs.tmc.edutestutils.MockStdio; | |
@Points("1.5") | |
public class NimenToistaminenTest { | |
@Rule |
This file contains 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 org.junit.Test; | |
import org.junit.Rule; | |
import static org.junit.Assert.*; | |
import fi.helsinki.cs.tmc.edutestutils.Points; | |
import fi.helsinki.cs.tmc.edutestutils.MockStdio; | |
@Points("1") | |
public class LukujenSummaTest { | |
@Rule |
This file contains 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 org.junit.Test; | |
import org.junit.Rule; | |
import static org.junit.Assert.*; | |
import fi.helsinki.cs.tmc.edutestutils.Points; | |
import fi.helsinki.cs.tmc.edutestutils.MockStdio; | |
@Points("1") | |
public class TervehtijaTest { | |
@Rule |
NewerOlder