1

In java I have to place Control + A character to separate fields . So how can I append or concat Control + A character in StringBuffer using java.

agarwal_achhnera
  • 2,582
  • 9
  • 55
  • 84

1 Answers1

6
final char ctrlA = '\u0001';  

happens to be unicode-16, char 1

edit: if you want a more 'automated' method you could use a StringBuilder as you are reading in the fields. someone already explained this here: https://stackoverflow.com/a/152677/4197697

rogerdpack
  • 62,887
  • 36
  • 269
  • 388