Stats: 3,187,644 members, 7,932,875 topics. Date: Tuesday, 27 August 2024 at 02:12 PM |
Nairaland Forum / Science/Technology / Programming / Java Programmers Come In (694 Views)
How Long Did It Take You Guys To Become Strong Java Programmers / OAU Programmers..: Come In (2) (3) (4)
Java Programmers Come In by chukstem: 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: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: 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... |
(1) (Reply)
A New Set Of Firefox Developer Tools Features / NAIRALAND (26) / #special Offer
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 11 |