|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

11-28-2007, 08:01 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
|
|
|
JAVA and J2EE
hi guys,
im always confusing about these term JAVA and J2EE.
what is the difference both of this?
|
|

11-28-2007, 08:15 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,513
|
|
|
JAVA is computer software product developed by Sun Microsystem, which provide a system for developing and deploying cross-platform applications.
J2EE(Enterprise Edition) is a Java platform designed for the mainframe-scale computing typical of large enterprises.
Java is a collection of those, J2ME, J2SE and J2EE.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

11-29-2007, 04:13 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
|
|
|
thenks a lot Eranga...
then what should i learn first as a newbie on this language?
Additional:
if i run this simple code of "if then statement" the name Variable is not returning TRUE if i entered a "RODEL". Is "if then statement" is only for numbers?
Thanks in advance...
This is a code:
import javax.swing.JOptionPane;
class DialogBox {
public static void main(String[] args) {
JFrame frame = new JFrame();
String name = JOptionPane.showInputDialog("What is your name:");
if (name == "Rodel") {
JOptionPane.showMessageDialog(frame,"You are " + name);
}
else {
JOptionPane.showMessageDialog(frame,"I Dont Recognize Your Name");
}
}
}
Last edited by rgbosque : 11-29-2007 at 04:15 AM.
Reason: wrong Jave Code Presentation
|
|

11-29-2007, 05:31 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,513
|
|
Originally Posted by rgbosque
then what should i learn first as a newbie on this language?
You should learn standard Java concepts first, that is J2SE(Standard Edition). Lots of books also available, I'm Sam's publication user. If you can find this book.
Sams Teach Yourself Java in 21 Days
Excellent book for beginners, I told you in my experience.
Originally Posted by rgbosque
Additional:
if i run this simple code of "if then statement" the name Variable is not returning TRUE if i entered a "RODEL". Is "if then statement" is only for numbers?
Thanks in advance...
This is a code:
import javax.swing.JOptionPane;
class DialogBox {
public static void main(String[] args) {
JFrame frame = new JFrame();
String name = JOptionPane.showInputDialog("What is your name:");
if (name == "Rodel") {
JOptionPane.showMessageDialog(frame,"You are " + name);
}
else {
JOptionPane.showMessageDialog(frame,"I Dont Recognize Your Name");
}
}
}
I'll try to explain in simple words as much as possible. Simply for your question, the answer is NO. name is a String type variable. If the variable is Rodel, output is "You are Rodel". It gives on the "if" condition.
If not in "else" condition, your output is "I Dont Recognize Your Name". In this case if-else is not for numbers, for String, that is sequence of characters(letters, numbers, etc..)
JFrame and stuff are focusing on graphical format. You can learn those stuff in J2SE. In the code you have provide some errors. Try to find those later.
Hope it is clear to you.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 07:02 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
|
|
|
tenks a lot Eranga.
hope you well be my mentor, upon my journey in JAVA.
|
|

12-03-2007, 07:07 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,513
|
|
|
Never mind, I like to be that if I get a chance to do it......
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 07:23 AM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
|
|
|
hi,
im downloading right now NETbeans 5 for windows, it is good for the beginners? how about ECLIPSE?
__________________
Its JAVA Time... To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 08:35 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,513
|
|
|
I think netbeans is more better than eclipse. But actually I don't have much experience about those two IDEs. When I'm start work in Java, I used notepad and later move to the IntelliJ IDEA. That is the best IDE I've found on Java.
If you are looking more details about it, post your question on our forum, "Java IDEs"
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-03-2007, 01:58 PM
|
|
Member
|
|
Join Date: Nov 2007
Posts: 16
|
|
|
ok, i will start on notepad, i think it is the best way to become a Pro.
__________________
Its JAVA Time... To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

12-04-2007, 07:28 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,513
|
|
|
What I think is that your decision is ok, but actually it is better if you can move with an IDE. When you use notepad, there is a chance to you, that you are more familiar with keywords, data types and many more. But all of those you should use.
On an IDE it is not, you can see all the related methods and stuff while coding.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|