Java Examples
.
Getting historical stock quotes using yahoofinance API
›
Question: How to get historical stock quotes using yahoofinance API? Answer: Here is an example on how to get historical stock quotes using ...
How to get a single StockQuote using yahoofinance API?
›
Question: How to get a StockQuote using yahoofinance API? Answer: Here is a simple example on how to get a single quote using the Java Finan...
Converting BigDecimal to an int
›
Question: How to Convert a BigDecimal to an int? Converting BigDecimal to Integer Answer: bigdecimal.intValue(); Code: import java.math.* ...
How to multiply a BigDecimal by an integer in Java?
›
Question: How to multiply a BigDecimal by an int in Java? Multiplication with BigDecimals. Answer: bigdecimal.multiply(new BigDecimal(int))...
How to test if a BigDecimal is less then zero?
›
Question: How to test if a BigDecimal is less then zero? How to compare BigDecimal to an int? Answer: number.compareTo(BigDecimal.ZERO) Cod...
How to write a java program that will ask for the length and width of a rectangle and then multiply them together and create a rectangle out of astrisks
›
Question: How to write a java program that will ask for the length and width of a rectangle and then multiply them together and create a rec...
Find closest value to 0 for Float in Java?
›
Question: Find closest value to 0 for Float in Java? Answer: Float.MIN_VALUE Code: public class MyFloat { public static void main ( ...
›
Home
View web version