🚨 𝐉𝐚𝐯𝐚 𝐒𝐜𝐚𝐧𝐧𝐞𝐫 𝐆𝐨𝐭𝐜𝐡𝐚! Ever noticed how nextLine() gets skipped after using nextInt()? Here's why: When you call nextInt(), Java reads the number but leaves the newline (\n) in the ...
“Insanity is doing the same thing over and over again and expecting different results.” -> Albert Einstein I kept running into a strange issue in Java where scanner.nextLine() seemed to be skipped ...
こんにちは。しゅいろうです。Javaの勉強を始めて、大体1週間…魔法の呪文に見えていたものが、なんとなく理解できる言葉になってきた気がします。今回は復習もかねて、情報を受け付けるScannerクラスと、変換について整理します! そもそも、Scanner ...