package com.example; import akka.actor.typed.ActorSystem; import java.io.IOException; public class AkkaQuickstart { public static void main(String[] args) { //#actor-system final ActorSystem greeterMain = ActorSystem.create(GreeterMain.create(), "helloakka"); //#actor-system //#main-send-messages greeterMain.tell(new GreeterMain.SayHello("Charles")); greeterMain.tell(new GreeterMain.SayHello("Alice")); //#main-send-messages try { System.out.println(">>> Press ENTER to exit <<<"); System.in.read(); } catch (IOException ignored) { } finally { greeterMain.terminate(); } } }