krishna kumar.s

Greenhorn
+ Follow
since Oct 01, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by krishna kumar.s

I am new to JEE , I am using Eclipse . I have created a servlet while compiling the servlet I got an error saying "Launching Tomcat v8.0 at local host Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I am able to start tomcat by using "startup.bat" if I visit http://localhost:8080/ the page says server is up and running .Please help me to resolve the issue.

8 years ago
For a competitive programming problem I need to get a number which has 100000 digit as input and find next palindrome , I have coded half of the logic, for another half I need to add one(1) to the half portion of 500 digit string . I used some logic and it did not work out , if I use biginteger "TLE" error occurs. So please let me know a logic. To add just one to a String and get the result.
8 years ago
you can try this
public class Testlong {
public static int multiply(int a, int b) throws Exception

{


return Math.multiplyExact(a,b);

}
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub

int r=multiply(-32768,65536) ;

}

}
8 years ago
I want all possible combinations of 9 digit numbers which uses only 123456789 with a condition same number should not repeat.
11 years ago
I want to create combination of 9 digit numbers using 9 numbers . for example 123456789,213456789, 312456789 etc . To solve a puzzle I need them. numbers should not repeat.
11 years ago
Can anybody tell me step by step approach to create a combination of numbers using 123456789 . Any link or algorithm would be helpful. I am a begginer in Java your input is highly appreciated.
11 years ago
Hi
Anayonkar Shivalkar and Winston Gutkowski thanks a lot for your input .

11 years ago
I got it the Hash set only takes unique values
11 years ago
The below code produces the unique numbers if numbers 2 to 100 are powered by 2 to 100 i.e 2 pow 2 2 pow 3..... 100 pow 100 . But i am not understanding how the code eliminates duplicates .
11 years ago
I am new beginner to Java , can naybody suggest a blog or site that gives some exercises /problems for users , so that they can resolve or code the problem and sppedup their learning.
12 years ago
I am begginer to java , In learning phase . My goal is to write java applications . Can anybody suggest what are the concepts I need to learn. Right now I am learning Applets . CAn anybody please give road map ,like what needs to be learned ? stepwise lesson plan would be helpful.
12 years ago
To solve one of the puzzles I need to find the multiplication of a number which yields <2 .I used below code which takes 8hrs adn does go upto 10000, can anybody suggest a better efficient method for multiplication?
12 years ago
Thanks for all the help, The issue is resolved , i used code button and tag " "at the begging as well as end
12 years ago
Thanks a lot, The problem is very simple i used one method to get adundant numbers . Now my modified code is throwing Exception in thread "main" .I am sorry that giving difficult in reading , i am new to programme and learning myself , first i am trying with solving project euler (i have completed 25 problems and moved to level 1)

12 years ago
I am trying to solve problem 23 of project euler "http://projecteuler.net/problem=23" . The problem is i have to find sum all numbers that could not be written as sum of two abundant numbers.

The logic i used was ,1) find all the abundant numbers below 28123(this is the upper limit as mentioned in problem) store them in array add num+next and find whether it is equal to value any of value of list containing 1-28123. if eqauls remove the number . but the below programme throws an exception.

can anybody help?, is the logic correct?
Exception in thread "main" java.lang.NullPointerException
at Exercise23.main(Exercise23.java:44)
12 years ago