I am reading the serial buffer with readLine() method. The string returned by readLine() is in the format \"str1 : str2\". In a while loop when I use readLine() number of ti
System.out.format("%30s : %s", str1, str2);
Will print the first string with a fixed width of 30 characters.