title: Convert decimal to whole number in java
body: <p>I need to separate the whole number and decimal value. Representing both values as whole numbers.</p>
  
  <p>For example, 1.24 would output:</p>
  
  <p>Whole number: 1
  Decimal: 24 </p>