Challenges are what make life interesting
Overcoming them is what makes life meaningful I am enjoying Challenges
Pages
(Move to ...)
Home
empty field validation in android
Contact Us
Tomcat Server not starting with in 45 seconds
Visit More Sites
All
All Page Links
▼
Monday, 30 November 2015
java junit4
@Ignore("ignore this test")
@AfterClass
@BeforeClass
@After
@Before
@Test (expected =ArithmeticException.class)
@Test
Sunday, 29 November 2015
How get BigdecimalEnum value in java
package com.org.vipul;
import java.math.BigDecimal;
public class BigdecimalEnum {
public static void main(String[] args) {
System.out.println(Vat.FIVE.getValue());
}
public enum Vat {
ONE(new BigDecimal("1")), TWO(new BigDecimal("2")), THREE(
new BigDecimal("3")), FIVE(new BigDecimal("5"));
private final BigDecimal value;
Vat(BigDecimal val) {
value = val;
}
public BigDecimal getValue() {
return value;
}
}
}
‹
›
Home
View web version