Wtf mate? ....prob a very simple problem

Alright so i found the best book in the world to learn java from , everything is clicking and making sense at a rapid rate but, i just tried cutting and pasting one of there example projects and its giving me a shit load of errors that make no sense to me.

i just tried cutting and pasting one of there example projects and its giving me a shit load of errors that make no sense to me.

Cutting and pasting unrelated code and reassembling it again is not the way to program; it seldom (or never) works that way. Start by writing very small programs that exercise one aspect of the programming language; then try another one and finally a bigger one until you have understood all the aspects of the language you were working with. There are script kiddies enough in this world and they cause a lot of damage. Don't become one of them.

When you cut and paste code from the web, you'll often find that certain characters that look OK in the browser are not correct for Java code when you paste them. Single and double quotes, and spaces are common problems.

Try replacing all quote and space characters with the equivalent quote and space characters typed from your keyboard - it sounds daft, but it often works.