can anyone tell me , where can I find the logic of java in-built String methods like length()
, tocharArray()
, charAt()
, etc... I have tried decompiler on String.class
but found no logic their.
I want to a code to count the number of characters of a String without using any in-built String class but I am unable to crack the idea of how to break String into set of characters without using String in-built method..
e.g. String str = "hello";
how to convert this String into
'h' , 'e' , 'l' , 'l' , 'o'
and this is not any homework assignment...
please help with regards, himanshu