Results 1 to 3 of 3
- 06-16-2012, 02:26 PM #1
Member
- Join Date
- Jun 2012
- Posts
- 1
- Rep Power
- 0
store and recall string and integer data when a boolean is set to true
i am trying to figure out how to program In java an arraylist of sorts that stores and recall data I command.
I have 3 data sources
1 is a string
1 is a number anywhere from 0 - 30000
and the last is a boolean
when the Boolean is "true" I need the array to store the data from the string and the number.
when the Boolean is false the array looks at the string input and if it matches any of the strings in the array then it outputs the corresponding number that was stored.
the array needs to be able to store and recall about 50 strings and numbers in total.
also if the same string is encountered on a Boolean true the number value should be replaced with the new number received.
does anyone have any bright ideas?
it's for a quartz composer plugin.
thanksLast edited by lukeirves; 06-16-2012 at 02:33 PM.
- 06-16-2012, 03:37 PM #2
Re: store and recall string and integer data when a boolean is set to true
Start by learning Java?
The Java™ Tutorials
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 06-16-2012, 05:07 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,377
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
How do you break down a string to store different types of data into an array?
By wholegrain in forum New To JavaReplies: 3Last Post: 02-14-2012, 12:05 AM -
Boolean.True and Boolean.False, why do some people use these?
By Pojahn_M in forum New To JavaReplies: 3Last Post: 09-13-2011, 12:01 AM -
my simple boolean code keeps saying true
By shazakala in forum New To JavaReplies: 8Last Post: 03-27-2011, 10:30 AM -
Boolean always true?? What am I doing wrong?
By Forty0ztoFreedom in forum New To JavaReplies: 4Last Post: 03-02-2011, 06:13 PM -
how to Store and recall numbers in java ?
By Ak-Emm in forum New To JavaReplies: 16Last Post: 09-28-2008, 11:49 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks