I have this code below:
System.out.println(transaction.getAmount()); 
that returns the amount in this form: 100.0 (which is double).
How can I convert it into this form: 10000 ? 
Multiply by 100 and get the integer value:
 System.out.println(Double.valueOf(transaction.getAmount() * 100).intValue());
Another option is to use a String.format()
double amount = transaction.getAmount();
System.out.println(String.format("%1$,.2f", amount).replace(".", ""));
    This is how you do it:
int x;
double y = transaction.getAmount() * 100.00;
x = (int)y;
System.out.println(x);
See? You do explicit type casting to get your result in int, because double is a larger data-type than int. 
System.out.println((int)(transaction.getAmount() * 100));