Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Jay Shukla

Ranch Hand
+ Follow
since Jun 08, 2008
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 Jay Shukla

Hi All,

In Java HashMap each bucket is assigned a unique identifier and that identifier is the hashcode of the key.
What i means is if the key's hashcode is say 236 then HashMap bucket will find bucket whose identifier is 236 and put key-value pair
in that.

Could anyone please let me know if my above understanding is correct?

If above correct then -

All key value pair with same hashcode will be present in same bucket they might not be equal using equal() method.

Could anyone please confirm on above?

Thanks in Advance.
7 years ago
Hi,

Thanks for the reference link.

I tried the suggested link but it takes me to the Oracle site. But i able to find the content of Chapter 3 of Effective Java.

Do i need to register to Oracle site or is there any direct link available for Chapter 3?

Thanks.
7 years ago
Hi All,

Could anyone please let me know the use of hashcode() method in realworld application?

I could know following things from internet about hashcode method.

1. It is the mapping of memory address of an object to an integer value.
2. Hashtable, HashMap and HashSet make use of hashcode() method.

But still my understanding about use of hashcode() method is not clear.

Could anyone please explain or let me know any reference / link available for the exact context of hashcode() method?

Thanks in Advance.
7 years ago
Hi Jeff / Campbell.

Thanks for reply. I want to override hashcode() method of collection and want to assign as custom hashcode value to a string based on their alphabetical order.

The Requirement is -

I have a collection of object and need to sort them based on the Fullname (String value) property of each object. I would like to achieve by overriding hashcode() method of collection.
Because objects are collection of vector.

Thanks.
7 years ago
Hi All,

Could anyone please let me know how to generate hashcode for string based on the their alphabetical order?

I have checked about generating hashcode of string but its based on direct method of generating gethashcode method.

Could anyone please let me know how to override hashcode method to get the above requirement fulfilled.

I think i might need to use combination of hashcode and equals method.

Could anyone please help me with some kind of hint in this regard?

Thanks in Advance.
7 years ago
Hi Peter,

Thanks for reply.

Could you let me know how to set default project type from Preference.

Thanks.
Thanks Peter for reply !!!

It worked fine.
8 years ago
Hi Jeanne,

I have done the changes suggested by you.
But it still shows the same message.

Could you please help me?

Below is the conbtent of the eclipse.ini.

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-vm
C:/Program Files (x86)/Java/jdk1.5.0_22/bin
8 years ago
Hi All,

I have installed Tomcat 6.0 and when i tried to start it, its working correctly.
But when i tried to configure Tomcat 6.0 with Eclipse Galileo IDE, it does not allow me (i.e Disables the "Finish" button), but when i try to select other versions of Tomcat like 5.5 it allows me, but i want to configutr Tomcat 6.0.x as it is compatible with Java 5.0 with Eclipse.

I have attached the screenshot for the same.

Could anyone please helpo me resolving this issue?
Hi Jeanne,

Thanks for your reply.

Below is the content (in bold) of eclipse.ini.

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


Could you let me know how to make it point to JDK?

Thanks in Advance.
8 years ago
Hi All,

I have installed Maven plugin in Eclipse Galilieo and it got installed successfully.
But when i try to open Eclipse Workspace I am getting meesage stating JDK pointing in pop window.

I have attahced screenshot.

Could anyone please help how to do the JDK pointing?

Thanks in Advance.
8 years ago
Hi All,

I am getting below error while trying to install plugin from Eclipse Galileo.

Unable to Read Repository at http://q4e.googlecode.com/svn/trunk/updatesite-iam/site.xml

Infact I am getting the same error for other URL mentioned in this post.
I have attached the error screenshot.

I am not able to pinpoint the problem.

Can anyone please help me?

Thanks in Advance.


Hi All,

I have small doubt regarding Abstract class.

"If a class has single abstract method, than class must be declared as an abstract class."

But Does it necessary that abstract class must have a single abstract method? It abstact class does not have single abstract method then there is no meaning of creating that class as an abstract class. It is useless to create a class as an abstract without having any abstract method in it.


I tried to find answer to my above doubt but its not clearly mentioned in the book or site.

Could anyone please help me clarifying my above doubt?

Thanks in Advance.


8 years ago
Hi Bill,

Thanks for reply.

I do not have startup.bat in bin folder of tomcat directory.
But i have tomcat6 as an application and i used double click that to run tomcat.

Can someone please advice me on this?

Thanks in Advance.
9 years ago
Hi All,

I have installed tomcat 6.0.33 into my Window system. When in start tomcat server i am getting java.io.FileNotFound exception and window (tomcat startup console) gets closed
Can anyone please help what needs to be done to resolve this?

Thanks in Advance.
9 years ago