This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Strings" Watch "Strings" New topic
Author

Strings

Karu Raj
Ranch Hand

Joined: Aug 31, 2005
Posts: 479
It prints True

what is the line at /////////////ABC does ???

if( "String".endsWith(""))///////////////ABC
System.out.println("True");
else
System.out.println("False");
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

The empty String ("") can be found anywhere within a String...

(Consider that in mathematics, for any set S, the empty set is a subset of S.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strings