Link to home
Start Free TrialLog in
Avatar of sraveend
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?
Avatar of zzynx
zzynx
Flag of Belgium image

>> I've tried my self to write code for the above requirement,am getting errors,could u pls help me?
Yes, we could. If you show us what code you have and what errors.
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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...
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oooops. Didn't think about the homework thing. If this is homework, shame on both of us.

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", "");

;°)
Quite.

;)
Avatar of sudhakar_koundinya
sudhakar_koundinya

>>  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.
strange, zzynx have already given the idea to you.
you could have split the points to both guys

Regards
Sudhakar
and also you have accepted wrong comment .
Avatar of sraveend

ASKER

Iam extremely sorry for using homework question!

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
Hi Geoff,
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, Venabilli's comment is meant for sraveend  (made a name mistake)
Yes. Sorry Geoff :(((

sraveend,

Any troubles?

Venabili
:)