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
internal class Converter<T : Any>(private val type:Class<T>) : AttributeConverter<List<T>, String> { | |
private val objectMapper = ObjectMapper() | |
override fun convertToDatabaseColumn(attribute: List<T>?): String { | |
TODO("Not yet implemented") | |
} | |
override fun convertToEntityAttribute(dbData: String?): List<T> { | |
return objectMapper.readValue(dbData, |
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 de.klg71.calculator; | |
import javax.swing.*; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
public class GrafikMainStart { | |
public static void main(String... args) { | |
final GrafikMainStart main = new GrafikMainStart(); | |
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 de.klg71; | |
import java.awt.*; | |
public class Zeichnung extends Canvas { | |
@Override | |
public void paint(final Graphics g) { | |
g.fillOval(10, 10, 30, 30); | |
} |
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 de.klg71; | |
import javax.swing.*; | |
import java.awt.*; | |
public class GrafikMain { | |
public static void main(String... args) { | |
JFrame frame = new JFrame("My Drawing"); | |
Canvas canvas = new Zeichnung(); | |
canvas.setSize(400, 400); |
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.ArrayList; | |
import java.util.List; | |
import java.util.Objects; | |
import static java.util.stream.Collectors.toList; | |
public class WordFunnel { | |
public static void main(final String... args) { | |
if (funnel("leave", "eave")) { | |
System.out.println("funnel"); |
NewerOlder