Skip to content

Instantly share code, notes, and snippets.

View andrewmd5's full-sized avatar
💭
🖤

Andrew Sampson andrewmd5

💭
🖤
View GitHub Profile
@andrewmd5
andrewmd5 / CVSFormatter.java
Last active August 29, 2015 13:57
Cleans out a paypal cvs document to only leave what you received
public class CVSFormat {
public static void main(String[]args)throws IOException {
// construct temporary file
File inputFile = new File("statements.csv");
File tempFile = new File(inputFile + "temp.csv");
BufferedReader bufferReader = new BufferedReader (new FileReader("statements.csv"));
PrintWriter printWriter = new PrintWriter(new FileWriter (tempFile));
@andrewmd5
andrewmd5 / IntegerToEnglish.java
Created February 3, 2014 07:34
Translate an standard arabic integer into an english word
import java.util.Scanner;
import java.util.logging.Logger;
public class IntegerToEnglish {
private static final String[] LARGE = { "", "", " Hundred", " Thousand",
" Million", " Billion" };
private static String length;
private static final Logger logger = Logger
.getLogger(IntegerToEnglish.class.getName());
private static int number;