public class HelloWorld{ public static void main(String []args){ System.out.println("Hello World"); Newthing topo = new Newthing(); System.out.println(topo.name); } public class Newthing { String name; String talk; public Newthing(String name, String talk) { this.name = name; this.talk = talk; } } }
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more