It's not a secret anymore!
The moose likes Beginning Java and the fly likes Java! first cup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java! first cup" Watch "Java! first cup" New topic

Java! first cup

Bryan Patton

Joined: Oct 15, 2005
Posts: 1
Hello! I will be attending classes in FEBUARY.I would like to get my feet wet now, so that I have some idea as to what is going on. I would like to try some basic examples. But first I want to make a couple of things clear.
When using an operating system, can I use XP Home edition or do I need XP Pro? Or does it make a difference, and why? 2nd I have an issue with code examples and typing.How do you tell what the spacing is between the lines.It would appear to be 1 or 2. Can someone please explain the formating when writing code. Thank You For Your Time.
marc weber

Joined: Aug 31, 2004
Posts: 11343

Hi Bryan, and welcome!

XP Home edition is perfectly fine. In fact, I don't know of any reason that the Pro edition would be beneficial for learning Java. You just need to have the Java SDK (Software Development Kit) installed, which you can download (free) directly from Sun. The most recent version is 1.5.0 (also known as 5.0 or "Tiger"), although the previous version of 1.4.2 is still commonly used.

Java 2 SE 1.4.2 SDK
Java 2 SE 1.5.0 SDK

As far as spacing between lines, Java doesn't care. One, two, three, or even none at all. The same goes for indentation. But although Java doesn't care, other people do. (Passionately, in fact.) So you will want to adopt a clear, consisent, and conventional style from the start.

Sun's Java Style Guide

Do you have Java installed? Have you run a "Hello World" program yet? If not, try it out!

Sun's Java Tutorial

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Hi Bryan,

Welcome to JavaRanch!

Java is a very portable language, and because the most common development tools are written in Java themselves, they are very portable too. Java and its tools will run on Linux, Solaris, many other UNIX variants including Mac OS X, as well as various versions of Windows, from the lowly Windows 98 to the slightly less lowly Windows XP Professional, Windows XP PartTime, Windows XP Temp, Windows XP Home, Windows XP Garden, and Windows XP Henhouse. Whatever you've got is probably just fine!

Regarding formatting: Java, like most modern languages, doesn't really care much about whitespace. You certainly could type code with double-spaced lines if you wanted. But Java won't care. Single spacing (which is what every one does, of course) is just fine. Note, though, that a file of code has to be plain text -- not a word file, not an RTF file, but plain text.

[Jess in Action][AskingGoodQuestions]
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
As you get going see if THIS helps with classpath, path, packages and such.

Let us know how things go for you. Drop in and ask questions any time!

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Naveen Vooka

Joined: Oct 13, 2004
Posts: 25

Naveen Vooka
DevSquare - Online Application Development
wood burning stoves
subject: Java! first cup
It's not a secret anymore!