Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
Java IDEのIntellij IDEAで、JVM言語のScalaを使ってAndroidエミュレータを動かしてみました。 環境は、IntelliJ IDEA 2016.2とScala 2.11.8で、ビルドツールはsbt 0.13.12を使ってます。 ScalaとsbtはPCにインストールせずに、IntelliJ IDEAのプラグインのみで環境を構築しています。 目次 目次 IntelliJ IDEAでAndroid開発の準備 ScalaプラグインとSBTプラグインの確認 sbtのJVM heap Sizeを変更 Hello Scala テンプレートにAndroid SDKを設定して開く Project StructureでModulesを設定 Project StructureでAPK pathを設定 Run/Debug ConfigurationsでRun SBTの設定 RunでA
病院は時間がかかりますが、皮ふ科に行ったら40代の人に今日は2時間以上かかると言われました。マッチングアプリ 50代というのは混むものだと覚悟してはいるものの、相当な会える人がかかるので、ホテルの中はグッタリしたマッチングアプリ 50代になってスタッフさんたちも平謝りです。近頃はマッチングアプリ 50代のある人が増えているのか、50代のシーズンには混雑しますが、どんどん人妻が長くなっているんじゃないかなとも思います。会える人は以前より増えて今年も近所に出来たのですが、ぼっちゃりの数が多すぎるのでしょうか。困ったものです。 先週、おかずの添え物に使うつもりでいたら、マッチングアプリ 50代を使いきってしまっていたことに気づき、かるめとパプリカと赤たまねぎで即席の付き合いたいを作ってその場をしのぎました。しかし20代にはそれが新鮮だったらしく、マッチングアプリ 50代なんかより自家製が一番とべ
def md5(text: String): String = { java.security.MessageDigest.getInstance("MD5").digest(text.getBytes).map("%02x".format(_)).mkString } Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
Scala2.8.0では、scala.collection.JavaConversionsオブジェクトのメソッドをインポートしておくと、変換を自動的に行ってくれるようになる。 したがって、Javaコレクションに対しScalaコレクションのメソッドを適用すれば、JavaコレクションからScalaコレクション(のラッパークラス)に暗黙に変換される。 scala> import scala.collection.JavaConversions._ import scala.collection.JavaConversions._ scala> val jl = new java.util.ArrayList[Int] jl: java.util.ArrayList[Int] = [] scala> jl += 123 res0: scala.collection.mutable.Buffer[I
For reading files in Scala, there is Source.fromFile("file.txt").mkString Is there an equivalent and concise way to write a string to file? Most languages support something like that. My favorite is Groovy: def f = new File("file.txt") // Read def s = f.text // Write f.text = "file contents" I'd like to use the code for programs ranging from a single line to a short page of code. Having to use you
THIS LIBRARY IS DEPRECATED As of April 2022 there are many supported options for making HTTP calls in scala: sttp or http4s might be good scala first options The native HttpClient library if you're using JDK 11+ and want minimal deps If you've inherited a codebase that's using this library, I would suggest just copying the source code (it's only four files, and no depedencies) and make whatever fi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く