unexpected char: '\'
in
Programming Questions
•
1 years ago
Hi everyone,
So...firstly, I just started programming, so please excuse me for my stupidity.
In around 8 hours I have to hand in my program which shows me the error above all the time.
Two people (me excluded) have looked it through and we just can't find the problem.
I'm not sure, if you can help....and what you need, if you can...
The viriables are in german, but it shouldn't really be a problem, right O.o
There are two classes and one enum...If you need the whole code, just tell me...
thank you
Tini
So...firstly, I just started programming, so please excuse me for my stupidity.
In around 8 hours I have to hand in my program which shows me the error above all the time.
Two people (me excluded) have looked it through and we just can't find the problem.
I'm not sure, if you can help....and what you need, if you can...
The viriables are in german, but it shouldn't really be a problem, right O.o
- Produkt[] ProduktListe(){
- Produkt[]einkaufsliste = new Produkt[EINKAUFSLISTEN_LAENGE];
- boolean[] gelisteteProdukte = new boolean [Produkt.length-1];
- int indexProdukte = 0;
- while(indexProdukte < EINKAUFSLISTEN_LAENGE){
- //the int line below is the line, that's marked...
- int gewünschteProdukte = int(random(0, Produkt.length-1));
- if(gelisteteProdukte[gewünschteProdukte] == false){
- einkaufsliste[indexProdukte] = Produkt[gewünschteProdukte];
- gelisteteProdukte[gewünschteProdukte] = true;
- indexProdukte++;
- }
- }
- return einkaufsliste;
- }
There are two classes and one enum...If you need the whole code, just tell me...
thank you
Tini
1