shan raj

Ranch Hand
+ Follow
since Dec 16, 2008
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 shan raj

Check your class path where you are running program has pointed LDAPManager class or its jar.
12 years ago
Hi,

if we assign a null to primitive data type
e.g:

javac throw an error.

but if we assign value using condition operation.
e.g:

then the javac is not throwing an error and it is throwing nullpointer exception in runtime

Note: On the same condition operation if we assign both as null.
e.g:
then it shows compilation error.

Could you please tell me what is the reason.
12 years ago
Hi,

I have enabled the taskbar's property "Group similar taskbar buttons" is on, in windows XP and my Java application which has multiple JFrame opened. Since it have more JFrame it tries to Group the similar one. Once it grouped then the taskbar icon for the application disappear and shows the default Java Icon.

I would like to know is there any way to set the application(custom) icon even it grouped.

Note: I did a google search and nothing helps and saw one java bug too. When I open multiple eclipse application it showing the eclipse icon properly. I think it can be possible to set.

Thanks in Advance.
Shan
12 years ago
Hi,

I want to perform the read and write the content operation in the file. For this I have created Serialized class to write and read from the file using ObjectInputStream and ObjectOutputStream. If I open and close every time its working fine. But every time open and close the file for read and write might be costly operation. I would like to know is there any better way to do this without closing the file for every time.

Thanks
Shan
12 years ago
Thanks you very much. I have started implementing my own custom collection class

one question here, when I use file better to keep the file stream object open for ever or open and close when ever it required.

Regards
Shan
12 years ago
Second try !

Any one please suggest.

Regards
Shan
12 years ago
Hi,

I would like to know is there any build in or third party collection class(to perform all operations in the collection interface) which can store the inserted items into the temp file if it exceeds the buffer size(e.g: 500). For e.g, if I am inserting 501 item into the collection class then it has to go into the file instead of having into the memory. While deleting the element in the memory, the element in the file has to be filled in the memory till it reaches the buffer size.

Thanks in Advance.
Shan
12 years ago
Thanks for your suggestions.

Chris Hurst ,

Could you provide sample program or tutorial to use the single object to signal between the thread.


I will also try "Jim Hoglund" suggestion given in the previous posts.

Regards
Shan
I have two list a, b. One thread is adding the data into the list and start the timer if the timer is not already started.



Another thread is a timer Task thread that will wake up for every 5 secs to read the list and process as follows.



Could any clarify my questions in the comments of the code. if my logic is wrong please provide the better way to implement to avoid synchronization issue.

You can construct the java.lang.File object and call the method getName() to get the file name.
12 years ago
I think compile time exception and checked exceptions are the same. Please check this exceptions
12 years ago
This topic has been discussed many times.. look at this String immutable or google it. You will get hundreds of views
12 years ago
Hope you have the proper winlogo.png file in the TetrisWindow.class location. if every thing fine and still not working try changing the path start with

./

or without

/

.
12 years ago
look at this beanshell. This may help you to get some idea or use it.
12 years ago