Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
sapoverde
sapoverde's Profile
2
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Help: Can't get my string to work
[5 Replies]
06-Jul-2012 02:17 AM
Forum:
Programming Questions
My playOtherReflection and playMyReflection commands keep returning an error message:
void playOtherReflection(){
playOtherSong(findReflection(LastReflection.getComboName(),false));
}
void playMyReflection(){
playOtherSong(findReflection(LastReflection.getComboName(), true));
}
String findReflection(int targetCombo){
ArrayList reflectionSubset = new ArrayList();
Random randomGenerator = new Random();
Iterator iterator = reflectionList.iterator();
reflectionEntry selectedReflection;
while(iterator.hasNext()){
selectedReflection = (reflectionEntry) iterator.next();
if(selectedReflection.getComboName()==targetCombo){
reflectionSubset.add(selectedReflection);
}
// else{ // looking for someone else's reflections
//if(selectedReflection.getComboName()!=targetCombo){
// reflectionSubset.add(selectedReflection);
//}
}
// if nothing in subset array, return nothing
if(reflectionSubset.size()==0) return(null);
int index = randomGenerator.nextInt(reflectionSubset.size());
return(((reflectionEntry)reflectionSubset.get(index)).getFileName());
}
Hiring a Freelancer/Programmer
[0 Replies]
23-Jun-2012 02:41 PM
Forum:
Events and Opportunities
I'm looking at hiring a programmer to help take my code to the next functioning level. I'm looking at refining my reactivision/fiduciary code that records and loads audio files. Thanks in advance for any pointers!
«Prev
Next »
Moderate user : sapoverde
Forum