0
What if argument and initilisation are same in java?
what happen if i declare a string str with "hello" in java and then in main function make class obj and pass "hii" through the constructor to the same string what will be the result are they same or not.
6 Respuestas
+ 1
can you give a pseudo example?
+ 1
or maybe the code itself
0
I understand what you're trying to do, but it's just not possible. You'll need to start the program with command prompt then, and add an argument to it.
0
But this might interest you
https://code.sololearn.com/c11Nsbli1wnD/?ref=app
0
If you look at the class "myNumber" I returned a myNumber class within the class.
If you create an instance of your main program, it is good practice not to make another instance of your main program inside your program.