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; | |
| public class Practice1 { | |
| static public void main(String[] args) { | |
| List<String> helloWorld = new ArrayList<String>(3); | |
| helloWorld.add("Hello"); | |
| helloWorld.add(" "); | |
| helloWorld.add("World"); | |
| helloWorld.add("!"); |
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.stream.Stream; | |
| public class Practice1ASol { | |
| static public void main(String[] args) { | |
| Stream.of("Hello", " ", "World", "!").forEach(System.out::print); | |
| } | |
| } |
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
| package jp.sample | |
| import io.vertx.scala.core.Vertx | |
| import io.vertx.scala.ext.web._ | |
| object App { | |
| def main(args : Array[String]) { | |
| val vertx = Vertx.vertx() | |
| val router = Router.router(vertx) | |
| router.route().handler(context=>{ |
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
| void main() { | |
| final list1 = [ | |
| const Fruits(id: 1, order: 2, name: '🍌'), | |
| const Fruits(id: 2, order: 1, name: '🍎'), | |
| const Fruits(id: 3, order: 3, name: '🍊'), | |
| ]; | |
| list1..sort(); | |
| print(list1); | |
| } |
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
| void main() { | |
| // 値を直接弄ってはいけない | |
| // const か Map.unmodifiable で保護する | |
| const firstMap = [ | |
| {"id": 333, "name": "山田 太郎", "gender": "F", "birth_date": "19880205"}, | |
| {"id": 111, "name": "山田 次郎", "gender": "F", "birth_date": "19880205"}, | |
| {"id": 121, "name": "山田 花子", "gender": "F", "birth_date": "19880205"} | |
| ]; | |
| const secondMap = [ | |
| { |
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 'package:flutter/material.dart'; | |
| import 'package:go_router/go_router.dart'; | |
| /// Flutter code sample for [NavigationRail]. | |
| void main() => runApp(const NavigationRailExampleApp()); | |
| final GoRouter _router = GoRouter( | |
| routes: <RouteBase>[ | |
| GoRoute( |
OlderNewer