0 votes
asked by
I'm having trouble inserting a new object in Java coding. I'm not sure where to start or what to do. If someone who knows Java could help, that would be appreciated.

1 Answer

0 votes
answered by Legendary Member (13.4k points)
 
Best answer
You can create an object by doing ClassName varName = new ClassName(); where ClassName is the name of the class that you want to instantiate into an object.
Welcome to AskUT, where you can ask questions and receive answers about UT Austin from fellow Longhorns.

AskUT is independently owned and operated. AskUT is not affiliated with, nor sponsored by, the University of Texas at Austin.
...