Please help with serial port string

I have been working on a project and have come across a programming problem. I have looked at many forums and can not find a solution for what I am trying to accomplish. I have six led arrays and three different sensors I am getting my serial information from. here is the part of the program I am having troubles with

for(j = 0 ; j < 6 ; j++)

{

analogWrite(LED[j],255);
delay(100);
analogWrite(pcellgnd, LOW); //A0 Ground
analogWrite(ptrangnd, HIGH); //A1 Ground
analogWrite(uvptrangnd, HIGH); //A2 Ground
delay(3000);
Serial.print("A0= ");
Serial.println(1024-analogRead(A0)); // PRINT VALUES
delay(100);
analogWrite(LED[j],0);
}
for(j = 0 ; j < 6 ; j++)
{

analogWrite(LED[j],255);
delay(100);
analogWrite(pcellgnd, HIGH); //A0 Ground
analogWrite(ptrangnd, LOW); //A1 Ground
analogWrite(uvptrangnd, HIGH); //A2 Ground
delay(3000);
Serial.print("A1= ");
Serial.println(1024-analogRead(A1)); // PRINT VALUES
delay(100);
analogWrite(LED[j],0);
}
for(j = 0 ; j < 6 ; j++)
{

analogWrite(LED[j],255);
delay(100);
analogWrite(pcellgnd, HIGH); //A0 Ground
analogWrite(ptrangnd, HIGH); //A1 Ground
analogWrite(uvptrangnd, LOW); //A2 Ground
delay(3000);
Serial.print("A2= ");
Serial.println(1024-analogRead(A2)); // PRINT VALUES
delay(100);
analogWrite(LED[j],0);
}

On the serial plotter I can get: A0=xxx A0=xxx A0=xxx A0=xxx A0=xxx A0=xxx
A1=xxx A1=xxx A1=xxx A1=xxx A1=xxx A1=xxx
A2=xxx A2=xxx A2=xxx A2=xxx A2=xxx A2=xxx

I was wondering if there would be an easy way to get???
Yellow A0=xxx White A0=xxx Red A0=xxx UV A0=xxx Blue A0=xxx Green A0=xxx
Yellow A1=xxx White A1=xxx Red A1=xxx UV A1=xxx Blue A1=xxx Green A1=xxx
Yellow A2=xxx White A2=xxx Red A2=xxx UV A2=xxx Blue A2=xxx Green A2=xxx

I can get what I need if I write it out in a longer form but for some reason it will not upload it to my Arduino unless I shorten the code up.

Create an array with the 6 colour names and add a line to your code like this

   delay(3000);
     Serial.print(colourName[j]);  // <-------NEW
     Serial.print("A2= ");
     Serial.println(1024-analogRead(A2));            //  PRINT  VALUES
     delay(100);

…R

EDIT to add closing ) as pointed out by @Chrisbee in Reply #5

I was wondering if there would be an easy way to get??? Yellow A0=xxx White A0=xxx Re

Why do you want to print A0 in front of every value?

PaulS: Why do you want to print A0 in front of every value?

Why shouldn't he if he wants to? :)

...R

Robin2: Why shouldn't he if he wants to? :)

...R

No reason not to. I suspect, though, that OP has some other requirement, like reading a different pin with each color.

Robin2:
Create an array with the 6 colour names and add a line to your code like this

     delay(3000);

Serial.print(colourName[j];  // <-------NEW
    Serial.print("A2= ");
    Serial.println(1024-analogRead(A2));            //  PRINT  VALUES
    delay(100);





...R

But of course you really meant to type…

Serial.print(colourName[j]);  // <-------NEW now with closed ()

Why do you have to wait 5 minutes to make an edit… typed while waiting for 5 mins to passsssssssssssssss… I quoted the wrong text in my post.

Chrisbee: But of course you really meant to type...

Thanks for spotting that. I have corrected my Reply

Why do you have to wait 5 minutes to make an edit.......... typed while waiting for 5 mins to passsssssssssssssss................... I quoted the wrong text in my post.

This is a real PITA but it is there to frustrate spammers. It goes away after you make 100 posts IIRC.

...R