/* * A simple program to illustrate arrays: declaration, creation, and use. * Reads two DNA sequences and finds SNPs (Single Nucleotide Polymorphism and pronounced as "snips"). * SNPs are saved in anotyher aray. * * To learn more about genome, DNA and related material visit: * * http://www.genomenewsnetwork.org/resources/whats_a_genome/Chp1_1_1.shtml * * For a tutorial on SNPs visit: * * http://www.ornl.gov/sci/techresources/Human_Genome/faq/snps.shtml * * Author: Aditya Mathur * Original: September 13, 14, 2008 * For use in: CS 190M. */ import java.util.Scanner; class BioInformaticsApp{ // Obtain DNA sequence from inut source. static String getDNASeq(char[] DNA, Scanner s){ int bases=0; System.out.print("Next DNA sequence please:"); String DNAString=s.next(); // Get a DNA sequence. while (bases