Skip to content

Instantly share code, notes, and snippets.

@MarcusDunn
MarcusDunn / listMap.java
Last active November 3, 2022 22:50
A java file containing two comparable programs using a list and a map.
import java.util.*;
record Data(String type, float amount, int quantity) {
}
record Datav2(float amount, int quantity) {
}
class ListyMain {
Computer Information:
Manufacturer: ASUSTeK COMPUTER INC.
Model: TUF GAMING X570-PLUS (WI-FI)
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 9 3900X 12-Core Processor
CPU Family: 0x17
import org.koin.dsl.bind
import org.koin.dsl.koinApplication
import org.koin.dsl.module
import kotlin.test.Test
import kotlin.test.fail
private fun module(useB: Boolean) = module {
single { AImpl() }
single { BAndAImpl() }