We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ System.out.print("> "); Scanner newScanner = new Scanner(System.in); String s = newScanner.nextLine(); System.out.print(s).print(", s.length()=").println(s.length()) }
Three tabs between 123 and 456 results in this:
___________________________________________________________ > 123 456 123 456, s.length()=18
The text was updated successfully, but these errors were encountered:
What is the Java behavior on the same system?
Sorry, something went wrong.
I'm using Java 1.8 on Win 7, and the following program returns string length 9.
import java.util.*; class HelloWorld { public static void main (String[] args) throws java.lang.Exception { System.out.print("> "); Scanner newScanner = new Scanner(System.in); String s = newScanner.nextLine(); System.out.print(s); System.out.print(", s.length()="); System.out.println(s.length()); } }
> 123 456 123 456, s.length()=9
No branches or pull requests
Three tabs between 123 and 456 results in this:
The text was updated successfully, but these errors were encountered: