Results 1 to 6 of 6
  1. #1
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default Getting started again

    Hello!

    When I was in grad school, I took some computer science classes and made some Java programs for my dissertation. That was 9 years ago and I haven't done any programming since. I would like to get back into it to make some applets for the classes I teach. I feel a bit lost after looking at the Oracle website. Is there a program that provides an environment to facilitate Java programming?

    Thanks!

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Getting started again

    We all learn best in our own way, and myself, I learn best from books. When I re-started programming after being years away from it, I bought a bunch of used books online and plowed through them. Maybe this might work for you, but again, only you know what helps you learn best.

  3. #3
    shall is offline Senior Member
    Join Date
    Apr 2012
    Posts
    199
    Rep Power
    0

    Default Re: Getting started again

    Download Netbeans from http://netbeans.org/downloads/index.html (select the all version).

    you can easily generate a java application with File->New Project and select Category Java and Projects Java application. Enter the project name and then select finish.

    You can even test Java Applets in Netbeans by right clicking on the file in the project list and select run file.

    Look for examples on google and copy and paste them into the application. Remember the file name has to be the same name as the class name. So if you copied and pasted a class that has a different name than the file you'll have to change the file name. To change the file name, right click on the file name (in the project listing) and select refactor->rename.

    You can have more than one class in a file, but only one can be public, the rest have to be private. The file name has to be the same name as the public class name.

    Have you looked at Trail: Essential Classes: Table of Contents (The Java™ Tutorials)

    I found the following website helpful for information related to working with java on the command line: http://www.vipan.com/htdocs/javahelp.html.
    Last edited by shall; 05-17-2012 at 02:57 AM.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

    Default Re: Getting started again

    Quote Originally Posted by shall View Post
    You can have more than one class in a file, but only one can be public, the rest have to be private.
    No, they don't have to be private.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,197
    Rep Power
    19

    Default Re: Getting started again

    You can have only one top level public class in a a file, and the filename must correspond to that class name.

    You can have nested classes, public or otherwise; you can have inner classes, public or otherwise; and you can have other non-public (default access) top level classes.

    The private or protected access doesn't make any sense for a top level class, so is not permitted under the JLS and leads to a compile error.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    Dissonance is offline Programming Again
    Join Date
    May 2012
    Location
    Eugene, OR
    Posts
    55
    Rep Power
    0

    Default Re: Getting started again

    shall, this is exactly for what I was looking. Thanks!

Similar Threads

  1. Help getting started.
    By timiscute in forum New To Java
    Replies: 7
    Last Post: 11-01-2011, 04:59 PM
  2. Getting Started
    By AndrewM16921 in forum JDBC
    Replies: 1
    Last Post: 10-27-2011, 01:54 PM
  3. Help me get started
    By shanky in forum Java Servlet
    Replies: 2
    Last Post: 05-02-2010, 03:37 PM
  4. Get me started?
    By neworlbush25 in forum New To Java
    Replies: 4
    Last Post: 03-26-2009, 05:16 PM
  5. I need help getting started
    By Android in forum New To Java
    Replies: 2
    Last Post: 10-30-2007, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •