Avatar of Sumitartmagic
Sumitartmagic

asked on 

"Change the class name"

Hi expert,
Suppose I have created two programs One class name is Rohit and another class name is shivam.
And I want to change the name of first program class name "Rohit"  by using second program name "Shivam" when user input the name. How to solve it.
Java

Avatar of undefined
Last Comment
mccarl
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of mccarl
mccarl
Flag of Australia image

Um, basically you can't change the name of classes once the program is running.

I think if you could describe more what your goal that you are trying to achieve is (rather than specifically how you are thinking to solve it) then we could help further.
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo