Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Hi friends , I have a problem in my code(java code)but I can't find what's wrong with it! can any of u help me to find out?(I have shortage of time so I need your help!) thanks :)

OpenStudy (anonymous):

I cannot invoke the methods on a object :( i really don't know what to do :(!i have class right now as soon as I can I will give more explanation ;(

OpenStudy (anonymous):

thanks ... thanks ... thanks ...

OpenStudy (rsmith6559):

Any chance that that "package eleventhsession1;" is biting you?

OpenStudy (anonymous):

hey i've noticed a couple things. your typeMap isn't actually storing the types in the function handleSign what happens if it's given a line like b = new Boolean(true); the first if statement assumes the type is there if (leftTemp.contains(" ")) { tempArray = leftTemp.split(" "); objectType = tempArray[0]; // here objectName = tempArray[1]; // << here //... } check if (rightTemp.contains("new")) for a similar error also around line 199 if (constructorValue.contains("\"")) { Constructor constructor = c.getConstructor(String.class); here goes wrong when given Boolean b = Boolean.valueOf("true"); it's not actually a constructor but it tries to do so Oh and i had to change the text file encoding to UTF-8 i'm not sure what it was before that could also be giving you some dramas

OpenStudy (anonymous):

thanks rsmith6559 for your attention:) but I think there's no problem with the part you mentioned.

OpenStudy (anonymous):

Yes you're completely right I changed the lines you said and I think now there's no problem regarding them.but I still don't know what should I do for this line: Boolean b = Boolean.valueOf("true"); thanks ;) :)

OpenStudy (nethwa):

Erm, why do you create an boolean object instead of a boolean variable? That is kinda useless and only stresses the ram (bad code).

OpenStudy (anonymous):

I do need you're help ... :(

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!