sraveend
asked on
java programming
prompt the user to enter a fully qualified class name
If the class name they entered ends in ".class" strip that part off
I've tried my self to write code for the above requirement,am getting errors,could u pls help me?
If the class name they entered ends in ".class" strip that part off
I've tried my self to write code for the above requirement,am getting errors,could u pls help me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here at EE we're not allowed to write (homework?) code for you.
Only to help you with problems that occur in your own code.
So...
Only to help you with problems that occur in your own code.
So...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oooops. Didn't think about the homework thing. If this is homework, shame on both of us.
My appologies.
Geoff
My appologies.
Geoff
>> If this is homework, shame on both of us.
*Both* of us? You mean yourself and the author, I hope.
btw. even shorter:
String fqcName = // user entered class name
String fqcWithoutClass = fqcName.replaceAll(".class ", "");
;°)
*Both* of us? You mean yourself and the author, I hope.
btw. even shorter:
String fqcName = // user entered class name
String fqcWithoutClass = fqcName.replaceAll(".class
;°)
Quite.
;)
;)
>> Oooops. Didn't think about the homework thing. If this is homework, shame on both of us.
YOU DID THE RIGHT THING. YOU ARE NOT GIVING THE ENTIRE CODE.
YOU DID THE RIGHT THING. YOU ARE NOT GIVING THE ENTIRE CODE.
strange, zzynx have already given the idea to you.
you could have split the points to both guys
Regards
Sudhakar
Regards
Sudhakar
and also you have accepted wrong comment .
ASKER
Iam extremely sorry for using homework question!
ASKER
Hereafter i'll ask quetions with codings,Thanks a lot!
Thanks for ignoring me once again!
Hey zzynx,
Did I get all these points in error. I wouldn't want to alienate. Is there any way to share?
Geoff
Did I get all these points in error. I wouldn't want to alienate. Is there any way to share?
Geoff
Hi Geoff,
thanks for your honesty.
I already asked Venabilli to reopen it *once again*.
thanks for your honesty.
I already asked Venabilli to reopen it *once again*.
Not being obtuse here but I don;t see a split points link.
Geoff
Geoff
Geoff, Venabilli's comment is meant for sraveend (made a name mistake)
Yes. Sorry Geoff :(((
sraveend,
Any troubles?
Venabili
sraveend,
Any troubles?
Venabili
:)
Yes, we could. If you show us what code you have and what errors.