hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : V. URGENT How do you make 2D array in java?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

V. URGENT How do you make 2D array in java?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-08-2004, 09:44 AM
death_entry death_entry is offline
Temporarily Suspended
 
Join Date: Mar 2004
Posts: 149
Question

V. URGENT How do you make 2D array in java?


Im doing a project about a leisure centre and where the members have ids, they have gates that add or deny them permssion, when they are granted access, their location (zone) gets updated, so if a user is moving from the siwmming pool (zone2) to the sauna (zone3) then the zone value changes.


I want to be able to make a non-fixed 2D array that needs to store the following. Im using bluej ide if that makes a difference.

Idnumber------Zone
101----------------1
102----------------1
103----------------3

I need to be able to update the zone value how do u do this also. So it says something like find idnumber 101 and change the value next to it

please paste code if u know how to do it


Last edited by death_entry; 03-08-2004 at 09:50 AM.
Reply With Quote


Sponsored Links
  #2  
Old 03-08-2004, 08:11 PM
ilyash ilyash is offline
Web Hosting Master
 
Join Date: Dec 2002
Location: NY, NY
Posts: 3,975
int[][] NAME = new int[104][4];
NAME[101][1] = XX;
NAME[102][2] = XX;
NAME[103][3] = XX;

i think thats what u wanted...

Reply With Quote
  #3  
Old 03-15-2004, 09:48 AM
Brightadmin Brightadmin is offline
Web Hosting Master
 
Join Date: Feb 2004
Posts: 772
Hi,

Refer the following URLs for Two Dimensional Arrays in Java. Here 2 D Arrays are given with examples and hoping you will get enough details from this URLs

1. http://www.scism.sbu.ac.uk/jfl/Chapter13/chap13p1.html

2. http://www.vovisoft.com/java/JavaLec...0in%20Java.htm

3.http://sophia.dtp.fmph.uniba.sk/java.../week2/33.html

Regards,

Bright

Reply With Quote
Sponsored Links
  #4  
Old 03-16-2004, 06:26 PM
cleaver cleaver is offline
Junior Guru Wannabe
 
Join Date: Feb 2004
Posts: 44
I'm not sure exactly what you are trying to do, but...

A HashTable might be what you are looking for.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Jelastic Integrates Java and PHP Cloud Platform with NetBeans IDE Web Hosting News 2013-05-06 13:34:29
Jelastic Releases Plugin for Java Development Environment IntelliJ IDEA Web Hosting News 2012-12-05 11:15:46
Jelastic Java Cloud App Deployment Gets Easier with Eclipse Partnership Web Hosting News 2012-12-17 13:50:32
Jelastic Java PaaS Service Now Enables App Building in the Cloud Web Hosting News 2011-11-18 16:57:16
Java Cloud Platform Jelastic Opens US Operations in Palo Alto, California Web Hosting News 2011-11-07 18:12:18


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?