title: Cucumber Java - How to use returned String from a step in next step?
body: <p>I need to automate some webservices, i create some methods for that and i want to use Cucumber for that but i can't figure how to use returned value in next step.</p>
  
  <p>So, i have this Feature:</p>
  
  <pre><code>Feature: Create Client and place order
  
    Scenario: Syntax
      Given I create client type: "66"
      And I create for client: "OUTPUTVALUEfromGiven" an account type "123"
      And I create for client: "OUTPUTVALUEfromGiven" an account type "321"
      And I want to place order for: "outputvalueFromAnd1"
  </code></pre>
  
  <p>and i have this Steps:</p>
  
  <pre><code>public class CreateClientSteps {
  
  
  @Given("^I create client type: \"([^\"]*)\"$")
  public static String iCreateClient(String clientType) {
  
      String clientID = "";
      System.out.println(clientType);
      try {
        clientID = util.createClient(clientType);
      } catch (IOException e) {
          e.printStackTrace();
      }
      return clientID;
  
  }
  
  @And("^I create for client: \"([^\"]*)\" an account type \"([^\"]*)\"$")
  public static String createAccount(String clientID, String accountType) {
  
  
      String orderID = "";
      try {
          orderID = util.createAccount(clientID,accountType);
      } catch (IOException e) {
          e.printStackTrace();
      }
      return orderID;
      }
  }
  </code></pre>
  
  <p>It's any way to use the returned values from step to step?</p>
  
  <p>Thank you!</p>