Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
String s=""; while ((strLine = br.readLine()) != null) { s=s.concat(strLine);
このコードを使用すると、ファイルから期待する文字列を取得できます..しかし、使用した場合
String s = null;
私が得るのはnull、文字列 s の結果です。誰かが私にこの理由を説明できますか?
null