Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 9th, 2007, 10:42 PM
zggtf211 zggtf211 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 zggtf211 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 49 sec
Reputation Power: 0
Array help

ok so i have a class that i want to put into an array that holds 2 pieces of information. It holds the persons username and password. i can make the class so you can tell me how to make the array
Code:
public class user
{
	private String username;
	private String password;

	public user(String usern, String pass)
	{
		username = usern;
		password = pass;
	}
	public boolean tryLogin(String usern, String pass)
	{
		boolean r = false;
		if ((usern != username) || (pass != password))
			r = false;
		else
			r = true;
		return r;
	}
}

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Array help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT