Learning Java - Where do I start

I would like to learn Java programming. I have solid background in OOP. Please let me know where I can start and how I can get hands-on experience
Thank you

You need both good programming tools and books:
1. download JDK131 from sun and install it;
2. download Forte for Java 3.0 from sun and install it;
3. download Java tutorial and other documents from sun
and read it.
then you can start.

Similar Messages

  • New to Java, where do I start??!?!

    Hello everyone, let me just introduce myself. My name is Jeff and I am from PA, I am a recent graduate of Penn State university with a bachelors of science in information science and technology, application/integration. My major dealt with alot of analysis/requirements/testing/planning/documentation, with a little bit of programming in such interfaces as HTML, CSS, ASP.Net, and I had one Java course which I could have done better in.
    I started my career for a very large well known company in an entry level position. I went in with very little development skills, in the languages that we use here. Mostly everything is Java/Javascript, both of which I am pretty clueless about. They also do alot of web 2.0 stuff using ajax/xml/dojo. I just want to have some suggestions on how I could maybe learn this language a little better, I am not getting anything really so far, because ive just been doing e-learnings and such. I want to start shadowing the developers, but I dont want to go in seeming stupid! Who has some suggestions?

    Hi and welcome.
    This is the beginner's set:
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance]
    James Gosling's [The Java Programming Language|http://www.amazon.com/Java-TM-Programming-Language-4th/dp/0321349806/ref=sr_1_1?ie=UTF8&s=books&qid=1247059012&sr=1-1]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • I need an opinion guys - Oracle guy learning Java Here.......

    Hi all,
    I was laid off about 6 weeks ago from the consulting firm I worked for for 7 years ....... I did Oracle
    Custom Development using PL/SQL and Oracle Forms/Reports on a Web Apps Server.... this I did for about 2 years. Prior to that I was a COBOL guy with about 20 years experience. I've heard
    that the way of the future in Oracle DB programming will be a transition from PL/SQL to JAVA so
    that's why I'm learning JAVA .
    I have started to teach myself JAVA during my un-employment and am having a great time (although trying to remember the nomenclature is "kindOfHard" ;-) )...
    Once I finish this self-study course (Deitel and Deitel JAVA 2 - How to Program... very good btw)
    I plan on taking the JCP test... I'm about 1/4 thru the book and have been writing 5 of the hardest programs that the book has as exercises at the end of each chapter.
    Has anyone out there ever experienced a transition such as this and is getting the JCP going
    to help me get a JAVA job with little-to-none JAVA programmin Business experience ?????
    I guess I'm a tad down today as I've never been unemployed and getting some opinions from
    the great folks out there sure makes the day go wonderfully.....
    Thanks for letting me ramble on,
    Mike
    Cleveland Ohio

    Hi Mike,
    have a look at :
    http://forum.java.sun.com/thread.jsp?forum=361&thread=234679
    that might give you some hints. I am not certified, did Oracle PL/SQL as well but also C++ so the transition to Java was (fairly) easy. Anyhow best of luck and keep going.
    Phil

  • Need advice/suggestions on HOW and WHERE to START learning JAVA Prog.

    Hello
    MY educational background is Bachleor in Computer Science and Engg. (BE). I just landed in US and need to learn Basic JAVA programming , fundamentals, concepts of swing, JSP, JDBC connectivity............it might sound wierd seeing the above list but all i need to do at my work in future is all about DOCUMENTUM and i have very little time say 40 days to learn core java and its concepts coz that wuld come to play when i work on documentum.......even if come across something which i havent learnt in java, i guess i culd manage looking up some reference books, learn and do the job.....so can someone guide me thru the learning process of core java........i have been using " JAVA 2 Fundamentals Cay S Horstmann and Gary Cornell" and the basic tutorials which is available at sun.com but i am finding difficulty in remembering the concepts although i have understood it earlier. Is there a comprehensive online tutorial which can guide me through the learning process of core java?
    The resources available :
    P4 HP laptop
    24/7 High speed LAN
    the book i have mentioned earlier.
    just cant wait to start learning java
    Thanks

    Hello
    MY educational background is Bachleor in Computer
    Science and Engg. (BE). I just landed in US and need
    to learn Basic JAVA programming , fundamentals,
    concepts of swing, JSP, JDBC
    connectivity............it might sound wierd seeing
    the above list but all i need to do at my work in
    future is all about DOCUMENTUM and i have very
    little time say 40 days to learn core java and its
    concepts coz that wuld come to play when i work on
    documentum.......even if come across something which
    i havent learnt in java, i guess i culd manage
    looking up some reference books, learn and do the
    job.....so can someone guide me thru the learning
    process of core java........i have been using " JAVA
    2 Fundamentals Cay S Horstmann and Gary Cornell" and
    the basic tutorials which is available at sun.com but
    i am finding difficulty in remembering the concepts
    although i have understood it earlier. Is there a
    comprehensive online tutorial which can guide me
    through the learning process of core java?
    The resources available :
    P4 HP laptop
    24/7 High speed LAN
    the book i have mentioned earlier.
    just cant wait to start learning java
    ThanksOk, I haven't been much help here lately, but I'd like to help here if I can. In my opinion, you're talking about Advanced Java topics here. You are basically asking to run before you walk.
    Can you compile and run a simple 'Hello World' program in Java?
    I've always found that a positive way to start.

  • Is it worth to start learning Java

    Today I saw a post in JavaRanch (http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=017317). A guy asked a question for his friend about STARTING to learn Java NOW. Actually, I heard quite same question from people around myself.
    For myself, I've been working on Java more than 7 years(already SCEA, hehe). However, the Java passion is getting away ;-((, I am looking around for other stuff like Ruby.
    I have same confusion as that guy, and I'd like to learn from you guys for same question - for the current market situation, it is late/okay to touch Java?

    thank for all the input.
    my concerns are, particularly for newcomer, the
    learning curve and the market trend.
    my understanding is Java is losing its powder in web
    application development comparing with other emerging
    language like Ruby/Python, conversely, Java's powser
    is going to server side(business/integration layer).Don't be so sure about that.
    Java's not losing powder [sic] in web app development. It's mature and considered a standard for enterprise scale problems. Ruby and Python are gaining traction for smaller CRUD-like Web apps, but neither is up to snuff in the areas of security and transactions. Ruby is gaining popularity because of Rails, which makes creating simpler web apps easy.
    Criticism of Java for complexity and a dearth of tools is fair. But are Trails, Grail, and AppFuse strong enough answers to Rails such that Java EE can be more agile for smaller apps? Time will tell. I think Spring and Hibernate are helping a great deal, more than EJB 3.0 will.
    everybody knows it is hard thing to learn java,It's hard to learn anything, period. Programming in any language is a long learning curve, because it's so much more than just language syntax. You don't do enterprise apps just by learning Java, even if you stick to the EE platform. You have to know SQL and relational databases, messaging, XML, HTML, JavaScript, HTTP...the list is pretty long. All those technologies carry over to .NET and Ruby and anything else, so it's not just Java that's complex. Enterprise problems are complex.
    And once you know all that, there's the problem of designing elegantly. It's a long climb no matter which language is on top.
    regarding to server side programming for a java
    newbie, it would be much harder to learn, further, it
    will take you long long time to learn server side
    java programming.
    however, the job market (java) is still hot, and
    seems to keep hot. and people still wanna jump in.It's still good, just not crazy like it was at the end of the 90's. There is the problem of competition from China, India, Vietnam, etc. that won't go away. But what field hasn't been affected by global competition? Only those areas where you have to touch the client, like auto mechanics. Even medicine has been affected - x-rays can be read anywhere in the world.
    So, still confused to tell people whether or not to START java...;-((If you like programming, jump in. Learn Java, but it's more important to learn those bedrock technologies (e.g., data structures, compilers, parsers, finite automata, decomposition, relational databases, etc.) and learn how to learn. Languages will come and go. When I jumped into this field ten years ago C++ and Corba were the rage and Java didn't exist. Now I make a living writing Java. I'm reading about Ruby and Rails now, just dipping my toes into the water.
    None of us are any better prophets than you are. I don't know what will happen or if Java will still be here ten years from now. COBOL and FORTRAN were born in the 50s, and both are very much with us today.
    Just stop whining about it. Do what makes you happy, and stop worrying about what other people think.
    %

  • I want to learn editing in photoshop, from where should I start?

    I want to learn editing in photoshop, from where should I start?

    Jon has sent you to the right place, but I prefer a slight change to the location
    http://tv.adobe.com/show/learn-photoshop-cc/
    Perhaps start with Jon's page because it focuses on novice users, but the list in my link will let you chose things specific to your requirements.  I always think it is good to learn the things you will use over and over, because Photoshop is definitely a Use it or Lose it kind of application.
    Good luck and have fun. 

  • Hi, where are some good places to learn Java?

    Hi all,
    I'm beginning to learn Java, with a background in c. Can anyone point out a few good web sites or books that would help make the transition? thanks.
    John
    p.s. -- is Java's pass by reference the same as pass by address? or by value?

    Here are a few good ones:
    http://developer.java.sun.com/developer/onlineTraining/new2java/
    http://java.sun.com/docs/books/tutorial/
    Welcome to Java!
    p.s. -- is Java's pass by reference the
    same as pass by address? or by value? Wherever it says "reference", think that it says "pointer".
    You'll get out of much trouble (especially what comes to passing references (pointers) to methods and reference (pointer) variables).
    Java is 100% pass-by-value, where "values2 are either primitive types (ints, floats, chars) or references (pointers). You can never have 'direct' access to objects like in C++.

  • Hi,I know NOTHING about adobe Or 'attachments'...  & I'm Quite Ill.....    :(       Where do I Start Learning ?

    Hi,I Can't 'open'/read Some on my documents in "My Documents" - Win7 32 bit. Then I downloaded this "30 day free trial"...   Where do I Start Learning ?   Where do I go from Here ?     Thanks

    Hi tirednewbiechris,
    I'm very happy to help you get started. It sounds as though you've downloaded the Acrobat free trial. Is that correct? There are some great getting started videos here: Acrobat XI tutorials | Learn how to use Acrobat XI
    If there are some specific things that I can help you with, please let me know!
    Best,
    Sara

  • Where do I start learning JSF

    I'm new to JSF.
    Where do I start?

    There are several articles and other information on my JavaServer Faces page. The JSF tutorial is also a great start.
    http://www.jamesholmes.com/JavaServerFaces/
    -James

  • I want to start learning Java

    I want to learn Java, and write Java codes. I searched through this website for an article which explains what a develepment environment I must have, but couldn't find anything, because it is designed in a too formal manner.
    Can you simply give me a list of software to install to setup myself a Java development system?

    hkBattousai wrote:
    You kept giving me links from this website. I said it is very fomal and %95 of the information is trivia.
    Anyway I found the answer on a third party program's website:
    http://www.jcreator.com/installation.htm
    All I need is
    1) JDK
    2) A Java IDE
    Is this right?Of course, JCreator is a nice IDE for beginners. Also, it is simple to use.

  • How can i start my learning Java?

    i am new to Java,and my platform is Linux.
    how shall i begin my learning Java?
    I think first i shall install J2ee on my Linux,
    but what is the second and which editor is best
    for write Java source code?

    >
    and as editor: use one with syntax highlighting like
    nedit or Emacs/XEmacs and there are several free IDE
    available like http://eclipse.org which include an
    editorDon't use an IDE for at least 3 months use a simple text editor such as;-
    http://welcome.to/metapad/

  • Im Trying To Learn Java :o(

    Hey All,
    I have decided to get my mind active and randomly learn Java. I say randomly because i am going to be a student again in IT but i like the kinda 3D side and modelling and nice pictures and flash actionscript lol not all this stuff.
    Anways i would just start by saying that Java offends me massivly, i know something happened with M$ and Sun and ever since then all i have had with the sun download is problem after problem and crashing and all iw as tryin to do was play some Jippii games. This aint a recent problem, it always happens and i must have reformatted xp around 7 times. So i stay away from applets!!!
    Anyways in 2002 when i started learning Flash it was because i seen a site i liked and wanted to do that. The equivelent is kinda like me saying "OK GUYS I HAVE JAVA NOW HOW DO I MAKE DOOM" anyways 2 and a half years later im happy with what i can do and have used alot of different apps and learned alot from 3dsmax to aftereffects etc.
    Anyways my goal out of this whole Java thing is to make a game like one i used to play when i was younger on the Amiga 500. No where has this game and a modern one would be great to play. The graphics suck but the physics were really nice.
    So my questions are:
    1) Java. Ok im going to be honest, i know nothing about Java, i dont even know if it can do what i want and what i really dont want is to spend a while learning this to be stuck with no effects for my game, ie are small particle effects possible in Java? I know Java is pretty slow for a proper language compared to C/C++ but how slow? Can you shift a hundred particles around the screen and still add physics in the background?
    2) Java. The whole thing confuses me massivly. Im not a big posting person as i tend to prefer searching but i dont even know where to begin. I will bite the bullet and say i aint going to have alot of problems with the syntax of the language itself. It all looks kinda how i expect it, obviously i dont mean i aint gonna have problems and lot of them but it is not REALLY alien to me to look at a bit code. At the same time it is. I need to know alot of stuff, things that the 2 ebooks i have just ignored. For example, when i compile something, i thought that meant it compiled to the EXE but infact it turned my "heyworld.java" into a "heyworld.class" file. This just makes no sense to me atall because i HATE command line stuff, i see it as reinventing the wheel so im trying to follow through on first of all netbeans (an that went off almost instantly) and a free one that got my hey world to work (well, class). I need to know if a compiler dont make a exe then whats the class for and what exactly is a class file. You know just stuff like that? Does anyone know i kinda dictionary so to speak? baby talk i mean, so far all i seem to get is explainations with words i dont understand.
    3) How difficult is it to make a 2D game in Java? To make this plainer, i aint having an applet run somewhere, i want a nice downloadable exe. Of course i will need to start at the beginning but i mean to get a ship on the screen with keys to move it and a "cave" roof to crash into, is this going to take a long long long time to get to that stage? You see, as i said before unless after a few days i have a object on screen to work with, i just get too bored to continue. for example "the object of this is to make a red circle move across the screen" REALLY interests me where as "today we are going to make a mock system for a small business user" sends me back to 3Dmax and the lighting i was reading about lol I tend to look at a piece of code and be devestated by its complexity then try and make it make sense over time. Is this possible with Java? It does work for me this, i was picking apart a isometric code in actionscript before i knew what a tween was.
    4) Theres so many different J*** J"EE things floating around that i dont actually know what one i am meant to use? I got 1.4.2 i think but thats all i know. Id like any other things that helped yourselfs start off in Java?
    Sorry to go into a bit detail here, its just that with this degree im starting, it soon branches off into 2 groups. Programmers and Designers. I feel i know the design side well enough to make a comparison but it would be rude to leave this side of the things out and write it off without atleast giving it a shot.
    Thank you very much for your time :o)
    Kind regards,
    Clarky.

    If you want an idea of what's possible with Java, do a google search for "java games" or something like that. I've seen occasional postings of what are supposed to be pretty cool games that have been written in Java, but I'm not into games, so I've never bothered to check 'em out personally.
    As to whether you can do it, well, you'll have to figure that out. Learning Java well enough to create a video game is not a trivial task. I don't just mean the syntax of the language, I mean the many APIs you'll be using, concepts like multithreading and exception handling, good OO principles, etc. Without a good handle on that stuff, your code will quickly turn into a morass that will be difficult to enhance, maintain, or debug.
    I suspect that the code to make a particular graphical event occur will be more verbose and complex in Java than in ActionScript, given that Java is a general purpose language and AS is more geared to GUIs. Nonetheless, I'm sure there are APIs out there (some free, some not) that will provide some higher level constructs than the core APIs to make some of that easier. You'll still be operating in the idiom of a general programming language though.
    There may also be a hybrid solution available--where you use Java to express the game logic and another language to express the graphics. I don't know anything about this kind of stuff though, so that's just speculation.
    You may get more precise advice in the GUI Building forums on http://forum.java.sun.com/ than here.
    Here are some resources to get you started on Java in general.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.

  • For all the newbies who wants to learn Java

    I was a newbie like 4 months ago. i have some skills of OOP in C++ like 2 years back but since then i did'nt took any of programming language courses. I have experience in MSaccess and MYsql. i did my internship Last summer with Tennessee Education Lottery as a Database Analyst. At that time i realized what a Corporate Enviorment looks like. Trust me it was a formal interview and i passed it and they placed me in the IT department to write some scripts for the GUI terminal and at the same time create a Company Security Database. i did completed my project but i had to Learn Mysql. and then i realized Java was getting very popular. alot of people told me in the forums to go Java tutorial but i will not agree to start from the sun tutorial. you can do it only if you have a good or may be medium experience of OOP. it was really tough for me and then this magic guy came on the forum and told me to go on this website if you want to learn Java.
    http://chortle.ccsu.edu/java5/cs151java.html
    This site is a brilliant site specially the exercise problems and the quizes really attracted me to Java alot and now i came to realize how easy it is to program in Java rather than C++. Java forums have helped me alot in solving those exercise problems (not with the code but with a good explanation) which was very helpful for me. out of my 210 post i guess i have helped 30 people out and the rest of the questions are regarding those exercises. i came to know encapsulation, inheritance and all that stuff. though i am still not very perfect like i am still having trouble with ComparTo thing but it takes more practice. the more you practice the more you learn. so all the newbies if you really want to learn java even if you dont have any experience in OOp this is the site where you need to start. Hope this will definitely help you alot. thanks to all the Senior members navycoder, captain, paulcw, duffy, turingpest and others also who have helped me in the past. without you i would have not achieved the goal of learning java. now my next step is going to be learn GUI programming Swing. looks fun to me. but at the same time i have my final project for this semester to make on ONline Testing program which will have a database, php scripting and html and xml.
    I will post if i have any problems

    I was a newbie like 4 months ago. i have some skills
    of OOP in C++ like 2 years back but since then i
    did'nt took any of programming language courses. I
    have experience in MSaccess and MYsql. i did my
    internship Last summer with Tennessee Education
    Lottery as a Database Analyst. At that time i
    realized what a Corporate Enviorment looks like.
    Trust me it was a formal interview and i passed it
    and they placed me in the IT department to write some
    scripts for the GUI terminal and at the same time
    create a Company Security Database.Wow they really must like to gamble if they put you in charge of a security database - no offense meant, but that isn't the sort of thing you would want a brand new person working on, unless of course they were giving really high odds ;-)

  • Dont know where to even start

    Well I really need som help on where to even start this program? I'd send u what i have so far but its so full of errors i'd be embarsed. I'll prob need to just start a new and was wondering where the heck i should even begin:
    Problem Statement: Your need to Create a public class 'MathQuiz' that extends JApplet and implements ActionListner. Basically the program is aimed at helping elementary school students learn basic math operations of addition, subtraction, multiplication, division and additionally the modulus operator.
    Program first prompts user for an integer 1 to 5 to indicate choice of math operation in a JTextField as 1: for addition 2: for subtraction 3: for multiplication 4: for division (typically in java integer division) and 5: for modulus (remainder value in a division).
    Use Math.random() to produce two positive integers, first integer in the range of 11 to 20 and second integer in the range of 1 to 10. Then frame a question of user's choice of operation with these two numbers and prompt user for his response to the question.
    Accept user's response in a JTextField and upon click of "Enter" button evaluate user's response and display message in applet container's status bar. If the response is correct display "Very good!" and ask another question of the same math operation. If the response is wrong display" No. Please try again" on applet's status bar and let user try the same question until the user gets it right.
    A separate method is to be defined to generate question that takes the argument of user's choice, generates the random numbers in required range and employing 'switch' selection structure formulates the appropriate question. This method should be called each time user changes his choice in the JTextField and each time the user answers questions correctly.
    If the user enters a number other than 1 to 5 in the choice JTextField, program should display 'Invalid input" message is status bar and instead of framing a question prompt the user for only "valid" choice number.
    I'm new at this so this is quite a task for me to tackle. any sugestions would be greatly appricated!
    well i guess i'll give what i've got so far dont laugh to hard.
    // MathQuiz.java
    // math quiz
    // Java core packages
    import java.awt.*;
    import java.awt.event.*;
    // Java extension packages
    import javax.swing.*;
    public class MathQuiz {
    public static void main( String args[] )
    int choice=0;
    int value;
    switch (choice) {
    //addition
    case 1:
    //subtraction
    case 2:
    //multiplication
    case 3:
    //division
    case 4:
    //modulus
    case 5:
    break;
    // pick random integer between 11 and 20
    value = 11 + ( int ) ( Math.random() * 10 );
    System.exit ( 0 );
    its a start right? any help

    This is probably what you need (I hate case):
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    public class MathQuiz extends JApplet implements ActionListener, DocumentListener
         JPanel      panel;
         JTextField  choice = new JTextField(2);
         int         co     = 0;
         JTextField  result = new JTextField(10);
         JLabel      num1   = new JLabel(""); 
         JLabel      num2   = new JLabel(""); 
         JLabel      op     = new JLabel(""); 
         JButton     calc   = new JButton("Enter"); 
         JLabel      status = new JLabel(""); 
    public void init()
         panel = new JPanel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT,12,1));
         panel.add(new JLabel("Enter choice: "));
         panel.add(choice);
         choice.getDocument().addDocumentListener(this);
         getContentPane().add("North",panel);
         panel = new JPanel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT,12,13));
         panel.add(num1);
         panel.add(op);
         panel.add(num2);
         panel.add(calc);
         panel.add(result);
         getContentPane().add("Center",panel);
         status.setForeground(Color.red);
         status.setFont(new Font("",1,34));
         getContentPane().add("South",status);
         calc.addActionListener(this);
         calc.setFocusPainted(false);
         calc.setEnabled(false);
    public void start()
         choice.requestFocus();
    public void actionPerformed(ActionEvent a)
         try
              int rs = Integer.parseInt(result.getText());
              int n1 = Integer.parseInt(num1.getText());
              int n2 = Integer.parseInt(num2.getText());
                     if (checkResult(n1,n2,rs) == true)
                   status.setText(" Very good !!");
                   newQ();
              else status.setText(" No. Please try again");
         catch (Exception e)
              status.setText("** Illagal number entered **");
         result.requestFocus();
    private boolean checkResult(int n1, int n2, int rs)
         if (co == 1 && n1+n2 == rs) return(true);
         if (co == 2 && n1-n2 == rs) return(true);
         if (co == 3 && n1*n2 == rs) return(true);
         if (co == 4 && n1/n2 == rs) return(true);
         if (co == 5 && n1%n2 == rs) return(true);
         return(false);
    public void insertUpdate(DocumentEvent e)
         checkChoice();
    public void removeUpdate(DocumentEvent e)
         checkChoice();
    public void changedUpdate(DocumentEvent e) 
         checkChoice();
    private void newQ()
         num1.setText(""+(int) ((Math.random()*10)+11));
         num2.setText(""+(int) ((Math.random()*10)+1));
         result.setText("");
    private void checkChoice()
         num1.setText("");
         num2.setText("");
         result.setText("");
         calc.setEnabled(false);
         try
              co = Integer.parseInt(choice.getText());
              if (co < 1 || co > 5)
                    status.setText("  Invalid input");
                   co = 0;
              else
                    newQ();     
                   status.setText("");
                   if (co == 1) op.setText("+");
                   if (co == 2) op.setText("-");
                   if (co == 3) op.setText("*");
                   if (co == 4) op.setText("/");
                   if (co == 5) op.setText("%");
                   calc.setEnabled(true);
         catch (Exception e)
              status.setText("  Invalid input");
              co = 0;
    }Noah

  • What is the best way to learn Java? I am a complete spacker?

    Hi,
    Please can someone point me in the right direction on how to learn java properly, I was just browsing the Sun website and came across; [http://uk.sun.com/training/catalog/java/packages_java.html?gclid=CO2-6YrWu5kCFUsI3wodZ1qI5g]
    Who are these packages aimed at? I was looking at the top one; Entry Level; Sun Certified Java Associate.
    Thanks.

    I am a complete spacker.
    Please can someone point me in the right direction on how to learn javaWith an admission like that, what makes you think that anyone would want to "point you in the right direction", so that you might, one day, if things go to plan, be the "spacker" (as you so eloquently put it) sitting next them, asking gumby questions all day, spounging ideas, and doubtless claiming much more than your fair share of the credit, and the donuts.
    Yep, I'm fixated on the donuts. They're very nice ;-)
    Now... what where you saying?
    I was just browsing the Sun website and came across; [the training catalog|http://uk.sun.com/training/catalog/java/packages_java.html?gclid=CO2-6YrWu5kCFUsI3wodZ1qI5g] and was looking at: Entry Level; Sun Certified Java Associate.
    Yep that'd be the one to aim for when you're starting out... Personally, I recommend you give the whole certification thing a miss (at least for now) and just get into the tutorials, and grab some books (there are some really excellent ones) and just write some programs... at least until such time as you feel confident enough in your chosen field of endevour to not even consider intruducing yourself as "Hi, I'm a complete spacker"... I'll bet you're a real hit in job interviews. Good grief!
    Cheers. Keith.
    Edited by: corlettk on 24/03/2009 23:56 ~~ Clearer.

Maybe you are looking for