title: Trouble while taking input and passing into getters and setters
body: <p>I am facing trouble while i am trying to pass String followed by integer and then double value to getter and setter and printing the result inside main method.</p>
  
  <p>Here is the code::</p>
  
  <pre><code>System.out.println("Enter Name Height Weight Of Dog: ");
  z = sc.nextLine();
  x1=sc.next();
  x = Integer.parseInt(x1);
  y1=sc.next();
  y = Double.parseDouble(y1);
  
  d1.setName(z);
  name = d1.getName();
  d1.setHeight(x);
  height = d1.getHeight();
  d1.setWeight(y);
  weight = d1.getWeight();
  </code></pre>
  
  <p>}</p>