daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Scanner keyboard = new Scanner(System.in);
  2. System.out.print("Enter a string of characters: ");
  3.         String characters;
  4.         characters = keyboard.nextLine();
  5.         System.out.println("The length of string " + "\"" + characters + "\" "
  6.                 + "is " + characters.length());
  7.   //Enter a string of characters: The length of string "" is 0 thats what it is saying.
RAW Paste Data
Top