02/05/2018 12:08
Okay, I am still working on this one problem. The aim of it is to determine if an integer is an integer and to print this is an integer or to print This is not an integer if it isn't an integer.
integers are 12345, -0. And non integers are hello, 1 2(that is a 1 then a space), hello12345, and 12345hello. My problem is a few things.I wish to printout the statement once(once a integer can be determined or a non integer can be determined. My program is printing out all the characters which are .... read more

1 answersclick here to view

01/05/2018 12:08
I'm trying to run a webapp using Resin 3 and JDK 1.5Wherever a jsp page contains the <logic:iterate> tag, I encounter thefollowing error: ****error snippet****** /jsp/LocationReportMain.jsp:246: not a statement[19:36:22.319] java.lang.Integer null;[19:36:22.319] ^[19:36:22.319] /jsp/LocationReportMain.jsp:246: ';' expected[19:36:22.319] java.lang.Integer null;[19:36:22.319] ^[19:36:22.319] /jsp/Location.... read more

1 answersclick here to view

30/04/2018 12:08
I need help with this program. It has been set as a project, and iveedited it throughly adding functions etc.
I can create an XML file and it'l read it the way ive told it to, butit wont save anything properly. Can anyone tell me why? I dont want the answer, i just want to know whats wrong so i canpinpoint the error and fix it.
Thanks

1 answersclick here to view

28/04/2018 12:08
I'm writing a program to make designs based on user input.
for example: the user types in a character and an integer. if he types in 5 for the count and # for the design the output would be: ############### There are a few other designs as well... but im kinda stuck on this one.
I need to prompt for a count 2 - 20 .. the number must be even. forexample, if the design character was * and the count was 8 the design isto look like this: (8 *'s and 4 lines) ******************** here is my .... read more

4 answersclick here to view

27/04/2018 12:08
I need help with this assignment. Am I on track? Here is the code that Ihave so far. A school is giving a standardized test to all of its students. There are 50questions on the test and the school would like to gather some statistics onhow the students performed. Scores can range anywhere from 0 to 50. All thescores are stored in a file (scores.txt) that you can download. Read the datafrom the file and calculate and output the following statistics: averagescore, the mode of the scores, the .... read more

1 answersclick here to view

26/04/2018 12:08
I am an old man trying to learn java from the tutorials.
I have had, in the distant past, experience with variouslanguages, and have, for the last few years, been codingperl. I usually can get manage, but I do have one problem.
Why, if I have coded import java.awt.*; ,do I have to also code import java.awt.event.*;? The same with java.util.* & java.util.regex.*? And why can I say import java.util.Arrays;but import java.util.Arrays.*; lays an egg? Must I know in advance all the peculiarities .... read more

5 answersclick here to view

25/04/2018 12:08
I have a simple problem using generics. Suppose I want to make aparameterized holder class, call it Singleton, that contains a singleobject o, and instances of Singleton containing objects of comparabletype should themselves be comparable by these objects. So I wantsomething like public class Singleton<T1 extends Comparable<? super T1>> implementsComparable<Singleton<T2>> { T1 x; public int compareTo(Singleton<T2> s) { return x.compareTo(s.x); } } while con.... read more

5 answersclick here to view

24/04/2018 12:08
Hello, Once I have a handle to a directory, how can I get the size of it? TIA,Craig H.

2 answersclick here to view

23/04/2018 12:08
Hi, I created a simple breakout type game in an applet for computer science but whenever I try to view it with Internet Explorer with its proprietory java it says it can not find the class. When I run IE with the Sun Java plugin enabled it can run it just fine.
I found this when I sent the link to my friends who have IE with its factory settings and they could not view my applet but I could.
Is there something wrong with IE's java or did my applet do something wrong?My source is listed if .... read more

3 answersclick here to view

22/04/2018 12:08
i got a query that, the programmer should not be able to create any object of a particularcalss. the only way to create an object is calling amethod.
how to do this?

6 answersclick here to view

21/04/2018 12:08
I have several years of experience with PHP and Javascript, but havedecided to expand into Java, and JEE specifically (though JME and JSEalso beckon in the future). Many OOP features from PHP and Javascriptare very familiar to me and syntactically Java does not appear to becompletely foreign.
For this purpose I need a book that is not overly basic. But I'verealised getting a book on JSP right away would be a bad move, even ifit were one directed at novices.
Effective Java (2nd edition) seems.... read more

3 answersclick here to view

19/04/2018 12:08
Hi, I'm having problems tying the F1 key to the various menuitems in a JMenu object to provide context sensitive help.
When the menu is open, and the F1 key is pressed, it seems that the ActionMap for the last menuitem in the menu always gets activated, even when no menuitem isn't selected yet. Any help with this would be greatly appreciated.

3 answersclick here to view

18/04/2018 12:08
To: comp.lang.java.gui,comp.lHello everyone, I ve made a JtabbedPane with layout Wrap_tab_layout. TO simplifythings lets say i have 10 tabs, 5 are in one row, and the remaining 5are in the second row. What i d like to do, is when i choose one ofthe tabs that are in the second row, i want to flip the two rowstogether, so i can get the second row now first (which is the one thatincludes the tab i chose) and the first row, second.
You can see this in Netbeans. You have the same effect that i wan.... read more

7 answersclick here to view

17/04/2018 12:08
We have some 3D volume data set d(x, y, z) and would like to visualizethe isosurface d(x, y, z) = d0. Idealy in a web browser. What is thebest tool to do it? I heared about java3D, could any one give somesample code? Thanks,qq

1 answersclick here to view

16/04/2018 12:08
Hi i want to send a file to php (with post) and i also want to set avariable in the same form. example (&myvar= + myvar).
I have gotten the first piece to work but i dont know how to set thevariable under the same session, any help would be appriciated! Here is the send file metod (that i want to extend to include settingthe variable) public void postFile(String exsistingFileName) { try { FileInputStream fileInputStream = new FileInputStream( new File(exsistingFileName) ); .... read more

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