Amit Chohan

Greenhorn
+ Follow
since Oct 31, 2002
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 Amit Chohan

Hello all
Please could someone tell me what the static int field is called for the full stop(.) key?
VK_???
Can't find it on API.
Thanks
Amit Chohan
19 years ago
Thank you Layne and Jim for finding the time to reply. I will be looking into both of these suggestions.
Amit Chohan
19 years ago
Hello all
I am using the <applet> tag to show my applet on the xhtml page. It works and displays fine on my university computer but at home it shows a grey box?
Can anyone help me?
Thanks
Amit Chohan
19 years ago
Thank you for your reply.
If i use the contains method it will return either true or false. I will still have to iterate through the collection to find the Objects whos ArrayList i want to update.
The Objects consist of 'String word' and 'ArrayList lineNumber'. Each time i find an object which contains the word from the input file i add the line number to its ArrayList.
To over come the iterator problem i tried putting the line

in the loop but it throws the following error
java.util.ConcurrentModificationException
at java.util.TreeMap$Iterator.next(TreeMap.java:1023)
at WordIndex2.main(WordIndex2.java:64)
Not sure what it means?
Amit Chohan
19 years ago
Hello All
I have found the need to apply a state pattern due to my class behaviour depending on state. What i am confused about is the operations and attributes that the concrete state classes contain?
Any ideas where i can get some info?
Thank You
Amit Chohan
Hello All
Quick question -
Is there a way I can reset an iterator, for example, i want the following part of code to search a TreeSet(store) for matching words -

I want the iterator to return to the start of store(TreeSet) so that I can search it again for matching word.
Thanks in advance
Amit Chohan
19 years ago
Thanks Greg just what i was looking for
19 years ago
Hello all
is there anywhere i can find info on the web or book on colour schemes for my gui. I am wasting my time experimenting with colours because i can not find the right match.
the GUI is going to be used on the net by users visiting to place orders so some nice colours would be good.
Thank you in advance
Amit Chohan
19 years ago
hi all
the following code reverses elements in an array. Is there a more efficient way of writing it.

thanks
Amit Chohan
19 years ago
Hi all
Hope all is well.
While i sit here working through my assigment and eating noodles i have come across Red-Black Trees. I have a couple of questions -
1)are these trees similar to binary search trees?
2)can anyone recommend a web site or book where i can gain a brief understanding of them.
Thank You
19 years ago
hi Gopi
that worked
what did enabling the console actually do?
Thanks
19 years ago
Hello all
I am trying to run an applet in IE6 instead of the graphics all i get is a grey box of the size i specified. I download the VM but still no joy.
Is there anything else i can download or try?
Thanks
Amit Chohan
19 years ago
Hi Ali
Thanks for the reply. There are two books available in my university library, please could you tell me which one it is(reserving it over the net) -
UML distilled : applying the standard object modeling language / Martin Fowler 1997
UML distilled : a brief guide to the standard object modeling language / Martin Fowler 2000
Thank you
One more quick question. I see that you are from Bangalore, what are the job prospects like over there? Are there many software development organisations. I ask these questions because I'm trying to find one years work placement commencing September 2003, my aim is to find a placement away from england.
Thanks again

Hi All
I have been studying the RUP for 12 weeks. I read books on The Unified Process and RUP. One Mock exam question i have been given is as follows -
Explain the perspective different UML models will give of the proposed system. (20 marks)
I am having difficulty understanding what the question asks for. Please can anyone help.
Thanks.
hi all
what is a java design facade pattern?
is there any information on the net where i can look?
thank you in advance
19 years ago