初版:2019-08-30
更新:2019-08-30
文責:@rshindo (twitter:@shindo_ryo)
スタッフをやっているコミュニティで勉強会をライブ配信する機会があり、せっかくなので知見をまとめておく。
import java.math._ | |
def bogosort(list: List[Int]): List[Int] = { | |
val r = new Random() | |
def suffle(xs: List[Int]): List[Int] = { | |
xs.sortWith((i, j) => r.nextInt < 0) | |
} | |
def isSorted(xs: List[Int]): Boolean = { | |
xs == xs.sorted | |
} |
abstract class IntQueue { | |
def get(): Int | |
val buf = new ArrayBuffer[Int] | |
def put(x: Int) = { | |
println("IntQueue.put") | |
println("x=" + x) | |
buf += x | |
} | |
} |
package hello; | |
import org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer; | |
import org.springframework.beans.factory.annotation.Qualifier; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.boot.jdbc.DataSourceBuilder; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Primary; |