Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Java methods

Hello I need help with a project for my Computer programming class, professor kind of just threw the text book in our face and told us to do a project over spring break.

Save the program in a file named Letter (immediately after the word Letter, no space, type your first and last initials in upper case type in the class header and when you save it, for example, LetterDH In the main method you will place a method call to the Grace Hopper method, then have the program produce 2 blank/empty output lines, then call the Ada Lovelace method Then Create a method for a letter to Grace Hopper with: The current date in a output statement The text Dear Grace Hopper: in an output statement. (first greeting) Professor common paragraph (to be used in both letters) Create the following Professor common paragraph (each line is a separate statement) I can't tell you how excited I am. I love studying computer programming. Your common paragraph (two meaningful sentences, each in a different statement. End with one line in one statement (the closing) saying Sincerely yours, followed by just your first name, on the same line in one statement.
For example, Sincerely yours, Douglas.

Can someone just break this down into English for me, we went from binary, to computer history and he just leaves us with programming while not showing us how to do any of it. If i get a gist of it I'll be able to do it on my own.

Simon Coates
Simon Coates
28,694 Points

Not sure this is the kind of stuff you should be posting to treehouse and if trying to get help online, you should probably show that you're actually tried. Write a class, create a main method. create a method to output your letter (can be static, or will require you create an instance of your Letter class) using calls to system.out.println in the method body. You haven't specified where the ada lovelace, grace hopper methods come from - which class, is the method static? This affects how you call them. You could cover tutorials for the complete theory of everything involved in about an hour , or could probably improvise something in about 5/10 minutes just on observation. But it's not going to help you to just churn out the task (which sounds like about 15 lines of text and some of this is blank space or boilerplate). It's too simple a program for avoiding the concepts to be a strategy. Once you get the concepts, this is probably about 45 seconds of actual coding.