Results 1 to 6 of 6
Thread: Getting started again
- 05-16-2012, 10:37 PM #1
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
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!
-
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.
- 05-17-2012, 01:37 AM #3
Senior Member
- Join Date
- Apr 2012
- Posts
- 199
- Rep Power
- 0
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.
- 05-17-2012, 02:58 AM #4
- 05-17-2012, 03:03 AM #5
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.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-17-2012, 04:23 AM #6
Programming Again
- Join Date
- May 2012
- Location
- Eugene, OR
- Posts
- 55
- Rep Power
- 0
Similar Threads
-
Help getting started.
By timiscute in forum New To JavaReplies: 7Last Post: 11-01-2011, 04:59 PM -
Getting Started
By AndrewM16921 in forum JDBCReplies: 1Last Post: 10-27-2011, 01:54 PM -
Help me get started
By shanky in forum Java ServletReplies: 2Last Post: 05-02-2010, 03:37 PM -
Get me started?
By neworlbush25 in forum New To JavaReplies: 4Last Post: 03-26-2009, 05:16 PM -
I need help getting started
By Android in forum New To JavaReplies: 2Last Post: 10-30-2007, 04:46 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks