エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
null java list to scala Buffer
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
null java list to scala Buffer
Imagine I have a java list val javaList: java.util.List[String] = null If I wanted to use it as s... Imagine I have a java list val javaList: java.util.List[String] = null If I wanted to use it as scala collection, let's say Buffer, I would simply add the following import (as described many times before) import scala.collection.JavaConversions._ The problem is that I have to check if the list is different from null. This will not work: javaList foreach println //throws java.lang.NullPointerExcept

