Posts by Texy's Randoms • 13 points
1 post
-
1
votes1
answer52
viewsQ: Is there any way to instantiate an entire class that is within the main class?
public class mainPrime{ public static void main(String[] args) { //----------------------- new mainPrime().instancePrime2(); //------------------------ } public void instancePrime2() { new…
javaasked Texy's Randoms 13