PhiLho wrote on Mar 20th, 2010, 11:51am:It is in Programs because the first messages were about program design, not syntax.
Some remarks on your previous message: the int WDnr1 = i; lines in tests are useless because the variable you create there disappears after the closing brace.
Create int WDnr1 = -1; before the test and assign like: WDr1 = i; (well, if you plan to use it).
And, well, I have not understood if you have a question there.
On the last message, the [I@45fe3b is the result we get when we do a System.out.println(spcAr) when spcAr is an array of int. But Processing is supposed to print that OK. Ah, no, it works only with println(), not with print().
Thanks for helping, now i have a second problem. ( see previous post for full script). I've inserted this to check if there are multiple vowels next to each other:
Code:
if ((WDnrA1.contains(x) == true) && (WDnrA1.contains(x+1) == true) && (WDnrA1.contains(x+2) == true)
&& (WDnrA1.contains(x+3) == true) && (WDnrA1.contains(x+4) == true)){
println ("vijf klinkers naast elkaar = "+ WDstA1.get(x)+ WDstA1.get(x+1) + WDstA1.get(x+2) + WDstA1.get(x+3) +
WDstA1.get(x+4));
etc.....
this script results into this
Code:
goerie de poerie
[0] 'g'
[1] 'o'
[2] 'e'
[3] 'r'
[4] 'i'
[5] 'e'
[6] ' '
[7] 'd'
[8] 'e'
[9] ' '
[10] 'p'
[11] 'o'
[12] 'e'
[13] 'r'
[14] 'i'
[15] 'e'
woord klinker(s) = [o, e, i, e]
Positie klinker = [1, 2, 4, 5]
1array nummer o letter potitie 0
2array nummer e letter potitie 1
twee klinkers naast elkaar = ei
4array nummer i letter potitie 2
een klinkers naast elkaar = i
5array nummer e letter potitie 3
"twee klinkers naast elkaar = ei" means two vowels next to each other, but it must be oe