Click here to Skip to main content
15,887,821 members
Home / Discussions / Java
   

Java

 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
David Skelly7-Jun-11 22:42
David Skelly7-Jun-11 22:42 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
Peter_in_27808-Jun-11 14:00
professionalPeter_in_27808-Jun-11 14:00 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
MikoTheTerrible8-Jun-11 4:00
MikoTheTerrible8-Jun-11 4:00 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
Peter_in_27808-Jun-11 13:56
professionalPeter_in_27808-Jun-11 13:56 
GeneralRe: How to detect if files are not being used by J2EE application in Eclipse Pin
MikoTheTerrible8-Jun-11 3:41
MikoTheTerrible8-Jun-11 3:41 
Questionhow to include web cam image in gui through applet Pin
steven8Gerrard6-Jun-11 20:33
steven8Gerrard6-Jun-11 20:33 
AnswerRe: how to include web cam image in gui through applet Pin
Richard MacCutchan6-Jun-11 21:55
mveRichard MacCutchan6-Jun-11 21:55 
QuestionI NEED HELP URGENTLY! Pin
Matjaz-xyz6-Jun-11 11:15
Matjaz-xyz6-Jun-11 11:15 
public static void IzbrisZivali(ArrayList<Zivali>Seznam) throws ConcurrentModificationException  // brisanje zivali
, IOException
// IzbrisZivali je ime funkcije, (Arraylist - dinamicna tabela, Zivali - nase zivali, Seznam - uporabljala bom tole za iskanje mojega vnosa)
{
	
	
		BufferedReader vhod=new BufferedReader(new InputStreamReader(System.in)) ; // odpiranje bralnika
		{
			System.out.println("Vnesi točno ime živali, ki bi jo radi izbrisali: ");
			String IzbrisZivali=vhod.readLine(); // preberemo ime
			int v=0; // spremenljivka nam pomaga, ce se ne najde te zivali v nasem seznamu
			
			for(Zivali Element: Seznam) //za vsak element iz seznama

				if(IzbrisZivali.equals(Element.getIme())) // ce je ime iskane zivali isto kot ime trenutne zivali v nasem seznamu...
				{
					
					Seznam.remove(Element); // jo odstranimo iz nasega seznama zivali
					System.out.println("Žival " + IzbrisZivali + " je bila izbrisana");
					v++;
					
				}
			
			if(v==0) // ce ne najdemo zivali, to sporocimo
			{
				System.out.println();
				System.out.println("Na seznamu ni živali z imenom " + IzbrisZivali);
				System.out.println();
			}
		}
	}


How can i fix that? What should be changed. Please solve me this problem as im sitting here and staring at my computer for 2 hours! Please!

The problem is ConcurrentModificationException
Regards,
Matjaž

AnswerRe: I NEED HELP URGENTLY! Pin
Cedric Moonen6-Jun-11 20:59
Cedric Moonen6-Jun-11 20:59 
AnswerRe: I NEED HELP URGENTLY! Pin
TorstenH.6-Jun-11 21:02
TorstenH.6-Jun-11 21:02 
QuestionImage identification Pin
kartikdasani5-Jun-11 21:03
kartikdasani5-Jun-11 21:03 
AnswerRe: Image identification Pin
jschell6-Jun-11 9:16
jschell6-Jun-11 9:16 
QuestionHow to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 6:09
Bosah Chude2-Jun-11 6:09 
AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
TorstenH.2-Jun-11 13:10
TorstenH.2-Jun-11 13:10 
AnswerRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? [modified] Pin
xmxkkk2-Jun-11 19:14
xmxkkk2-Jun-11 19:14 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
Bosah Chude2-Jun-11 22:48
Bosah Chude2-Jun-11 22:48 
GeneralRe: How to Save a PictureDrawable as a JPEG/PNG file in Android? Pin
xmxkkk3-Jun-11 1:20
xmxkkk3-Jun-11 1:20 
Questionembed an excel sheet into a java GUI Pin
kartikdasani1-Jun-11 21:43
kartikdasani1-Jun-11 21:43 
AnswerRe: embed an excel sheet into a java GUI Pin
Wyne Ci1-Jun-11 22:33
Wyne Ci1-Jun-11 22:33 
AnswerWow, That's Hell Pin
Johnny Ess22-Jun-11 7:12
Johnny Ess22-Jun-11 7:12 
AnswerRe: embed an excel sheet into a java GUI Pin
kikeri16-Aug-11 14:08
kikeri16-Aug-11 14:08 
QuestionAdding text to an existing file or create it if not existant Pin
Matjaz-xyz1-Jun-11 21:11
Matjaz-xyz1-Jun-11 21:11 
AnswerRe: Adding text to an existing file or create it if not existant Pin
TorstenH.2-Jun-11 12:59
TorstenH.2-Jun-11 12:59 
AnswerRe: Adding text to an existing file or create it if not existant Pin
lanmingle5-Jun-11 0:03
lanmingle5-Jun-11 0:03 
QuestionSelecting between base class and interface method... Pin
faheemnadeem29-May-11 8:01
faheemnadeem29-May-11 8:01 

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.