This file contains hidden or 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.List; | |
| import java.util.ArrayList; | |
| import java.util.stream.Stream; | |
| public class StreamTest { | |
| public static void main(String[] args) { | |
| List<Integer> list = new ArrayList<Integer>(); | |
| list.add(1); | |
| list.add(2); | |
| list.add(3); |
This file contains hidden or 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 akka.actor.ActorSystem | |
| import akka.actor.Props | |
| import akka.actor.Actor | |
| import akka.actor.ActorRef | |
| import akka.pattern.ask | |
| import scala.concurrent.Future | |
| import scala.concurrent.ExecutionContext.Implicits.global | |
| import scala.concurrent.duration._ | |
| import akka.util.Timeout |
This file contains hidden or 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
| class A { | |
| def f(x: Int, y: Int) = ((x, y)) | |
| def name = "A" | |
| } | |
| class B extends A { | |
| override def f(y: Int, x: Int) = ((y, x)) | |
| override def name="B" | |
| } |
This file contains hidden or 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
| Verifying that +bhudgeons is my openname (Bitcoin username). https://onename.io/bhudgeons |
OlderNewer