All pastes #479039 Raw Edit

Digitalis

public java v1 · immutable
·published 2007-05-09 14:33 UTC
rendered paste body
public class DilberMain {   /** Creates a new instance of DilberMain */	public static void main(final String[] args) {	   	//String DNA="",fileName,source;		int hs,win;        	String[] inputs = new String[5];	        win = Integer.parseInt(JOptionPane.showInputDialog("Enter the size of the window"));		hs = Integer.parseInt(JOptionPane.showInputDialog("Enter the size of the hash table"));        	SequenceHasher sh = new SequenceHasher(hs);		for(int x=0; x < 5; x++) {			fileName = JOptionPane.showInputDialog("Enter the DNA sequences file");			input[x] = readFile(fileName);	       		}	} 	private String readFile(string fileName) {		string output="";     		try {			Scanner fileIn = new Scanner(new File(fileName));  			output = output+fileIn.nextLine();     		} catch(FileNotFoundException e) {	        	System.out.println(e);    		}			return output; 	}}