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

15/04/2018 12:08
Hello,I encountered some problems when i tried to use the float type on myembedded board based on arm926ejs core.
Indeed with the following code: /************************************************************************/public class helloworld{ public static void main(String argv[]){ double dvar = 0.1; float fvar = 0.1f; System.out.println(Hello ); System.out.println( both of these should be 0.1:); System.out.println(double var = + dvar); System.out.println(float var = + fvar); System..... read more

3 answersclick here to view

14/04/2018 12:08
Can any one help me how to file the Directory path of TemporaryInternet Files? A exe will be downloaded in that directory and I haveto run that exe file using java.

3 answersclick here to view

13/04/2018 12:08
Hello, I'm running into a problem when running Javadoc on a file with a BOM (ByteOrder Mark) with this error: TypedInterfaceGenerator.java:1: 'class' or 'interface' expected???////////////////////////////////////////////////////////////////////////////^TypedInterfaceGenerator.java:1: illegal character: 187???//////////////////////////////////////////////////////////////////////////// ^TypedInterfaceGenerator.java:1: illegal character: 191???//////////////////////////////////.... read more

5 answersclick here to view

11/04/2018 12:08
Hey all,New to this, so apologies for the presumably basic question: I'm trying to store user input in an array, marks. Here's my [cut down]code: public class MarksDatabase{ private int marks[]; public MarksDatabase(String moduleName) { int[] marks = new int[200]; } public static void readMarks() { Scanner keyboard = new Scanner(System.in); System.out.println(Enter marks, then put -1 blah blah); marks[] = keyboard.nextInt(); } I get an error with the keyboard.nex.... read more

7 answersclick here to view

09/04/2018 12:08
Hello This is really irritating.
Trying to connect to an SQL Server 2000 database using MS SQL JDBC (the MS implementation).
Keep getting the above error and I have checked CLASSPATH repeatedly to make sure msbase.jar, mssqlserver.jar and msutil.jar are listed in it. Have copied the relevant jars to working directory with no success. All I am trying to do is gain a connection to the database. I have googled around and cannot find much to help. The basic response issue seems to be a missing cla.... read more

3 answersclick here to view

08/04/2018 12:08
I am currently working on a small piece of work for University.. However I am very confused as to how the program should be built up..
http://sucs.org/~rollercow/cs-214-cw2-1.png Is the assignment..
I have created a Game class for reading file data in, a Grid class to make an array of pieces [25] long to store the positions.. And I have a Piece class... With subclasses F, B, L and R.
Now I have an array of characters.. (The user input file) and I am itterating through the array testing if it .... 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 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