How do you begin learning about Java?

Hi. I'm new to Java. I began taking a class at the local Community college where I live. I'm in my second term. It's a lot harder than the first. I'm not sure if I still understand the basics. I've written in COBOL, RPG I,II,III&IV, C, C++, C#, Pascal, Fortran, and Basic...along with a few other languages, but I find Java the hardest one to understand and program in.
Anyone out there got any advise as to how to begin?
I still feel very lost.

I am still learning myself. I have dabbled in programming since about 1976 when BASIC was available on the TRS-80 Model 1 but never did anything serious.
Start with the Java Tutorials at http://java.sun.com/docs/books/tutorial then look at other tutorials. There are some here:
<ul><li>Java Beginner Tutorial by
     Srini Appikatla</li>
<ul><li>[http://www.javabeginner.com/]</li>
</ul>
</ul>
<ul><li>Java Advanced Tutorials on
     ipodlot.com</li>
<ul><li>[http://www.ipodlot.com/javalearner/test/advanced.htm]</li>
</ul>
</ul>
I haven't worked through all of them but they look good so far.
Next, buy some books. I like "The Java Tutorial" Forth Edition. Yes, it is the same as the web site but it is easy to read sequencially. It doesn't cost much, used on Amazon.
Finally, actually write some code. It doesn't have to do much. Just play around. As you learn each new thing, try it out. It makes a big difference.

Similar Messages

  • How do you program sprites in JAVA ?

    As far as I understand, a sprite is something you can move about without disturbing the background, because it is not paert of the frame buffer. But how do I write a code for it? Could someone please give me some hints?

    to extend Malo's definition, a sprite is more commonly referred to as an "image that moves"-- not to be confused with animated images such as GIFs. the standard java library doesn't provide a Sprite object, but you can easily create one yourself...
    public class Sprite {
         Image img;
         int x,y;
         public Sprite(Image img) {
              this(img,0,0);
         public Sprite(Image img,int x,int y) {
              this.img = img;
              this.x = x;
              this.y = y;
         public void move(int x,int y) {
              this.x+=x;
              this.y+=y;
         public void moveTo(int x,int y) {
              this.x = x;
              this.y = y;
         public void paint(Graphics g) {
              g.drawImage(img,x,y);
    }something like that..

  • HOW DO YOU FEEL TOTALLY ABOUT VERIZON SERVICE...PERIOD

    DISAPPOINTED IN THIS HOME CONNECT AND VERIZON SERVICES.  MY FATHER HAS HAD VERIZON SERVICE RESIDENTIAL (LANDLINE) FOR YEARS.  HE DECIDED TO GET A CELL PHONE.  WE WERE (SUCK IN) TALKED IN BY A WIRELESS REPRESENTATIVE PERTAINING THE LANDLINE PHONE FOR A BETTER DEAL UPON PURCHASING THE CELL PHONE.   WE DECIDED TO CONTINUE TO KEEP THE NUMBER TO THE LANDLINE PHONE.  SINCE RECEIVING THE HOME CONNECT....WE HAVE HAD A GREAT DEAL OF BAD EXPERIENCES WITH THE HOME CONNECT TO THE LANDLINE.  WE WENT TO PURCHASE A NEW PHONE FOR THE LANDLINE PHONE.  WE ARE NOT PURCHASING THE HOME CONNECT BOX TOTALLY.  THE CELL PHONE WAS FREE WITH 2 YEAR CONTRACT AND WE ARE SUPPOSE TO HAVE (2) SEPARATE LINES.  ONE FOR THE LANDLINE AND THEN ONE FOR THE CELL NUMBER.  IT APPEARS THAT THE REPRESENTATIVES AT VERIZON ARE DENSE ABOUT THIS SITUATION.  THEY DECIDED TO PUT OUR LANDLINE PHONE SERVICE UNDER WIRELESS AFTER WE HAVE BEEN WITH VERIZON RESIDENTIAL WITH THIS SAME NUMBER FOR YEARS.  THEREFORE, WE ALREADY HAD A LINE WITH VERIZON RESIDENTIAL.  HOWEVER, BECAUSE THEY DECIDED TO PUT US UNDER THE VERIZON WIRELESS WITH THE LANDLINE PHONE AND CELL PHONE BECAUSE OF THE HOME CONNECT.  THE BILL WE HAD WITH VERIZON RESIDENTIAL PERTAINING TO THE SAME LANDLINE PHONE WITH HOME CONNECT WAS PAID.  THEY ARE TELLING US WE HAVE TO PAID TO ACTIVATION FEE SEPARATELY ALTHOUGH WE HAD A LANDLINE WITH VERIZON WIRELESS.  ALSO, THE AMOUNT THEY ARE CHARGING FOR THE VERIZON WIRELESS HOME CONNECT LANDLINE IS NOT UNDERSTANDABLE.  WHY?!?!? BECAUSE WE JUST PAID FOR THE BILL TO THE SAME LANDLINE SERVICE WITH VERIZON WIRELESS.  THEN THEY MISSPELLED OUR LAST NAME FOR THE VERIZON WIRELESS BILL TO WHICH THEY ARE CHARGING FOR THE LANDLINE SERVICE AGAIN  UNDER THE SAME ACCOUNT USE FOR THE CELL PHONE.  IN A MONTH TIME VERIZON WANTS US TO PAY ADDITIONAL $100.00 FOR THE LANDLINE SERVICE UNDER THE VERIZON WIRELESS AFTER PAYING BEFORE THE BILL DUE ON JULY 12 2014 WITH VERIZON RESIDENTIAL.  THIS MEANS WE ARE PAYING ALMOST $200.00 FOR THE LANDLINE SERVICE FOR VERIZON WIRELESS AND VERIZON RESIDENTIAL.  THEN THE SERVICE WITH THE VERIZON WIRELESS FOR THE LANDLINE SERVICE USING THE HOME CONNECT BOX IS SAD, PATHETIC AND DISGUSTING.  THE SERVICE IS AS THOUGH THE LANDLINE HOME CONNECT IS BEING USED AS A MOBILE PHONE IN LIEU OF A LANDLINE PHONE.  WE GET RESPONSE ON THE LANDLINE  SUCH AS TEXTING, ETC. HOW CAN YOU DO THIS WITH A CORDED LANDLINE PHONE.  ALSO, IN ADDITION TO THE EXTRA $100.00 FOR THE LANDLINE HOME CONNECT WITH VERIZON WIRELESS AND ALSO WANTS US TO PAY ALMOST $100.00 FOR THE CELL PHONE TO WHICH THE PHONE ITSELF IS FREE!  WE NEVER HAD TO PAY FOR CALLER ID TO BE DISPLAY ON THE LANDLINE PHONE BECAUSE IT WAS PART OF THE VERIZON RESIDENTIAL SERVICE.  WE ONLY ASKED THAT THE SAME SERVICE WE HAD WITH VERIZON RESIDENTIAL.  OH!!!! PLEASE ALLOW ME TO EXPLAIN THIS.  WE DISCUSSING THIS SITUATION WITH VERIZON WIRELESS TO WHICH BOTH SERVICE IS (NOW!!!!) UNDER VERIZON WIRELESS UNDER THE SAME ACCOUNT NUMBER...IT ALWAYS APPEARS THESE REPRESENTATIVES CAN NEVER, NEVER LOOK AT THE HOME CONNECT LANDLINE ACCOUNT UNDER THE SAME ACCOUNT NUMBER WITH THE CELL PHONE.  OH!!!!! THE TELEPHONES NUMBERS ARE DIFFERENT FOR EACH.  WE CONTINUE TO KEEP THE SAME NUMBER FOR THE LANDLINE HOME CONNECT.  THE REPRESENTATIVES/VERIZON WIRELESS IS CARRYING THE LANDLINE HOME CONNECT AS IF IT IS A MOBILE/CELL PHONE WITH A HOME CONNECT DEVICE.  RIDICULOUS, SAD, PATHETIC AND DISGUSTING!!!!!!!!  THE LANDLINE PHONE IS NOT A MOBILE/CELL PHONE.  THE OPERATIVE WORD IS "LANDLINE" WHICH MEANS A CORDED PHONE WITH ADDITIONAL CORDLESS PHONE.  I DO NOT BELIEVE THIS MEANS A CELL PHONE WHICH IS MOBILE.  THEY WANT US TO PAY ADDITIONAL $100.00 FOR THE LANDLINE PHONE WHICH IS NOT MOBILE AND $100.00 FOR THE CELL PHONE.  THE BILL WILL BE NORMALLY UNDER $100.00 FOR BOTH SERVICES.  I DO UNDERSTAND THE ACTIVATION FEE FOR THE CELL PHONE AND EVEN FOR THE LANDLINE SERVICE BUT AGAIN THE BILL WILL BE LESS THAN $200.00 PAYING THESE FEES.  ALSO, THE SERVICE ONLINE TO CHAT IS PATHETIC AS WELL.  WE TOLD THE REPRESENTATIVE THAT THE BILL FOR THE LANDLINE PHONE UNDER VERIZON RESIDENTIAL WILL BE PAID ON JULY 2, 2014 IN THE AMOUNT FOR ALMOST A $100.00.  HOWEVER, VERIZON CONTINUE TO BILL US AFTER PAYING THIS AS IF THEY WERE NOT AWARE OF THE PAYMENT ON JULY 2, 2014 FOR VERIZON RESIDENTIAL.  WE WERE SENT ANOTHER DEVICE AND RECEIVED ON JULY 17,2014.  WE SENT THE OLD DEVICE BACK ON 7/18/2014.   SOMETIMES WE BELIEVE VERIZON WIRELESS IS MESSING WITH OUR SERVICE ON THE LANDLINE HOME CONNECT.  WE CONTINUE TO GET A CLICKING SOUND BEFORE ANYONE RESPONDS TO OUR HELLO BY THE TIME THE CLICKING STOP THAT PERSON HAS HUNG UP.  WE GET RESPONSES AFTER DIALING A NUMBER ON THE LANDLINE FROM A REPRESENTATIVE TELLING US THE CALL DID NOT GO THROUGH...IT IS PATHETIC AND DISGUSTING.  THE SERVICE SUCKS WITH VERIZON WIRELESS PERTAINING TO CUSTOMER SERVICE, ETC.  THEN WE YOU TRIES TO EXPLAIN...THE REPRESENTATIVE WITH WIRELESS CONTINUE TO SAY WE CAN NOT REVIEW THE SERVICE WITH RESIDENTIAL TO WHICH WE DO NOT HAVE OR PROBABLY DON'T HAVE AN ACCOUNT ANY LONGER BECAUSE IT IS UNDER TO DIFFERENT NAMES MAINLY BECAUSE VERIZON WIRELESS HAS MISSPELLED.  WE ARE TRYING TO RESOLVE THIS MATTER HOWEVER, TO NO AVAIL IT APPEARS THE VERIZON WIRELESS AND VERIZON RESIDENTIAL IS JUST AS BAD OF SERVICE AS WE ARE GETTING WITH THE SERVICE USING THE LANDLINE AT HOME.  THE LANDLINE CAN NOT BE A MOBILE AS THE SAME WAY THE CELL/MOBILE PHONE.  AGAIN, THEY ARE TREATING THE LANDLINE HOME CONNECT AS IF THE PHONE BEING USED IS A CELL PHONE AND IT IS NOT.

    Also...
    3. Because you're no longer with Verizon Residential you will have different billing with Verizon Wireless. That includes an activation fee when you create new lines of service as well as being billed one month in advance. This would reflect on the very first statement you received from Verizon Wireless.
    4. If your cell phone and Home Phone Connect are showing on two different accounts, one line may have been placed on a sub-account. If you wish you can request that the two numbers be consolidated onto one account.
    The next time you post, it would be easier to understand what you wrote if you would not type in all CAPS AND separate your individual concerns into paragraphs.
    Thank You.

  • How do you find out about new VoD videos

    Quick question for FiOS TV users - how do you (personally) find out about new on-demand videos?
    Do you rely on the Spotlight email, or the trailers playing in the VoD store-front, or mail inserts etc? Keen to hear what everyone thinks works best!
    Thanks,
    Rich

    Here is one suggestion for you.
    http://www22.verizon.com/residential/fiostv/vod/vod.htm
    Joe D
    Verizon Telecom
    Fiber Solution Center
    Notice: Content posted by Verizon employees is meant to be informational and does not supercede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.Follow us on Twitter™!

  • How do you get learning apps?

    How do you get free learning apps from the App Store?

    The App Store has a diverse profolitio of free educational apps. To get free "learning apps" from the App Store just go to your app store and were it says All Categagories go over to more and select more. Then a drop down menu is shown and select education. This is just a preiview of some of the educational apps that are free and paid for.But if you know what you want you can always search in the app store. (Many of the teachers at the schools I support just go to google and see what apps are good and what other peole are using.) Once you have a free "learning app" just download it like any other app.
    Cheers,
              Alec
    Johnfayiah wrote:
    How do you get free learning apps from the App Store?

  • How do you find out about Kernel panics?

    Can anyone please explain to me how does one find out about Kernel panics, where to look etc? Thanks and regards

    When the operating system kernel, one of the most basic, foundational levels of the Mac OS X operating sytem, detects some kind of exceptional condition or internal corruption or when the hardware sends it a signal of some grave error, which can be a bug in the system software or a driver or can be a hardware problem and the situation is not one that can be dealt with and continuing operation is impossible, then the kernel "panics." It does it's best to shut down gracefully, but it's an abortive termination of all system activity, after which a reboot usually takes place (though you're notified and must intervene before that happens).
    It is a serious error and should not occur, but computer technology, both hardware and software, being what they are, there's no way to absolutely guarantee they won't happen. Unix-based systems such as Mac OS X have pretty good reliability, especially since Apple controls both the hardware and software. Still, 3rd-party software can be incorporated into a system, and Apple does not control or certify that code, so there's ample opportunity for poorly written add-ons (especially hardware drivers) to cause problems.
    Randall Schulz

  • How can i bring up "About Java" dialog box ...

    ... similar to About Dialog from Java Control panel? I realise this my not be portable. The class AboutDialog seems to be in deploy.jar under sun.com... (JDK 1.5 SE).

    yes i want to show Sun's "about java" dialog. tried the class that i mentioned in the parent post assuming usual JDialog constructor and included deploy.jar in classpath when compiling but got errors in runtime.

  • Learning about Java Beans. Help!.

    Hello all.
    I want to learn to create and use JavaBeans, but not by where to begin.
    Somebody can explain to me that it is a Java Bean and as is used.
    Knows some site where it can see examples or it has a tutorial on Beans.
    Thank you very much.

    Hi
    I've just started learning Java too on my own. What I know about JavaBeans for the moment is that a JavaBean is a visual component you can create and give methods(setters and getters).
    For example: JPanel, JLabel, JTextField, these are examples of JavaBeans, but you can also create them by yourself.
    I use JBuilder 5 Enterprise from Borland. You can download JBuilder 6, trial version I belief from www.borland.com. I'm not certain.
    How do I create JavaBeans in JBuilder?
    First you have to create a new Project. Then you can go to the menu File/New and you choose to create a JavaBean. Then JBuilder asks for some information, which package, name, base class...
    I've made a JavaBean, xJTextField. With each JTextField, ussually you also have a JLabel, so I've created a JavaBean xJTextField based on a JPanel. In that panel I've placed two components, a JTextField and a JLabel. I've added some methods and that's it. Now I can place an instance of xJTextField on every frame and automatically I have a JLabel and JTextField.
    I have just begon too with Java, I hope I helped you a bit. If you would like it, I can send you my project with my JavaBean and some explanation.
    Do you know some interesting websites about J2EE?
    Rik

  • What is the best way to learn about java?

    What is the best and cheapest way to learn java?

    I also am a Newbie to the Java language and am trying to get my head around it. I guess it all depends upon how much experience, and at what level, you have with programming in general. I have a good understanding of what my University tutor called "sequential logical thought" but I must confess this Object Oriented approach is, at first, most odd. However the Sun tutorial :
    http://java.sun.com/docs/books/tutorial/java/TOC.html
    : is the one I use the most. If I don't understand a specific computing term then I look it up at :
    http://www.webopedia.com/
    : which is a very good online encyclopedia of computing terms.
    There is also :
    http://www.joegrip.com/
    : which is an online "interactive" tutorial (you have to pay)
    I would advise against rushing out and buying a book until you have spent a whole day trolling through the 'net and seeing what it has to offer . There is a lot out there. The problem is wading through all the nonsense until you find what you're looking for.
    Good luck

  • Learn about Java memory spaces?

    Hi, I'm a student, and I need to do some research on and write a small paper about the "three or more Java memory spaces", what they do, how they differ.
    The only problem is that spending a half hour searching google and reading quite a bit of documentation, I can't find any significant reference to or classification of these memory spaces! Can anyone provide me with a link to documentation that describes these memory spaces and their uses?
    Thanks for your help!

    Also
    http://java.sun.com/products/hotspot/docs/whitepaper/Java_HotSpot_WP_Final_4_30_01.html
    http://java.sun.com/developer/technicalArticles/Programming/turbo/ and the documents referenced at the end of the article
    http://java.sun.com/docs/hotspot/gc1.4.2/faq.html
    http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
    Thes will lead you to additional documentation.

  • New To Java. Learning About Java Applet.

    Hi all, i am new to java. Actually i am facing problem with java applet. I am trying to use my cellphone to surf web. When i open a webpage from cellphone, the part which contain the java applet, it cannot be shown and appeared blank. I am using Nokia 7610, can it be solve?
    Can anybody help me? Thank You.

    JSE JRE stand for Sun Java Studio Enterprise 8.1 Final Release or Java SE Runtime Environment (JRE)? Which Shall i download? By the way the file type are .exe and .sh , how to let it become .sis?

  • How do you edit the 'About this mac' window?

    Hi,
    I need to edit the about this mac window - pictured here to remind you of what exactly it is ( http://www.pluggedinmac.com/Picture%201.jpg )- in order to further my understanding of how this aspect of Macintosh works.
    I will be extremely greatful of all replies
    Thanks
    James

    You'll need to be a bit more specific about what you mean by "edit".
    If you want to edit the actual .nib file (the archive which describes the window), it's at
    /System/Library/CoreServices/loginwindow.app/Contents/Resources/English.lproj/Ab outThisMac.nib
    Nib files can normally be edited by using the Interface Builder application that's part of the Xcode developer tools.
    However, since you're on an Intel-based Mac, you won't be able to edit the nib unless you first find a version from a Power PC Mac. The reason for this is that .nib files aren't actually a file, but a package that includes different parts inside the primary folder. For example, if you Control-click on the AboutThisMac.nib mentioned above, and choose Show Package Contents, a new Finder window will open which shows a single item "keyedobjects.nib". That is an actual file which holds the archived user interface objects (using key/value coding/archiving, hence the "keyed" in the name). To be able to open and edit a .nib file in Interface Builder, however, you need two additional files inside named "classes.nib" and "info.nib". These provide Interface Builder with the information necessary to properly open the nib. By removing those two files from the nib, a developer can essentially make the nib "read-only", meaning it will work fine when the application it's a part of needs to use it, but an end-user (or their competition) cannot open the nib file in Interface Builder to see how the objects were constructed. Most nibs that are part of an OS X install on PowerPC-based Macs include the necessary files and can be opened in Interface Builder. Most of the nibs included with Intel-based Macs, on the other hand, do not include those files and can't be opened in Interface Builder without first copying the "classes.nib" and "info.nib" files from a PowerPC-based Mac's nib to the Intel version of the nib.
    Hope this helps....
    Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM -   Mac OS X (10.4.7)  

  • How do you access SENS in JAVA

    Hi, I would like to know how to access SENS (System Event Notification Service) in JAVA, any hints?

    You don't need the int declaration if it's already defined earlier in scope. If you're translating a large amount of code (not just this little piece), then that would appear to be the case (that i was already declared) as C also requires this, just as Java does.

  • How do you translate this in java?

    this is supposedly a c statement
    how is this translated in java?
    i mean, is this even possible?
    for (sum=0,i=0, j = 0; i < 10; i++, j+=2)
         sum += i+j;

    You don't need the int declaration if it's already defined earlier in scope. If you're translating a large amount of code (not just this little piece), then that would appear to be the case (that i was already declared) as C also requires this, just as Java does.

  • How do you begin waveform timestamps at zero?

    I am new to labview, writing my first program.  I am collecting 1000 Hz temperature data, the sample rate of which can be changed on the fly.  I have 12 channels of data, so I get an array of 12 waveforms.  I wanted to get the timing data from just one waveform, so I was able to use the "get waveform time array" vi to collect that information, but it displays the real time (number of seconds since 1903 etc), and I want my timing to start at zero when I begin the vi.  It needs to be accurate to the millisecond.  I thought that I could just subtract the time (in seconds since 1903) of when the vi started from each element of the array and I would then start at zero, but there appears to be some kind of timing error or lag time and the results I get always start the time somewhere between 1.000 and 5.000 seconds, (something like 1.458, etc), which is unacceptable.  I can easily fix the problem in Excel, but if anybody knows a better way around this problem, the help would be greatly appreciated.
    Attachments:
    Welding Program Variable Rate.vi ‏412 KB

    rgehmlich,
    I think the reason you're having trouble getting the timestamp to start at 0 is because the acquisition and the Get Date/Time in Seconds.vi are not happening at the same time. I think the system time is being read at the start of the program, and then the code goes through creating or opening the file, setting up the task, and doing the acquisition and all this probably takes between 1 and 5 seconds (with selecting the file to be opened). What I think would work better is to take the time information of the first waveform from the first iteration of the while loop and subtract that value instead of the Get Date/Time in Seconds value. I've modified your code to do this (and I took out the daq code and replaced it with an express VI since I don't have a daq card in my computer right now) and the timestamps start at 0 for me. Take a look and see if it helps.
    Tyler S.
    Attachments:
    Welding Program Variable Rate[2].vi ‏470 KB

Maybe you are looking for

  • Xcelsius in SAP BPC 7.5 MS

    Hi experts, I have a couple of questions with regard to xcelsius in sap bpc 7.5 ms I am using SAP BPC 7.5 MS AND Xcelsius 2008 sp5. I already installed the required extended analyzer and EPM connector. Now here are my questions 1st. I have a file nam

  • Exception while creating a excel file in BPM 10g

    Hi, We are facing following issue while creating an excel file from BPM. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp

  • Want to send mail

    hello gurus, i want to send my company's salary slip on employee's mail. i have report of payslip which is now in pdf format.plz give me answers. Thanks in advance Binit

  • Invoke a Webservice that return a SAML assertion

    Dear Developers, how can i invoke a Synchronous Webservices(AuthenticateUserService) that reteurn an authentication assertion (SAML assertion) and then use this authentication assertion to invoke another service. the AuthenticateUserService has one w

  • Drivers for external HDD?

    I just got a 500gb 2.5" external USB Store Art HDD. I plugged it into my desktop PC which had XP SP3 loaded. The pop-up tells me that there is new devise. Windows then continues looking for drivers and then says that hardware has not been installed.