-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yennan.liu
committed
Oct 6, 2021
1 parent
50d1752
commit 16a1782
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package ScalaBasic | ||
|
||
import scala.collection.mutable.ListBuffer | ||
//import org.apache.kafka.clients.consumer.{ConsumerRecord, ConsumerRecords, KafkaConsumer, OffsetAndTimestamp} | ||
|
||
object CaseClass9 extends App { | ||
|
||
// run | ||
// init | ||
val my_data = myClass_9(ListBuffer(1,2,3), "123", new myConsumerRecord("hi!!", 123)) | ||
|
||
println(my_data) | ||
println(my_data.a) | ||
println(my_data.b) | ||
println(my_data.c) | ||
|
||
println(1.toString) | ||
} | ||
|
||
class myConsumerRecord(x:String, y:Int) | ||
|
||
case class myClass_9 ( | ||
a:ListBuffer[Int], | ||
b:String, | ||
c:myConsumerRecord | ||
) |