Herbert Morriss

Greenhorn
+ Follow
since May 21, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Herbert Morriss

Gone to the back 40 to spend time with my Grandson. See everyone around the 15th...
18 years ago
Thanks Marc. Sorry I missed that page.
19 years ago
I am working on Say in the Cattle Drive and it was suggested to me that I use JUnit. I tried to work through the cookbook in the JUnit directory but I guess it expected me to be a little more advanced. Is there a good place to learn how to use JUnit without all the other tools? I really need something very elementary ( either an online tutorial or book.)
19 years ago
Thanks Henry.
19 years ago
I want multiple constructors. I am trying to get one constructor to call another but keep getting an error. Why cann't I do this?


public class Constructors
{
int x ;
String y ;

public Constructors( int x, String y)
{
this.x = x ;
this.y = y ;
}

public Constructors( int x )
{
String z = Integer.toString( x ) ;
Constructors( x , z ) ;
}
}


E:\Java\Sandbox\Constructors.java:18: cannot find symbol
symbol : method Constructors(int,java.lang.String)
location: class Constructors
Constructors( x , z ) ;
^
1 error

Tool completed with exit code 1
19 years ago
opps, that was assignment 4, say.
19 years ago
Thanks, I will give it a shot and see what you say when you see my assignment 5.
19 years ago
I want a Stack Data Structure ( LIFO ). I see Stack (which inherits from Vector), I understand using Vectors is out, correct? Is ArrayList the one I want to use? The only thing I do need is to be able to get the size without having to build a function myself.
19 years ago
Thanks Marilyn. Can you recommend a book or website that has some examples I can play with? I have been writting programs for almost a decade now and never used a hash whatever. I use the backend database calls to optimize my stuff. Also, not sure when I would use a set.

thanks, herb
19 years ago
Ha Adam, are you interested in pizza? If so and you are willing to talk about Hashtables, Hashsets, and Hashmaps I'll buy. I am having trouble figuring out where they fit in. If so where is the best place to meet?
19 years ago
Thanks Joyce, I should have caught that one...

Have a nice day..

herb
19 years ago
Maybe a little more code and output would help

[ I removed the code - Pauline ]

here's the output:

numberIn = 69

Sixty-Nine <---- right
Zero-Nine <---- wrong
Press any key to continue . . .

I hope the formatting comes out...




[Sorry to have to do that Herbert, it's just in case anyone working on this one would prefer not to see others' code before they figure it out themselves. -Pauline ]
[ April 12, 2006: Message edited by: Pauline McNamara ]
19 years ago
I am getting strang results when I use an expression to calculate the array position.

System.out.println( numbersTeens[numberIn % 10] ) ; Works Fine

but

System.out.println( numbersTens[( ( numberIn/100 ) % 10)]

always evaluates to numbersTens[0].
19 years ago
Hi Adam, I do not feel confortable giving to much personal info here so the best way is to Call the VA Medical Center in Seattle, listed in the white pages under US Government, and ask for me in IRM. If you get my answering machine leave a message with your number and when it is best to call. I am off every other monday and 4/10 I am off. I will check my voice mail over the weekend. I have already printed out the lessons and just starting chapter 4 in the book. I do know how to get the environment set up and have played around a little with Eclipse, however, I plan to use a product call TextPad initially (a super version of Notepad.) Don't worry about how green you are. I just wanted someone that was about my speed so we could learn together.
19 years ago
Thanks Pauline, I have my saddle bags packed with Peter's book and gonna hit the trail this weekend. Hope I don't run into any t-storms.
19 years ago