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,516
  • 8
  • 53
  • 77

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
  • 56,766
  • 33
  • 241
  • 361