Java Programmers Come In - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Java Programmers Come In (758 Views)
| Java Programmers Come In by chukstem(op): 3:45am On Jul 09, 2014 |
Gud day all. Want to write a 2 class java program, but dont know hw to connect the classes. E.g lets say u have 2 forms like in vb and u want to connect them. U use form1.hide form2.show. Also in php echo" <a href='url-page'>Click here</a>"; plz hope u got my question. |
| Re: Java Programmers Come In by Drniyi4u(m): 4:20am On Jul 09, 2014 |
chukstem: Gud day all.av u asked any question? |
| Re: Java Programmers Come In by dejt4u(m): 5:19am On Jul 09, 2014 |
Drniyi4u: av u asked any question?i wonder oo |
| Re: Java Programmers Come In by Vstuffs(m): 7:49am On Jul 09, 2014 |
chukstem: Gud day all.I guess that is your question. Sorry I do not have any answer still a learner |
| Re: Java Programmers Come In by chukstem(op): 8:35am On Jul 09, 2014 |
Ophk sory. As in i want to create a link in a main class.java leading to another class. How do i? |
| Re: Java Programmers Come In by Urine: 9:41am On Jul 09, 2014 |
chukstem: Ophk sory.Call the object of the "2nd class" from the main class. |
| Re: Java Programmers Come In by Donkunxex(m): 1:37pm On Jul 09, 2014 |
you will first create an object of that class in the main class then you use the object ...... e.g in your main class second firstObject = newSecond(); firstObject.message(); in the other class you will create a method.e.g public void main message(){ system.out.println("this is another class" ;} note:its beta to create d class before importing d details to d mainclass ...... hope u undastand sha cos I suck in explaininq to pple second is d name ofd class... |
How Long Did It Take You Guys To Become Strong Java Programmers • OAU Programmers..: Come In • 2 • 3 • 4
Here Are Some Awesome Java Programming Tutorials • NEWBIE Into Programming; Need Help • I Want To Learn Format And How To Use Ms Dos Internal And External Command

;