Rob Strange

Greenhorn
+ Follow
since Mar 07, 2011
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 Rob Strange

Hi

I am currently learning Java, for my own interest, and am still very much a Newbie. I am interested if you think that the Cucumber book would help me to commission work ie the customer with the wild idea, so that I can better refine and describe what it is I want or is it specifically aimed at devs.

Many thanks

Rob
12 years ago


I will have another look and try to work it out, I think the biggest problem is I don't know exactly what the code is doing as you have just explained very clearly, many thanks.
12 years ago
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at Puzzle4.main(Puzzle4.java:22)


I have tried removing the curly bracket and it throws another error,

eclipse has no crosses in the code so I am at a loss.

thank you for your help.
12 years ago
Hi,

I am working my way through the Head first Java book and can't work out why the following code won't compile, is it a typo in the book?



I am using Eclipse.

Many thanks

[Edit - added code tags - MB]
12 years ago
Silly mistake, thank you.

13 years ago
MooseGreetings.java
13 years ago
Thought I should post my code.

public class MooseGreeting {
public static void main(String[] args) {
System.out.println("moooooooo");
}
}
13 years ago
Really new to this and don't really understand what it says.

Sorry to be a pain
13 years ago
Hi,

I realise that this will have come up before but I am not sure what to search for.

I have installed Java 1.6.0_24 and set my Paths (I think) I have followed the instructions for Moose Greetings (https://coderanch.com/how-to/java/how-to-create-java-program) When I compile I get an error stating:

MooseGreetings.java:1: class MooseGreeting is public, should be declared in a file named MooseGreeting.java
public class MooseGreeting {


Please could someone let me know what I am doing wrong, the text was copied from the webpage.

Many thanks
13 years ago