Proper use of capital letters and punctuation would really be appreciated here. You sound like a little boy whining.
You keep saying you want to store A character, and then you say that the character is 0999999999.
Well, I have news for you. 0999999999 is not a character. It is a string.
If you want to ask about how to read characters, and store them in an array AS A string, then say that. Don't keep referring to 0999999999 as a character.
I've shown you how to wait for and read one character into one particular buffer called "inChar", and make a decision based on the value of that character.
It isn't a great leap of imagination to read in further characters and read them into other buffers.
It's been a while since I looked at the IDE supplied examples, but I'm pretty sure there's (at least) one on serial comms, and another on arrays.
I'd start with those.
The problem looks to be that you're never printing the value of "inData" when it has some dta a in it.
Move the final "print" inside the "started && ended" condition, but before you reset the string.
The problem?
You didn't open the serial monitor, you didn't select the correct line speed, you didn't compile the code, you didn't upload the code, you didn't hit "send"...
It works, perfectly.
<jvvmv,fff> is easier to deal with. Save all the data, then use strtok() to parse into jvvmv and fff.
With two start and end markers, you need two arrays, and you need to keep track of which array to store a character in. Does f go in the first buffer or the second buffer?
you need to start thinking for longer than 20 minutes at a time, and working through some of the examples in the IDE.
I believe I've said this before, but it's worth repeating.
(Hint: you haven't written anything called "sendCommand" yet.)
import processing.serial.*;
Serial myPort; // The serial port
int xPos = 1; // horizontal position of the graph
void setup () {
// set the window size:
size(400, 300);
// List all the available serial ports
println(Serial.list());
// I know that the first port in the serial list on my mac
// is always my Arduino, so I open Serial.list()[0].
// Open whatever port is the one you're using.
myPort = new Serial(this, Serial.list()[0], 9600);
// don't generate a serialEvent() unless you get a newline character:
myPort.bufferUntil('\n');
// set inital background:
background(0);
}
void draw () {
// everything happens in the serialEvent()
}
void serialEvent (Serial myPort) {
// get the ASCII string:
String inString = myPort.readStringUntil('\n');
if (inString != null) {
// trim off any whitespace:
inString = trim(inString);
// convert to an int and map to the screen height:
float inByte = float(inString);
inByte = map(inByte, 0, 1023, 0, height);
// draw the line:
stroke(127,34,255);
line(xPos, height, xPos, height - inByte);
// at the edge of the screen, go back to the beginning:
if (xPos >= width) {
xPos = 0;
background(0);
}
else {
// increment the horizontal position:
xPos++;
}
}
}