user65285: I am using BitcoinJ lib for creating wallet and transaction.But now I want to know the confirmation count.So, is there any method which can give confirmation count

user63569: Use Wallet.getTransactions(boolean). This returns a Set<Transaction>:
boolean includeDeadTransactions = true;
Set<Transaction> transactions = wallet.getTransactions(includeDeadTransactions);

for (Transaction t : transactions) {
    //Do something
}

You will get all transactions you can looping over so you get each transaction details. 

65285: <p>I am using BitcoinJ lib for creating wallet and transaction.But now I want to know the confirmation count.So, is there any method which can give confirmation count</p>
 63569: <p>Use <code>Wallet.getTransactions(boolean)</code>. This returns a <code>Set&lt;Transaction&gt;</code>:</p>

<pre><code>boolean includeDeadTransactions = true;
Set&lt;Transaction&gt; transactions = wallet.getTransactions(includeDeadTransactions);

for (Transaction t : transactions) {
    //Do something
}
</code></pre>

<p>You will get all transactions you can looping over so you get each transaction details. </p>
