wood burning stoves 2.0*
The moose likes Java in General and the fly likes Confusing String Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Confusing String Class" Watch "Confusing String Class" New topic
Author

Confusing String Class

Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi all,
Please make my first topic which I am posting to be closed somehow by making me satisfied
It’s not urgent and not important anyways

It happened that I was free and started looking into the most commonly used Classes at work. I started with String class and already have a question after looking the first few lines.
The below code snippet, the inner class, is from String class itself and as I see at line 7 a declaration of String type variable “charset”.

I am confused about using a String type in String class which was not yet defined
Looked into the imports to get something but didn't help me much to understand the same
Any Idea or thoughts about what is happening exactly? Inputs are highly appreciated.
Thanks in advance


Have Fun with Java
little,little.. little by little makes a lot..
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

I am confused about using a String type in String class which was not yet defined

Why do you think that should be a problem? Would this also confuse you?


luck, db
There are no new questions, but there may be new answers.
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

oops thanks mate!
looks like i was just out of my mind... and need some sleep
Thanks again
 
jQuery in Action, 2nd edition
 
subject: Confusing String Class
 
Similar Threads
calling method variable from anotherAction class
How to add another project as dependency?
static block execution
testing a private method with JUnit / Coverlipse
JavaMail set content to utf-8