Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,643 members, 7,809,421 topics. Date: Friday, 26 April 2024 at 09:19 AM

Java Programmers Come In - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Java Programmers Come In (683 Views)

How Long Did It Take You Guys To Become Strong Java Programmers / OAU Programmers..: Come In (2) (3) (4)

(1) (Reply) (Go Down)

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.
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.
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.
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.
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.
As in i want to create a link in a main class.java leading to another class.
How do i?

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"wink;
}
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)

C Programming / Program Marketing / Freelance Graphic Designer Available

(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. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.