tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael Padraig Og mac Grene <caraun...@harbornet.com>
Subject Re: Vectors? Why does this not work?
Date Thu, 10 Jan 2002 23:57:37 GMT
At 03:49 PM 1/10/02 -0500, you wrote:
>Why does this simple example not work?
>I am using Tomcat 3.3 and JDK 1.3.1_01 and Redhat Linux 7.2
>
>Thanks,
>
>==============
>
>// SimpleClass.java
>// A Simple Class
>public class SimpleClass extends Object{
>    private static String last_name;
>    private static String first_name;
>    private static String middle_name;


Must be a trick school assignment.  The member variables are static.

Take the "static" out of the first name only and you will get something 
like this.  Easy.  lol.

Garbage In
0: Washington, George
1: Adams, John
2: Jefferson, Thomas
3: Madison, James
4: Monroe, James
5: Adams, John
6: Jackson, Andrew
7: Buren, Martin
8: Harrison, William
9: Tyler, John
10: Polk, James
11: Taylor, Zachary
12: Filmore, Millard
13: Pierce, Franklin
14: Buchanan, James
Garbage Out
0: Buchanan, George
1: Buchanan, John
2: Buchanan, Thomas
3: Buchanan, James
4: Buchanan, James
5: Buchanan, John
6: Buchanan, Andrew
7: Buchanan, Martin
8: Buchanan, William
9: Buchanan, John
10: Buchanan, James
11: Buchanan, Zachary
12: Buchanan, Millard
13: Buchanan, Franklin
14: Buchanan, James


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message