Click here to Skip to main content
15,920,708 members
Home / Discussions / Java
   

Java

 
GeneralRe: ImageIO.Read Capacity?? Pin
Richard MacCutchan17-Aug-10 22:16
mveRichard MacCutchan17-Aug-10 22:16 
QuestionRequest Dispatcher in my servlet not showing desired results Pin
Narjisali13-Aug-10 14:35
Narjisali13-Aug-10 14:35 
AnswerRe: Request Dispatcher in my servlet not showing desired results Pin
Nagy Vilmos16-Aug-10 2:27
professionalNagy Vilmos16-Aug-10 2:27 
AnswerRe: Request Dispatcher in my servlet not showing desired results Pin
jason waggoner19-Aug-10 8:27
jason waggoner19-Aug-10 8:27 
Questionimage encoding Pin
indseelan12-Aug-10 7:02
indseelan12-Aug-10 7:02 
AnswerRe: image encoding Pin
Richard MacCutchan12-Aug-10 10:10
mveRichard MacCutchan12-Aug-10 10:10 
QuestionHow to update values inside of a hash table? Pin
SerpentineV0111-Aug-10 11:51
SerpentineV0111-Aug-10 11:51 
AnswerRe: How to update values inside of a hash table? Pin
Gerben Jongerius11-Aug-10 22:43
Gerben Jongerius11-Aug-10 22:43 
You don't need to call .put on the hashmap to update its objects. You could just get the object and change its value. Just make sure you never assign a new value in the obtained object from the .get method on the Hashmap. So the below will fail:

<br />
  Integer myInt = myHashmap.get(new Integer(1));<br />
  myInt = new Integer(4);<br />


While something like this will work:

<br />
 class MyInt {<br />
   private int m_MyInt;<br />
  ....more code ...<br />
<br />
   public void increment( int by ) {<br />
     m_MyInt += by;<br />
   }<br />
 }<br />
<br />
 ... a lot more code ...<br />
<br />
  HashMap myMap = .... // fill it<br />
<br />
  ((MyInt) myMap.get(new Integer(1))).increment(1);<br />

AnswerRe: How to update values inside of a hash table? Pin
David Skelly12-Aug-10 1:50
David Skelly12-Aug-10 1:50 
QuestionUTF8 - Java - MS Access 2003 Pin
sharkbc8-Aug-10 21:38
sharkbc8-Aug-10 21:38 
AnswerRe: UTF8 - Java - MS Access 2003 Pin
TorstenH.10-Aug-10 2:32
TorstenH.10-Aug-10 2:32 
AnswerRe: UTF8 - Java - MS Access 2003 Pin
jschell23-Aug-10 8:42
jschell23-Aug-10 8:42 
QuestionMessage Removed Pin
8-Aug-10 1:39
vivek8868-Aug-10 1:39 
AnswerRe: How to invalidate the session on logout and on back button of the browser Pin
Nagy Vilmos8-Aug-10 1:47
professionalNagy Vilmos8-Aug-10 1:47 
QuestionMessage Removed Pin
6-Aug-10 2:37
vivek8866-Aug-10 2:37 
AnswerRe: How to use session in jsp Pin
Richard MacCutchan6-Aug-10 3:05
mveRichard MacCutchan6-Aug-10 3:05 
Questionbarcode in java Pin
angeleto2-Aug-10 8:01
angeleto2-Aug-10 8:01 
AnswerRe: barcode in java Pin
LunaticFringe2-Aug-10 8:20
LunaticFringe2-Aug-10 8:20 
AnswerRe: barcode in java Pin
Richard MacCutchan2-Aug-10 9:15
mveRichard MacCutchan2-Aug-10 9:15 
AnswerRe: barcode in java Pin
jason waggoner19-Aug-10 8:22
jason waggoner19-Aug-10 8:22 
AnswerRe: barcode in java Pin
Ravi Sant19-Apr-11 3:50
Ravi Sant19-Apr-11 3:50 
AnswerRe: barcode in java Pin
Member 827588228-Sep-11 10:03
Member 827588228-Sep-11 10:03 
QuestionDeveloping a multi tenant application in (Saas )Cloud Pin
sangeetha_spss1-Aug-10 7:29
sangeetha_spss1-Aug-10 7:29 
AnswerRe: Developing a multi tenant application in (Saas )Cloud Pin
Richard MacCutchan1-Aug-10 9:58
mveRichard MacCutchan1-Aug-10 9:58 
QuestionJava Programing Pin
Devendra Ghag1-Aug-10 1:06
Devendra Ghag1-Aug-10 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.