Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you give me a Programming problem in java [closed]

Tags:

java

I am learning java 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

like image 974
silverkid Avatar asked Dec 02 '22 04:12

silverkid


1 Answers

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.
like image 152
aioobe Avatar answered Dec 05 '22 09:12

aioobe