Learn to code in Java and improve your programming and problem-solving skills. You will learn to design algorithms as well as develop and debug programs. Using custom open-source classes, you will write programs that access and transform images, websites, and other types of data. At the end of the course you will build a program that determines the popularity of different baby names in the US over time by analyzing comma separated value (CSV) files.
After completing this course you will be able to:
1. Edit, compile, and run a Java program;
2. Use conditionals and loops in a Java program;
3. Use Java API documentation in writing programs.
4. Debug a Java program using the scientific method;
5. Write a Java method to solve a specific problem;
6. Develop a set of test cases as part of developing a program;
7. Create a class with multiple methods that work together to solve a problem; and
8. Use divide-and-conquer design techniques for a program that uses multiple methods.

Avaliações

CC

Great course, it does help to have some background knowledge in another language but it is doable without any. goes through some fun projects but also some work usable items such as CSV parsing.

DN

Aug 08, 2016

Filled StarFilled StarFilled StarFilled StarFilled Star

You need a little more experience in coding that just the first course, or try not to leave everything by the end of the week(as I did) to find what you need for the assignments. Great course !

Na lição

Strings in Java

This module begins with a short presentation from Raluca Gordân, an assistant professor in Duke University’s Center for Genomic and Computational Biology, about an important problem genomics scientists encounter regularly: how to identify genes in a strand of DNA. To tackle this problem, you will need to understand strings: series of characters such as letters, digits, punctuation, etc. After learning about Java methods that work with strings, you will be able to find genes within a DNA string as well as tackle other string related problems, such as finding all of the links in a web page. By the end of this module, you will be able to: (1) Use important methods for the Java String class; (2) Use conditionals, for loops, and while loops appropriately in a Java program; (3) Find patterns in the data represented by strings to help develop the algorithm for your program; (4) Understand the importance of designing programs that keep different data processing steps separate; (5) Use the StorageResource iterable for this course to store some data for further processing; and (6) Rely on Java documentation to better understand how to use different Java packages and classes.

Ministrado por

Owen Astrachan

Robert Duvall

Andrew D. Hilton

Susan H. Rodger

Transcrição

Hello and welcome back. You are going to be working with strings that represent DNA, solving problems like searching for genes in them. This problem is a great one to learn on because even though we're going to start with a greatly simplified version of it, it's an important problem with real-world applications. Of course, the lessons you will learn about working with strings and programming in general will help you far beyond this problem domain. Whatever sorts of problems you want to solve, strings are likely to come up in them in one way or another, HTML, email or really anything that is text that is represented as a string. You're also going to learn some other important lessons as you work on these problems like how to do math in Java. Of course, math is also ubiquitous in programming sense, everything is a number. Perhaps most importantly, you will get more practice developing and implementing algorithms with the seven steps. Before we dive into DNA related problems, we need to give you a bit of domain knowledge, some terms and concepts related to working with DNA. Here is a string that could represent some piece of DNA. You will see that it's made up of four letters A T C and G. Each of these represents one nucleotide which are the basic building blocks of DNA. Three nucleotides together make a codon which each describe one amino acid. The ATG codon shown here is special in that it indicates the start of a gene. Accordingly, it's called the start codon and the TAA codon is also special in that it indicates the end of a gene, so it's called the stop codon. There are a couple other stop codons but for now, we're only going to think about TAA. Everything between and including these two codons makes up one gene. The first problem you're going to work on is finding a gene in a string which represents DNA. That is, you want to write a program which takes a string like this one and gives you all the text between it and including the start codon ATG and the stop codon TAA. You're going to start with a greatly simplified version of this problem, just finding those letters and all the text between them. You will not worry about the fact that real genes must be multiples of three in length because they're made up of codons or that there are some other stop codons or a few other complexities to start with. As you master more string and algorithm concepts, you'll add features to your program making it more realistic with each step. As always, the first thing you want to do is work on an instance of the problem yourself. Let's take this DNA sequence and find the first gene in it. Let's find the start codon, there it is. Now, let's start looking after it to find the stop codon and we find it right here. That means that we want to take all this text representing the nucleotides in this region as our answer, the gene that we found. Now that we have worked an example, we should write down what we just did. First, I found the first occurrence of ATG, then I started looking after the ATG for TAA. Last, I took all the letters between and including them as my answer ATG, ATT, TTC et cetera, all the way to TAA. Okay, now that we wrote down what we did for that specific problem, we want to generalize it. Why did we look for ATG? We always want to look for it, that's the start codon. What about TAA after ATG? We always want to do that too, that is the stop codon and taking all the letters between and including them, we always want to do that too. The only thing that isn't really general here is the specific string we wrote down as our answer which was more of a descriptive note to ourselves than anything else. Now that we have a general algorithm, we'd like to turn it into code but we need to learn some new Java concepts first. How do we find ATG in a string? For that matter, how do we even represent or talk about the position of something in a string and how would we get all the letters in a particular range in a string? You'll learn about these concepts then you'll be ready to turn this algorithm into code. Thank you.