title: How to start and stop an Amazon EC2 instance programmatically in java
body: <p>How do i start and stop an amazon <a href="http://aws.amazon.com/ec2/">EC2</a> instance programmatically using aws-sdk in java? </p>
  
  <p>Any helps are greatly appreciated as I have spent a day while trying to sort this out.</p>