Help coderanch get a
new server
by contributing to the fundraiser

Daniel Morrison

Greenhorn
+ Follow
since Mar 26, 2007
Merit badge: grant badges
For More
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 Daniel Morrison

I agree with Mr. V. I've just started learning java, with only minimal knowledge about programming in general; just enough to get me into trouble. I like that this book doesn't assume you know too much. It's also kind of fun. I plan on also getting a reference book. Something that I can look up stuff in; like a dictionary.
Best of luck.
17 years ago
Yes, and thanks. I also found the other flaw put there by the author:

should come after...


Thanks again
17 years ago
Yes, and thanks. I also found the other flaw put there by the author:

should come after...


Thanks again
17 years ago
Yes, it should be

It never got a chance to start.
That's the thing about code; it doesn't like ANY errors.
17 years ago
Yes, it should be

It never got a chance to start.
That's the thing about code; it doesn't like ANY errors.
17 years ago
Sorry, thought I was in the right place. The code is as follows:

Hope I did that code thingy right
I was able to get this to compile, but not run using java beersong from the terminal.

I appreciate your help, Thanks from a Greenhorn
17 years ago
Sorry, thought I was in the right place. The code is as follows:

Hope I did that code thingy right
I was able to get this to compile, but not run using java beersong from the terminal.

I appreciate your help, Thanks from a Greenhorn
17 years ago
This is why I posted that I was a new user of Java; I've found my mistake. I wasn't typing java hello to see it run. I was instead double-clicking the hello.class file from the finder.
However, I do have another problem with running a different file that I created. I created another, longer file that has both a loop, if/else statements that compiles, but won't run. In the book that I'm using, Head First Java, it's the program for the beer song; displays the 99 bottles of beer counting down as it goes through the loop.
I've checked the spelling of everything, but no go.
:roll:
17 years ago
This is why I posted that I was a new user of Java; I've found my mistake. I wasn't typing java hello to see it run. I was instead double-clicking the hello.class file from the finder.
However, I do have another problem with running a different file that I created. I created another, longer file that has both a loop, if/else statements that compiles, but won't run. In the book that I'm using, Head First Java, it's the program for the beer song; displays the 99 bottles of beer counting down as it goes through the loop.
I've checked the spelling of everything, but no go.
:roll:
17 years ago
Hello, I'm new here and to java; done SOME programming. Using some very lightly here. So my question is that I can't seem to run a java .class file that I created. I'm using the book Head First Java and was able to create and compile the Hello World app, but when I double-click it to run it... nothing. I'm doing all of this in OS X.4.8 and the book says that I don't need to install anything else to do java on the OS X platform. The code is:

public class hello {
public static void main (String[] args) {
System.out.println("Hello World");
}
}

All help will be appreciated

[edited subject - pmc]
[ March 27, 2007: Message edited by: Pauline McNamara ]
17 years ago
Hello, I'm new here and to java; done SOME programming. Using some very lightly here. So my question is that I can't seem to run a java .class file that I created. I'm using the book Head First Java and was able to create and compile the Hello World app, but when I double-click it to run it... nothing. I'm doing all of this in OS X.4.8 and the book says that I don't need to install anything else to do java on the OS X platform. The code is:

public class hello {
public static void main (String[] args) {
System.out.println("Hello World");
}
}

All help will be appreciated

[edited subject - pmc]
[ March 27, 2007: Message edited by: Pauline McNamara ]
17 years ago