File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to Lower/ upper case....

 
Wolfgang Obi
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if "inputEntry" is a string...
how do i apply the method "toLowerCase" to this string to convert all elements of ths string to lower case letters if any?...

like this?--->
 
Pavel Kubal
Ranch Hand
Posts: 360
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String s = "teST";
String s2 = s.toLowerCase();

Strings are immutable. String's methods return new object. So you have to assign reference returned by toLowerCase() method to some variable even to variable "s".
 
Wolfgang Obi
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank's a bunch!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic