Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search Coderanch
Advance search
Google search
Register / Login
chen weiwei
Greenhorn
+ Follow
2
Posts
1
Threads
0
Cows
since Mar 30, 2008
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
Ranch Hand Scavenger Hunt
Number Posts (2/100)
Number Threads Started (1/100)
Number Cows Received (0/5)
Number Likes Received (0/10)
Number Likes Granted (0/20)
Set bumper stickers in profile (0/3)
Report a post to the moderators (0/1)
Edit a wiki page (0/1)
Create a post with an image (0/2)
Greenhorn Scavenger Hunt
First Post
Number Posts (2/10)
Number Threads Started (1/10)
Number Likes Received (0/3)
Number Likes Granted (0/3)
Set bumper stickers in profile (0/1)
Set signature in profile
Search for a post/thread (0/3)
Set a watch on a thread
Save thread as a bookmark
Create a post with an image (0/1)
Recent posts by chen weiwei
I want to get jaxm-api.jar
I am new to web services.
I want to down jaxm-api.jar JDK1.4 Can run it
But I can not find it.
Please Help ME!
show more
14 years ago
Web Services
Vector problem
HI!
You must new Course in while(){this...} try it ;
MY test code:
public class Ranch { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Vector v=new Vector(); //User u=new User(); for(int i=0;i<5;i++){ User u=new User(); u.setName(i); u.setPassword(i+1); v.add(u); } System.out.println(v.size()); Enumeration e = v.elements(); User c1 = new User(); while (e.hasMoreElements()) { c1 = (User) e.nextElement(); System.out.print("Second Print Name: "+c1.getName()+"--"); System.out.println("Second Print Code: "+c1.getPassword()); } } } class User{ private int name; private int password; public int getName() { return name; } public void setName(int name) { this.name = name; } public int getPassword() { return password; } public void setPassword(int password) { this.password = password; } }
[ May 28, 2008: Message edited by: chen weiwei ]
show more
15 years ago
Beginning Java