Strings have a length() method you can use. Example/ String input = scannerName.nextLine(); input.length(); // this is the length of the String.
確定! 回上一頁