Skip to content

Instantly share code, notes, and snippets.

View rokon12's full-sized avatar
🎯
Focusing

A N M Bazlur Rahman rokon12

🎯
Focusing
View GitHub Profile
@rokon12
rokon12 / Calculator.scala
Created August 29, 2014 19:59
Command line scala postfix expression evaluator Input: "1 2 + 3 4 5 - - * 6 7 8 - * /" * Output: (((8 - 7) * 6) / (((5 - 4) - 3) * (2 + 1))) = -1 * */
package calculator
import java.util.Stack
/**
* Created by Bazlur Rahman Rokon on 8/29/14.
*/
object Calculator {
package com.rokonoid.demo;
public abstract class Account {
private double initialBalance;
private double interest;
private int transection;
private double bankFee;
public Account(double initialAccount) {
this.initialBalance = initialAccount;
@jelies
jelies / AutowiringSpringBeanJobFactory.java
Last active January 24, 2024 10:43
Quartz (2.1.6) java config with spring (3.2.1). Using a SpringBeanJobFactory to automatically autowire quartz classes.
package com.jelies.spring3tomcat7.config.quartz;
import org.quartz.spi.TriggerFiredBundle;
import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.scheduling.quartz.SpringBeanJobFactory;
/**
* This JobFactory autowires automatically the created quartz bean with spring @Autowired dependencies.
@rokon12
rokon12 / FirstNonRepeatedWordFinder.java
Created September 10, 2012 12:47
Problems # 1: Suppose you have a plain text file. Write a simple java program to find out the first non-repeated word in the file.
package com.therapjavafest.puzzle;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Map;