Welcome. And, hey, everyone has to start somewhere. This forum is a good place to start. You'll see posts from everyone from total newbies to experienced programmers. And "experienced" means something different to everyone. For example, I've been programming in C++ and some Java for 10-15 years, but I still don't know a thing about Objective-C or programming for the Mac. One of these days I'll sit down and learn.
I think there are two "parts" to learning about programming. One is the entire concept of programming in the first place, and has nothing to do with the specific language you're learning. Some people "get" it faster than others. And as computers and operating systems continue to advance, there's more to "get" now than there was before. Back in the day, they taught flowcharts, which seems outdated now, but the concepts are still sound. Understand the concept of a computer program performing things step by step. Understand the concepts of functions, variables, conditionals, loops. The second part is, of course, the specifics of the language you're learning.
Use whatever language works best for you to understand those concepts. When I grew up, it was BASIC on an Apple ][. For you, since you're learning Java, that could be it. But don't be afraid to try other languages -- maybe look at Python? -- because the more you learn about the commonalities between the languages, the more you are learning about programming and less about the language.
A couple of things, though. People on this forum don't like it when people are obviously being lazy, or posting homework assignments hoping that others will write the code for them. I'm certainly not accusing you of this, but if you do have questions, try your best to find the answers on your own. Google is a great help. Read the docs (Java is FULL of docs). Try some examples. I find this is the best way to learn -- by doing, trying, failing, learning, trying again. If you're still having difficulty, post a message and indicate what you've tried, and we'll do our best to help you.
I'm paid pretty decent money to program C++ for a living, and you know what? I Google things dozens of times a day when I forget what a function is called or need to see an example of how a certain chunk of code is supposed to be written.
I hope that's helpful!