Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set values dynamically in a command set

 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My aim is to send a few sets of commands to an embedded device via bluetooth. Ideally, those commands look like:



I want to dynamically set the values of NUM and DEV. One way is creating this from scratch (by attaching to StringBuffer) each time it executes. Is there any proper way of implementing?

Can we use placeholders like we do in reporting APIs?

Thanks in advance!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic