There is an online (and downloadable) Java SE tutorial that is a good place to start learning Java. Java SE = "Standard Edition", which is the version of java designed for desktops and servers. Since Java for FRC is based on the ME ("Micro-edition"), there are some parts of the tutorial you can skip over:
Starting from
http://download.oracle.com/javase/tutorial/ there are several "trails" to follow:
- Getting Started - "Hello World" and Java marketing
- Learning the Java Language - fundamentals of programming. Can skip:
- "Enum Types" and "Annotations"
- "Generics" section.
- Essential Java Classes - Cover only these sections:
- Exceptions
- Basic I/O - Byte, Character, Buffered, and Data streams
- Concurrency - but skip over "High Level Concurrency Objects" and any mention of classes in java.util.concurrent.
You can find the full API documentation (javadoc) for Java ME, WPILibJ, and the Squawk JVM in the Java for FRC SDk once you install it, in sunspotfrcsdk/doc/javadoc/index.html. You can also see the Java ME API set online at
http://download.oracle.com/javame/co...139/index.html.