Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java! first cup

 
Bryan Patton
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic