j patrick

Greenhorn
+ Follow
since May 02, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by j patrick

ahhh i got it, cheers, i was having problems saving files in the right directory, if that makes sense. The smallest problems can have you pulling your hair out.

Much appreciated!
12 years ago
Just cant compile for some reason, path seems ok
PATH=C:\Windows\system32;......;C:\Program Files\java\jdk1.6.0_10\bin

, but get this

C:\Users\Steve> Javac Hello.java

Javac: file not found: Hello.java
Usage: javac <options><source files>
use -help for a list of possible solutions

just got new computer, maybe its administartor probs?

This is driving me up the wall lol, any help would be much appreciated

cheers
12 years ago
Thanks for the feedback, ill try your suggestion.
12 years ago
thanks for the reply, i still cant do it tho lol. For x = x+6; the text answer is x = 60 y = 10, i cant seem to come to these values. I might just go to the next chapter.

Cheers for the help anyway.
12 years ago
sorry about the code, havent got the hang of posting yet

cheers
12 years ago
Hi im having problems understanding the second mixed message problem in chapter 5, can anyone help, this is the code



I can work out the outputs for most of the questions except x = x+6; and x = x + 0; The affect of break command has thrown me, if anyone is familiar with this chapter and the associated problems, some help would be appreciated.

cheers

[edit]Added code tags[/edit]
[ June 05, 2008: Message edited by: Campbell Ritchie ]
12 years ago
Hi im having problems understanding the second mixed message problem in chapter 5, can anyone help, this is the code

class MixFor5 {
public static void main(String[]args) {
int x = 0;
int y = 30;
for(int outer =0; outer<3; outer++) {
for(int inner =4; inner >1; inner--) {
12 years ago
I got 'MyFirstApp' to work, but now nothing else compiles??
Has anyone else had problems with notepad or not being able to compile java files??
12 years ago
ive copied the code into notepad and saved it and it seems to work, i think wordpad was saving it with .rtf or .txt, thanks for the help anyway.

cheers
12 years ago
Im not sure
12 years ago
Hi i just bought head first java band cant compile the 'MyFirstApp' code, can anyone help?

I have written the code in wordpad ie:

public class MyFirstApp {

public static void main (String [] args) {
System.out.println("I Rule!");
System.out.println("The World!");
}
}

set the path and this is recognised by the command prompt (i type path and it returns c:\Program Files\java\jdk1.5.0_03\bin)

so i type 'javac MyFirstApp.java'

and it returns 'error: cannot read: MyFirstApp.java

I can feel that there is something really elementary im doing wrong, can anyone help?

cheers
12 years ago