May 14, 2022

Stock trading application source code | java code | how to get stock value of share through java code | yahoo finance

/**
 * 
 */
package com.proximotech.nyseticker.service;

import java.io.IOException;
import java.math.BigDecimal;

import org.springframework.stereotype.Service;

import com.proximotech.nyseticker.model.StockWrapper;

/**
 * @author apple
 *
 */
@Service
public class StockService {

public StockWrapper findStock(final String ticker) {
try {
return new StockWrapper(yahoofinance.YahooFinance.get(ticker));
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}

public BigDecimal findPrice(final StockWrapper stock) throws IOException {
return stock.getStock().getQuote(true).getPrice();
}
}


Download application from git

https://javabelazy.blogspot.com/p/office.html

May 07, 2022

its never too late to try to achieve your dream | Motivational story

its never too late to try to achieve your dream!
its never too late to learn some thing new!
its never too late to experience something beautiful!
its never too late to keep on trying, no matter how may times you fail.
its never too late...

There was a man, born a long time ago, 
Bought up in a simple middle class family,
his father was a long family man and use to work in his farm.
Lost his father when he was 5 years old,
he was too young to realize what had happened.
At the age of seven he learned to cook, to feed his younger siblings and his mom away working.
At the age of ten he began working as a helper in the farmland and then took up job painting horse carriages,
At the age of thirty he established a ferry boat company the ferry was an instant success, and the venture failure.
Lost many jobs than finally started running a service station that got failed after six years of works.
Many business failed, Almost bankrupt.
Decided to sell his recipe to various restaurant,
Rejected for 1009 times
At age of 65 he tasted sucess as KFC
Founder of Kentucky Fried Chicken.
He is colonel sanders

Dont give up keep going on..




Facebook comments