Can you give me a Programming problem in java [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this questionI am learning j开发者_StackOverflowava on my own. I have books to read. but i feel i am not really coding anything significant . Can you guys give me any programming problem that would really help me get more practical experience rather than a theoretical experience with java ?
Appreciate it.
silverkid
Many people learn new languages by solving problems from Project Euler.
To give you some examples, here are the 10 first problems in the project:
- Add all the natural numbers below one thousand that are multiples of 3 or 5.
- Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed four million.
- Find the largest prime factor of a composite number.
- Find the largest palindrome made from the product of two 3-digit numbers.
- What is the smallest number divisible by each of the numbers 1 to 20?
- What is the difference between the sum of the squares and the square of the sums?
- Find the 10001st prime.
- Discover the largest product of five consecutive digits in the 1000-digit number.
- Find the only Pythagorean triplet, {a, b, c}, for which a + b + c = 1000.
- Calculate the sum of all the primes below two million.
I just wanted to put an idea out here for you from my own experiences.
Whilst studying I was given the task of creating a Client/Sever chat application, I found it really interesting and there are plenty of obvious ways you can extend the program to better your ability.
For instance, start with a basic server and client simply sending text to one another. And then advance to having users (from a database perhaps) who have to log in to the application. You can make it as simple and as complicated as you wish.
Hope this helps.
Tony
Try this:
Martyr2’s Mega Project List
Java exercises: http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=java+exercise
Java examples: http://www.exampledepot.com/
What area of Java programming are you interested in? Web, device, desktop?
Sure Why Not, Here it is : http://download.oracle.com/javase/tutorial/
精彩评论