File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about charAt() from JQ+

 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is:
Which of these statements concerning the charAt() method of the String class are true?
And one of the answers is:
The charAt() method returns a Character object.
As far as I know, and according to the API, it returns a char, which is way different from a Character object.
Clarification?
Jason
 
Nain Hwu
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jason,
Yes, according to API, charAt() should return a char,
not a Character object.
 
jason adam
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Was wrong, with the helping of Paul, the very responsive and accomodating individual that I've had a small dialogue with from JQ+, the correct answer was that the charAt() method can take a char for an argument. My apologies to JQ+
Goes to show what happens when you spend too much time studying and no breaks in between (going to grad school, too).
Jason
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic