26/07/2018 12:08
I have a script thats is being used in piecie of software and I need tomodified. The script calls for thecompany lnformation to appear at the begginng of a FLASH video (beforethe video plays), but I wish to eliminate that I have a copy of the script and need the code changed, but I do notknow how ..
Please contact me if you can help Al

1 answersclick here to view

24/07/2018 12:08
Hi All,I want/need a coding example of getting thisdata type below from a file named t.tmpArrayList<String> dimensions = new ArrayList<String>();and aArrayList<String> clr = new ArrayList<String>(); These data types were written to a file before,now I can't get the data out of the file.
I looked up the Java documents for ObjectInputStreamThe demo below is located here: <http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/api/java/io/ObjectInputStream.html&g.... read more

5 answersclick here to view

23/07/2018 12:08
Say: //CODE1(...)sharedVariable ++;int i = sharedVariabel;boolean test=(i==sharedVariable);(...) If the code is executed in multiple threads, in a non-synchronizedpiece of code, it is possible that 'test' might be FALSE.
What about these, all non-synchronized.
//CODE2(...)int i = (++sharedVariabel);boolean test=(i==sharedVariable);(...) Or even: //CODE3(...)int i;boolean test=((i=(++sharedVariabel))==sharedVariable);(...) Or the extreme: //CODE4(...)sharedVariable++;boolean test=(sh.... read more

4 answersclick here to view

22/07/2018 12:08
Hi, I can compile the following code: private static void failIfExpectedException(String comment, Class[]expectedExceptions){ if (expectedExceptions.length > 0) { fail(comment + Expected exception to be thrown: + toString(expectedExceptions)); } } When I run my code ( junit testcase) I get an exception but I cannot see what it is. Any ideas why? //mikael

1 answersclick here to view

21/07/2018 12:08
hi all, I'm starting developing stuff for siemens c55, but for starting I'd like to know what do I need to have to develop...
I've got j2dsk1.4.2 but when I call javax it says it doesn't exist...
what do I need to have in order to get my laptop undergoing on cell phone SW???? nuno silva

3 answersclick here to view

20/07/2018 12:08
I'm making a program which uses JSP (custom tags) to get information from aform at the page and save it as an .xml document. I use Apache Tomcat to runmy program. Problem is, the .xml files are automatically saved where Javais run from, in my case C:/Windows/System32. That's not where I want thefiles at all. But I cannot use a direct path to the program folder withinTomcat, as this will differ depending on which computer the program is runon. I want to save the files in the program'.... read more

1 answersclick here to view

19/07/2018 12:08
Kevin <javarox@bellsouth.net> horrified us with: CP'd over to comp.object without permission. Imagine that. :)

4 answersclick here to view

18/07/2018 12:08
hello all, I am new to java and java applets. i'm trying to interact with a javaapplet on a website. After loading the webpage that contains the applet intoa browser object (in visual basic.net) i was able to to make simple calls tothe java applet - calls such as .getcodebase and .getparameter along with afew others.
i decompiled the java class files for this applet (the web site stores themin a zip file on your local drive) and found that there's mountains offunctions that make up this.... read more

1 answersclick here to view

17/07/2018 12:08
Hi,I need some advise with a java applet. I am nearing completing of the project and am getting a little concerned how long it is taking for the applet to load. I have developed the java applet with Jbuilder using the JDK 1.1.8 as I need to support users with that haven't installed the latest version of the Java Runtime.
So I have been searching the internet trying to see how to speed up the loading process. I've notice that some applets on the web have a loader, that displays a nice.... read more

5 answersclick here to view

16/07/2018 12:08
Hi, I've made a class which extends polygon and implements mouselistener.
When i instantiate one of these classes onto a canvas, the mouselisteners for pressed, released, clicked etc all work fine on the filling of the polygon, however not on the stroke (border/outline).
This means if i have a rectangle with a height of 0 (i.e. it appears as a line) rolling the mouse over it fires no events.
Why is this, and more importantly, is there anything i can do about it? Ill post my code if its ne.... read more

2 answersclick here to view

14/07/2018 12:08
hi, i want to split a file containing username and emailids into 2 parts;and store them separately, in perl its written as,($user,$id) = split / s+/, $line, 2; How can i convert the code in java using regex?

4 answersclick here to view

10/07/2018 12:08
Hi, I have a pure java application which I want to run as a service. Anysuggestions on how to do it ? I saw some articles saying how to use JNIto do it along with C code. But I am looking for a pure Java solution.
Also, some said that -Xrs option of the 'java' command would help. Butwhen I ran the application with 'Xrs' option, I didn't notice anydifference from the run without the option.
Thanks.

2 answersclick here to view

09/07/2018 12:08
How do I make my count() method prettier?TIA fh public class ObjectCounter { Object a; Object b; public ObjectCounter() { Object a = null; Object b = null; } public int count() { if(a == null && b == null) return 0; else if(a != null && b !== null) return 2; else return 1; } public Object getObjectA() { return a; } public Object getObjectB() { return b; } public void setObjectA(Object a) { this.a = a; } public void setObjectB(Object b) {.... read more

3 answersclick here to view

08/07/2018 12:08
I didn't think this would be a trouble also, but apparently it is. I'vecreated a custom object myObject, which has some properties, and a methodInit() which makes all the variables be zero.
The constructor is empty, it's: myObject() {} So anyway, I've created an array this way: myObject[] test = new myObject[100]; No errors. Now, if I type myObject[55].Init(); I get an error (at runtime). I also get an error if I use any other methodfrom the class. However, if I don't create.... read more

2 answersclick here to view

06/07/2018 12:08
I am a new Java developer and I am getting an error when passing an int(primitive) to a method expecting an object: public void echo(Object str){....
} int i = 1;myclass.echo(i); Java complains, but I can send in strings, arrays, etc.
Is there a way to send in ANY type into a method? I would then be ableto determine type of parameter and handle in a switch.
Thank you,JJ

4 answersclick here to view

eDiscover
Helpforce eDiscover provides technical articles updated each day
Click the logo to go back to the main page
Java

Helpforce eDiscover RSS feed contains the latest technical articles in RSSWe have a vast archive of technical informationWe have a vast archive of technical informationJava is a programming language developed by Sun Microsystems (which has since merged into Oracle) and released in 1995 as a core component of the Java platform. With many innovative features, Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS