You are here:
| Subject | Date Asked |
| Java array | 2/2/2012 |
| Q: In java,arrays are dynamically allocated or static?Explain in detail. A: Preeti, > In java,arrays are dynamically allocated or static? Explain in detail. In Java, all ... | |
| Form submission to j_security_check | 1/30/2012 |
| Q: I came across a login form in jsp as follows, <form method="post" name="login" ... A: Thomas, The "j_security_check" action is a relative URL. For example, if you saw that <form> tag ... | |
| java applet | 1/29/2012 |
| Q: we know that in java script we enter the source code by browser +view+ source but how to view the ... A: Dax, > > we know that in java script we enter the source code by browser +view+ source but > how ... | |
| the getlocalPort() method | 1/28/2012 |
| Q: Below, I have a code snippet of a client socket. I do not know how to get the local port of my ... A: Henry, > > My concern is I can't get an available port to connect to :( I tried the port 80 but it ... | |
| the getlocalPort() method | 1/27/2012 |
| Q: Below, I have a code snippet of a client socket. I do not know how to get the local port of my ... A: Henry, I don't understand what your code is trying to do. I think you may be confused about the ... | |
| java mysql | 1/14/2012 |
| Q: Good morning Sir i m just trying to insert data into mysql using java swing... i tried some ... A: Murali, > > i have attached coding with error. > Yes, there is a serious error in your code. ... | |
| corejava | 12/13/2011 |
| Q: why super class?why sub class?why super class reference pointing sub class object? A: Lakshmi, I will try to answer your questions, but they are not very clear to me. > Why super ... | |
| merge sort in Java - function | 12/9/2011 |
| Q: can you please help me with this, i always got this error 'class' or 'interface' expected on line 40 ... A: Aivy, I seems like you have bad structure in your source file. Remember that all Java code must be ... | |
| Blue Jay Java Programming | 10/31/2011 |
| Q: i am fairly new to programming and have been working on chapter 5 the bouncing ball project here is ... A: David, I'm afraid that the code necessary to handle this doesn't seem to be in the class that ... | |
| JES mirroring. | 10/16/2011 |
| Q: How do I write an algortihm to mirror an image diagonally? Thanks, Nickel A: Nickel, > > How do I write an algortihm to mirror an image diagonally? > This is pretty easy to ... | |
| Importing BlueJ file to netbeans or eclipse | 10/5/2011 |
| Q: I have a blueJ music file which i want to export to netbeans and eclipse and i want to run the java ... A: Diren, I don't think Netbeans or Eclipse deal with audio files natively. You just leave the audio ... | |
| Why Set interface won't allow the duplicates in java? | 9/29/2011 |
| Q: what is the reason for set interface won't accept the duplicates in collection?. where it will ... A: Srikanth, > > my question was why it won't allow duplicates The Set interface doesn't allow ... | |
| Why Set interface won't allow the duplicates in java? | 9/28/2011 |
| Q: what is the reason for set interface won't accept the duplicates in collection?. where it will ... A: Srikanth, The contract for the Set interface deliberately excludes duplicates; that feature is very ... | |
| java | 9/26/2011 |
| Q: sir my doubt is like this.in c we write sizeof(int) to find size of datatype.how can i find the size ... A: Phaneendra, > in c we write sizeof(int) to find size of datatype. > how can i find the size of a ... | |
| Utilizing MenuBars and MenuItems! | 9/25/2011 |
| Q: I'm trying to write a Java application using Netbeans IDE. I made a project by going through New ... A: Sam, Simply assigning to the mainPanel variable will do anything. You have to ensure that the ... | |
| java codes for date | 9/24/2011 |
| Q: Sir, I am a freshman taking up Management course but I have computer subjects in which I am having a ... A: Darian, Well, this is not very difficult, except for the roman numerals part. Let's look at the ... | |
| Java | 9/22/2011 |
| Q: Why we save a file of a java program as class name when it is declared as public whereas we can give ... A: Amit, > > Why we save a file of a java program as class name when it is declared as > public ... | |
| Signing the DATA | 9/1/2011 |
| Q: Plz tell me, I have Two Field Like UserName And Password, After Enetred By Client he has to attached ... A: Naval, I apologize for taking so long to answer your question. I was on a business trip and forgot ... | |
| XML Out Put | 8/4/2011 |
| Q: I have Some Line of Code Can U plz Plz tell me What is The Out put of these Line. String ... A: Naval, > > Plz tell me what is out put of document2. > The document2 Document should have one ... | |
| Reading of XML file | 8/3/2011 |
| Q: i have problem to read the xml file.i m not undestanding the Way of Reading the XMl File and how the ... A: Naval, I think you need to understand XML concepts more fully. Have you read the relevant sections ... | |
| Java problem | 8/2/2011 |
| Q: I have a Java problem. I have to make a data table using the following array information: Data #1] ... A: John, There are a lot of problems in this code; I can't even list them all. Here are a couple: 1. ... | |
| Reading of XML file | 8/2/2011 |
| Q: i have problem to read the xml file.i m not undestanding the Way of Reading the XMl File and how the ... A: Naval, Reading XML files and processing them in Java is fairly easy, but you must use the API in ... | |
| j2se | 7/17/2011 |
| Q: sir,please tell me a book name which is the best and easy to under-stand for referring core and ... A: Sindhu, There is no single book that is best, it depends on what you are trying to do with Java and ... | |
| Read a txt file | 6/7/2011 |
| Q: I want to read a txt file. The first line is number which give number of lines in it and data is ... A: Prabakaran, > > Is there any thing like EOF (end of file) in java that is reading its content ... | |
| Read a txt file | 6/6/2011 |
| Q: I want to read a txt file. The first line is number which give number of lines in it and data is ... A: Prabakaran, If you want to convert a String value to an int value, you must use the method ... | |
| get IP address | 6/5/2011 |
| Q: import java.net.InetAddress; public class ip { public static void main(String[] args) throws ... A: Prabakaran, The program you have written will always give you the local machine's understanding of ... | |
| java edge detection | 5/10/2011 |
| Q: i want to get snapshot of scree and apply edge detection algorithm to that image to get a binary ... A: Probakaran, > i want to get snapshot of screen and apply edge detection algorithm to that image to ... | |
| Help us in developing java client chat application which works on LAN | 5/9/2011 |
| Q: How to create the 'Java Client Chat desktop application' where multiple clients on LAN can chat with ... A: Jan, > > How to create the 'Java Client Chat desktop application' where multiple > clients on LAN ... | |
| Java ArrayList - Bank Account | 5/2/2011 |
| Q: I'm writing java code to create a program that puts bank account objects in array list. I need the ... A: Mike, Sorry this answer is so late, your question is fairly long. Let's look at this in parts. ... | |
| Scanner | 5/2/2011 |
| Q: I currently have a dual boot OS with Linux (Mint) and Windows. As I know Windows enough for now I ... A: Mike, Yes, text input has always been a pain in Java. Actually, Scanner is a big improvement over ... | |
| Arrays | 4/30/2011 |
| Q: I'm just starting to learn java, and I'm having trouble with arrays. I am able to randomly generate ... A: JB - > I'm just starting to learn java, and I'm having trouble with arrays. I am able to randomly ... | |
| about deployoing servlet program on apache tomcat5.5 | 4/25/2011 |
| Q: I want to deploy my java servlet program through Apache-tomcat server5.5. What is the process to ... A: Rajesh, Tomcat 5.5 is a pretty old version of Tomcat. But there are tutorials around, and they ... | |
| for loop with a limit | 3/28/2011 |
| Q: can you help me with the below script? <html> <head> <title>Untitled</title> <script ... A: Fahmi, Well, I'm very rusty at Javascript, but I'll try to help. The relevant code is this: ... | |
| Dictionary | 3/24/2011 |
| Q: I understand how to use the array way to make a dictionary for Java, but I think its quite tedious ... A: Shivesh, I understand what you mean about calling the put() method repeatedly. There is no method ... | |
| Java Help | 3/23/2011 |
| Q: I am attempting to write a program to merge two user chosen files into one new file. The user also ... A: Mike, Your code looks like it should work, though it is a little funny in some places. There is ... | |
| context help editor in eclipse | 3/23/2011 |
| Q: I am getting the following error while registering the context help file in eclipse ide: ... A: Ritima, I have not been able to find any bug report related to Eclipse about this problem, so it ... | |
| OUT OF DATE | 2/14/2011 |
| Q: I was wondering would you please tell me: is it important for your computer to have java? Thanks A: Cameron, > > is it important for your computer to have java? > Sometimes. It depends on what you ... | |
| calling a program with command line arguments from another program | 2/11/2011 |
| Q: Sir, i want to call a java program with command line arguments from another java program. I have ... A: Siddarth, Your code: > > String cmd="java TraceGenerator -user "+usr+ ...; > > ... | |
| make an easy program | 2/10/2011 |
| Q: our teacher had told us to write a program which will accept a string and convert it into a coding ... A: Akash, There are a few Java methods and statement types you'll need to complete this program. 1. ... | |
| array of objects | 2/9/2011 |
| Q: compiling has no error.in execution there is an error "Exception in thread 'main' ... A: Dev, You didn't send me your source code, so I cannot see exactly what you might have wrong. But, ... | |
| Prime number | 2/4/2011 |
| Q: I was wondering if it was possible to create a recursive function which can check whether a number ... A: Devarchan, > I was wondering if it was possible to create a recursive function which can check > ... | |
| Java/yguard build.xml doubt... | 2/4/2011 |
| Q: I want to try to obfuscate with yGuard, i have read before conversation about this topic Already ... A: Giri, I'm no expert on Ant either, but yGuard shouldn't be hard to use. Ant has supported a yGuard ... | |
| Regarding regular expression | 2/1/2011 |
| Q: here i want to format the user input given on command line in to American money format. say if you ... A: Amit, Yes, this is not very difficult if you allow replacement in a loop. I've written a simple ... | |
| question | 1/28/2011 |
| Q: how to configured packages in eclipse and how to deploy the war files in tomcatserver A: Subbu, > > how to configured packages in eclipse Well, Eclipse doesn't "add" packages directly, ... | |
| code | 12/23/2010 |
| Q: hey hiii i wrote a code for calculator in java using netbeans6.1 but my module & squareroot not work ... A: Roshan, I don't think I can help you without seeing your source code. Modulus and square root are ... | |
| help with JSAPI | 12/21/2010 |
| Q: i have read some of your other answers and have tried them out however it is still not working. I am ... A: Joshua, The Java Speech API (JSAPI) is rather tricky. You can get the API from Sun, but that ... | |
| what does the [01] mean? | 12/20/2010 |
| Q: I saw this statement in a program, what does the [01] mean? Thanks ... A: Izzzz - In this case, the [01] is an array dereference. It means the same thing as [1]. The ... | |
| java printing | 12/15/2010 |
| Q: this is thamsg ,i want to print a excel document for a hospital receipt, i want to set a top margin ... A: Selvan, Sorry this answer is so late. My computer blew its power supply so I had to set up a new ... | |
| JAVA RSA Decryption | 10/31/2010 |
| Q: I have a private key file with me (private.key) and a string encrypted with its corresponding ... A: Karthik, It is possible that you'll be able to read the .Net (C#) key format with Java, but I think ... | |
| Client/Server program that reads txt files | 10/29/2010 |
| Q: I am currently designing a 2 part instructional game on Buffer Overflow. The user will use a java ... A: Marcus, This is a fairly complicated question, and I don't have a lot of time at the moment. I'm ... | |
| ZipInputStream Throws Illegalargument exception for diacritics | 10/6/2010 |
| Q: If I run the below program with the zip file which has some files with diacritic characters (e.g ... A: Meghala, The Zip file format is not capable of supporting general unicode filenames. This is a ... | |
| how to invoke notepad application of xp via java code to open txt file....? | 10/2/2010 |
| Q: how to invoke notepad application of xp via java code to open txt file....? A: Jay, > how to invoke notepad application of xp via java > code to open txt file....? It is ... | |
| encrypt the password | 10/1/2010 |
| Q: sir , I want when any client register to himself and enter the password, the password should save in ... A: Naval, > > I want when any client register to himself and enter the > password, the password ... | |
| asking to write a programm | 9/19/2010 |
| Q: a red delicious apple is a part of the classification apple,which in turn is a part of the fruit ... A: Raje, Your description seems to be describing a class hierarchy, with some attributes or qualities ... | |
| recursion | 9/1/2010 |
| Q: I am wonder how to do binary search as well as converting a collection into an array recursively. A: Tony, Sorry this answer is so late, I was away at a seminar. Anyhow, you have two questions here: ... | |
| Placing components in new Locatios in JTabbedPane | 8/21/2010 |
| Q: . I'm newer to Swing. I want to know "how to change the location/position of a component". E.g ... A: Ganesh, > > I want to know "how to change the location/position of a > component". E.g when i add ... | |
| doubt on webcrawler | 8/20/2010 |
| Q: import java.applet.Applet; import java.text.*; import java.awt.*; import java.awt.event.*; import ... A: Prerana, > this is our code and the program should display all the link > in the specified ... | |
| garbage collector | 8/20/2010 |
| Q: explain how garbage collection is done by garbage collector? A: Ram, There are lots of web pages about Java garbage collection. Try: ... | |
| Glassfish Facebook application | 8/19/2010 |
| Q: I'm using Glassfish v3 in NetBeans 6.9 to develop a facebook application. I can't seem to get ... A: Chris, Sorry this response took so long, I was out of town and forgot to set my AllExperts vacation ... | |
| data transmission on RS-232 serial port | 8/19/2010 |
| Q: how to send hex code file through serial port on fiarbird robot. I can't able to use flash magic for ... A: Jalpesh, If you want to send data on a serial port from Java, you need to use the javax.comm API ... | |
| compiler and Interperter | 8/18/2010 |
| Q: Sir I want to know that how does compiler and interpreter works How does compiler compiles the ... A: Vinit, > > I want to know that how does compiler and interpreter works? A compiler parses program ... | |
| string | 8/17/2010 |
| Q: String s = new String("abc"); in this we have created objects referred to by s, as we have created ... A: Parvinder, > > String s = new String("abc"); > in this we have created objects referred to by s, as ... | |
| Eclipse Help: Generating 10 letters with at least 2 vowels in it. | 6/5/2010 |
| Q: I need some help on generating 10 letters for a game that I'm working on. And in the 10 letters i ... A: Wawa, > I need some help on generating 10 letters for a game that I'm working on. > And in the 10 ... | |
| Move JLabel at an angle | 6/3/2010 |
| Q: Sir I want to know that how can I move JLabel at a certain angle say 30 or 60 or 75. Is there any ... A: KH - This question is pretty tricky. Java supports rotations in graphics, but does not expose a ... | |
| Java user interface for an Embedded System | 6/3/2010 |
| Q: I am primarily an Embedded Systems developer. We want to develop a web based user interface for our ... A: Harish, Well, there are many ways that you could implement this system. You'll want to keep the web ... | |
| Question about Java GUI, please reply | 5/3/2010 |
| Q: I was wondering if you heard about prefuse (the visualization tool kit by J. Heer). I have a tiny ... A: Matt, Yes, I have heard of Prefuse, and read about it a little. I have not used it. Looking at the ... | |
| Control problem......... | 4/13/2010 |
| Q: ...... I want to display the Unicode fetched from the database in JAVA JTextArea.......... when ... A: Jatish, > I want to display the Unicode fetched from the database in JAVA > JTextArea.......... ... | |
| project doubt | 4/12/2010 |
| Q: import javax.comm.*; import java.util.TooManyListenersException; public class PhoneListener ... A: Srijina, I see that you are trying to use the Java Communications API. I have not used that API, ... | |
| java | 4/12/2010 |
| Q: am working on a swing I have a frame of Fees details and iam saving in fees table upto that it is ... A: Farhat - Sorry this answer is so late, I just got back recently from a business trip. Anyway, to ... | |
| Hibernate | 3/16/2010 |
| Q: I hope you work on Hibernate too, if so could you please help me with this problem? Runing my code I ... A: Pamoria, I've only used Hibernate a little, and have not encountered this particular error myself. ... | |
| passing parameters in java | 3/16/2010 |
| Q: I was trying to pass some Strings as parameter to some other method in java ( 5 or 6 i am not sure ... A: insecureboy, Yes, you should have gotten the message: the president is now: George W. Bush and ... | |
| stereotype | 3/15/2010 |
| Q: what does the stereotype mean in programming? Thanks, lzzzz A: Izzzz - The word "stereotype" is used in several ways in programming. 1. "Stereotype" is the core ... | |
| about static polymorphism | 3/15/2010 |
| Q: can we have the same method name with same number of arguments and with same data types. is it ... A: Saran, > can we have the same method name with same number of arguments and with > same data ... | |
| java | 2/22/2010 |
| Q: Your question was sir I'm a student and a i have a problem in making a program having a choice ... A: Sean, I'm sorry, but I don't understand what you're asking. I can't write the program for you, ... | |
| Code refuses to run | 2/11/2010 |
| Q: Hope you are well. I have a problem running the following code, I get this error message when I try ... A: Sihle, Okay, the error you're seeing is due to an array index being too big. Java always checks ... | |
| java ide | 2/10/2010 |
| Q: sir please tell me how can i change the backgroungcolor of jframe in java IDE 6.7. I am not able to ... A: Ranjeet, > > how can i change the backgroungcolor of jframe in java IDE 6.7. I am not > able to do ... | |
| problem in document.getElementById("Pendule").innerHTML | 2/8/2010 |
| Q: sir i m getting problem with document.getElementById("Pendule").innerHTML=dispTime; where var ... A: Naval, Your question is about Javascript, not Java, but I'll try to answer it anyway. In general, ... | |
| Not properly waiting for thread? | 1/30/2010 |
| Q: I don't really know enough about threading to solve this problem so maybe you can point me in the ... A: Josh, I don't understand the context in which this code is running. What is the matcherThread? It ... | |
| pls try to guide me with the java coding | 1/28/2010 |
| Q: I have a very basic idea about java. Now I have to write a java code that gets a "grayscale Gif" ... A: Alley, Okay, there are really three questions here: 1. How to load a GIF image - basically all GIF ... | |
| Java on NETBEANS IDE | 1/27/2010 |
| Q: I am a computer engineering student.I am writing my java programmes on NETBEANS IDE.My first ... A: Elif - > > My first question is what is the meaning of private method and > final method and when ... | |
| jtapi | 1/25/2010 |
| Q: I work with jtapi(java telephony api), i run "OutCall" (jtapi sample simple) and it replyes one ... A: Zorieh, I have not used JTAPI much, so I cannot tell you what to do from my own experiences. ... | |
| Auto levels | 1/20/2010 |
| Q: can you please give me a basic idea how to make auto-contrast and auto-brightnes in java wothout ... A: Jhony, > > can you please give me a basic idea how to make auto-contrast and > auto-brightness in ... | |
| Multi Threading In Java | 12/22/2009 |
| Q: What is multi threading concept in Java? can you please explain me with real time example? A: Trishnaa - > > What is multi threading concept in Java? > Multi-threading is a very popular model ... | |
| pls | 12/20/2009 |
| Q: pls help me with a source code in java along with rmi, to do the project on the below given ... A: Thas - In your letter, you seem to have several sets of requirements. I'm going to summarize them ... | |
| Monitor Emailserver | 12/19/2009 |
| Q: Hope you have good vacation. I have question regarding to check status of sent emails through a ... A: Shoaib, Most mail systems are designed to separate mail by user and mailbox. I do not know of any ... | |
| Java arrays - to let user enter student names | 12/3/2009 |
| Q: Hey i am while frustrated with the problems I've been experiencing i just want this to work and I'm ... A: Jemma, You are very close on this, you just have a few simple problems. First, there is a problem ... | |
| Concurrent classes vs Synchronized keyword? | 12/2/2009 |
| Q: There are some Concurrent classes such as ConcurrentHashMap, does those classes intend to eliminate ... A: Izzzz - > > There are some Concurrent classes such as ConcurrentHashMap, > does those classes ... | |
| JAVA in a computer science class | 12/2/2009 |
| Q: ! I need help writing a java code for a Tic Tac Toe program. I started it with BIG help from my ... A: CSH - I can help you with specific questions about your code, but I don't have time at the moment ... | |
| a=a | 12/1/2009 |
| Q: What is the possibility to get the value false in a program segment by checking a=a for a variable a ... A: John, > > What is the possibility to get the value false in a program segment by > checking a=a ... | |
| javac-file not found | 12/1/2009 |
| Q: i am not able to compile my program. i 've set environment variables as instructed in corejava ... A: Priyam, There are a couple of reasons why you could get a message like this: javac: file not ... | |
| ArrayList vs HashMap | 11/25/2009 |
| Q: We can use ArrayList to store a javabean which contains name/value pair, but we can also use HashMap ... A: Izzzz - > > We can use ArrayList to store a javabean which contains name/value pair, > but we can ... | |
| Realization | 11/24/2009 |
| Q: Neal, I've done my engg in comp sc and i did have java as one of my subjects,even did programming ... A: Sibin, > > just need to brush up on my fundamentals and it was hard for me > getting to execute a ... | |
| static class loading vs dynamic class loading? | 11/23/2009 |
| Q: What is the different between static class loading and dynamic class loading? I could not find the ... A: Izzzz - Static class loading occurs when the name of the class to be loaded is known to the Java ... | |
| make java dictionary | 11/23/2009 |
| Q: i want to develop a dictionary in java for mobile and as well as dektop,so plz tell me if it is ... A: Gurpreet, I'm sure I've answered questions about this before, like ... | |
| dictionary in java | 11/14/2009 |
| Q: i want to make a dictionary in java.can you give me a code? A: Shovon, > > i want to make a dictionary in java.can you give me a code? > I'm sorry, but your ... | |
| Easy Counting Program? | 11/14/2009 |
| Q: Can you please tell me how to write the following program? I would greatly appreciate it! I dont ... A: Ryan, This is not a trivial program to write, especially if you want to be reasonably efficient ... | |
| java | 11/12/2009 |
| Q: sir, Tell me how to save the output in textpad. for example, for(int i=0;i<9;i++) { ... A: Sri, > sir, > Tell me how to save the output in notepad. for example, > for(int i=0;i<9;i++) > ... | |
| j2ee | 11/12/2009 |
| Q: I wrote dis program…its working fine but i want to store encrypted data in seperate .txt file and ... A: Sujatha, > i stored encrypted data in one file and i am decrypting dat file but it > giving error ... | |
| Packet sniffing | 10/31/2009 |
| Q: I was testing my home network and I used a packet sniffer to capture packets on my network, but the ... A: Tony, It depends on what protocol was used for the encryption. I'm afraid you haven't given me ... | |
| maze problem | 10/30/2009 |
| Q: I have read your instructions about finding the all paths in the maze at ... A: John, Actually, the link you gave was a response by Ziv Ben-Eliahu talking about how to extend my ... | |
| calling c++ namespaces and objects from java | 10/30/2009 |
| Q: i need lot of help in JNI with c++.i have a source code for which i will have to make .so file and ... A: Sitaram, Okay, I understand what you are trying to do. Using JNI is not very hard, but it ... | |
| j2ee | 10/26/2009 |
| Q: Please I need a a code of how to encrypt and decrypt files in Java with RSA algorithm. Thanks in ... A: Sujatha, There are several good examples available out on the web, and I'll list some for you ... | |
| help required regarding java speech synthesizer | 10/24/2009 |
| Q: Sir i want to develop typing tutor for visually impared people fow this i want to build sound files ... A: Saba, The Java speech API (JSAPI) is standardized by the packages javax.speech, ... | |
| java classes | 9/26/2009 |
| Q: if i have two different project in java [A.java] and [B.java] can i call A.java from B.java , if yes ... A: Ahmed, There are a couple of ways you can call Java program A from Java program B. 1. Call a ... | |
| RMI concept in JAVA | 9/26/2009 |
| Q: Please give the line by line execution of RMI program in JAVA. I run the program in JDK1.6..I t ... A: VVV - First, you should probably look at the RMI tutorial, here: ... | |
| arrays | 9/25/2009 |
| Q: What does new String[] do ? Is its purpose to initialize the array ? A: Binga, The expression new String[7] returns an array of seven object references, each ... | |
| java | 9/23/2009 |
| Q: Sir, I am develop one window base application in java so I want to know that how to insert data ... A: Shukla, I think your problem is right here: ps.executeBatch(); The executeBatch() method only ... | |
| Writing to a file:The Parsed out content from the file Using SAX Parser | 9/22/2009 |
| Q: xml file using a sax parser and getting is the exact output.Below is the code for that.the problem ... A: Ms. Ranjan, > the problem is I am not able to write it to file. I think the problem is being ... | |
| interactive website | 9/22/2009 |
| Q: How are you? Thanks for taking questions. I would like to write a photo webiste where a user could ... A: Andres, > > I would like to write a photo website where a user could search for photos with ... | |
| searching for a word | 9/21/2009 |
| Q: i have a database with two columns of string type.i have a text file with a set of words.i am ... A: Vatsala, Well, this is not very difficult, but you haven't given me all the information necessary ... | |
| java | 9/19/2009 |
| Q: what is the defferense between struts 1.3 and struts2? A: Deeraj, Struts 2 changed a great many details of how you write Struts code. There is an excellent ... | |
| Getting Oracle Apps Password using Java Script | 9/17/2009 |
| Q: I want to know if there is a way to execute a Unix command from Java script. In particular I want to ... A: Mrugesh, Yes, if your Java program is running on a Unix system, you can run a Unix command and use ... | |
| Making dictionary application | 9/14/2009 |
| Q: I want to make the application of the Arabic-Indonesian dictionary, Where I have to start from in ... A: Damar, > > I want to make the application of the Arabic-Indonesian dictionary, > Where I have to ... | |
| j2se | 9/1/2009 |
| Q: why we are writing java multithreading code inside the try block A: Pratap - > > why we are writing java multithreading code inside the try block? > Not all ... | |
| call the class at the tomcat start | 9/1/2009 |
| Q: sir i have only one class Start public class Start extends HttpServlet { protected void ... A: Naval - If you want some code in your servlet class to be invoked when the server starts up, then ... | |
| What do i need to learn in order to make Email Server in JAVA | 8/22/2009 |
| Q: I have selected my B.E. project as JAVA email server, which could send and receive emails along with ... A: Jay, This is a complicated question, because there are several meanings for the term "mail server". ... | |
| changeListner for a recorder | 8/21/2009 |
| Q: Hope you will be fine.I have a recorder which record and play sound. I limit the record time to 3 ... A: Basit, You have asked a complicated question. Let's look at recording first. When your code is ... | |
| cobol to java and back | 8/20/2009 |
| Q: I have a situation where I will be calling java from my cobol program and after doing some task in ... A: Suresh, > > Now, is there a way in java to intrepret the received string as the structure > above. ... | |
| MS DOS | 8/1/2009 |
| Q: how can i make a program using ms dos which you need to enter a letter ,if i type small letter a-z ... A: Jessica, I don't understand what you mean by "using ms dos". In the year 2009, I cannot believe ... | |
| calling a function after every 10 min. | 7/31/2009 |
| Q: sir i have two class like class A and class B and from class A i want to call funB()inside of class ... A: Navalgupta, Calling a function every 10 minutes is not difficult. You can use the class ... | |
| my java action class should call every 10 min automatically | 7/30/2009 |
| Q: sir, i have one java class (PushXMLInToURL.java) and i have one database table SMS_VENDOR and ... A: Naval, I think I sent you an answer just recently about how to call a method every 10 minutes. I ... | |
| Using graph(chart2D) in Java application | 7/29/2009 |
| Q: I am trying to use Chart2D package in my application to draw graphs.I am specifically interested in ... A: Ms.Ranjan, I think that LLChart2D is automatically hiding the labels when it does not have ... | |
| Genetrate XML file throughh Database table | 7/28/2009 |
| Q: sir, i have one database table and i want to create XML file whatever in the databse table. ... A: Naval, You can do all this in Java. First, you will need a JDBC driver that can talk to Oracle ... | |
| INTERFACE | 7/28/2009 |
| Q: normally we can not create a object to interface,but i see one program that create object to ... A: Venkatesh, > normally we can not create a object to interface, but i see one program > that create ... | |
| java looping | 7/27/2009 |
| Q: can you please give me an example on how will I create a program that will let the user enter a ... A: Nadja, This is not a difficult Java program, but the tricky part is actually reading the password. ... | |
| Genetrate XML file throughh Database table | 7/27/2009 |
| Q: sir, i have one database table and i want to create XML file whatever in the databse table. A: Naval, > > i have one database table and i want to create XML file whatever in the database ... | |
| software design | 7/12/2009 |
| Q: Is it POSSIBLE to design a database search (includes geographic) where the underlying source code ... A: Del, > Is it POSSIBLE to design a database search (includes > geographic) where the underlying ... | |
| dictionary in java | 7/6/2009 |
| Q: how i can develop a dictionary software in java platform ?? A: Mohi, > > how i can develop a dictionary software in java platform? > The Java platform is large, ... | |
| fingerprint SDK | 7/1/2009 |
| Q: I am lakshmi i want opensource finger print SDK in java A: Lakshmi, I do not know of any free, open source fingerprint recognition toolkits. There are some ... | |
| Java-6-Update-14 not working on SeaMonkey 1.1.17 | 6/30/2009 |
| Q: I have the latest version of SeaMonkey Internet Application Suite -- SeaMonkey 1.1.17 -- Mozilla/5.0 ... A: Green, It sounds like there is just a bug in the compatibility between SeaMonkey 1.1.17 and that ... | |
| the question about SJCP exam | 6/2/2009 |
| Q: Thread Z holds the lock on object A.Thread X is blocked inside a wait call on object A. What allows ... A: Jack, Answers (A) and (C) are meant to look correct, but they aren't. (Actually, none of the ... | |
| java | 5/30/2009 |
| Q: why we are writing thread code inside the try/catch block? A: Pratap, > > why we are writing thread code inside the try/catch block? > Yes, you have noticed ... | |
| Java Swings | 4/15/2009 |
| Q: How to dynamically populate the values from the database into JComboBox. Thanks and Regards Vinod A: Vinod, > > How to dynamically populate the values from the database > into JComboBox. The ... | |
| clear screen command prompt using java code | 4/1/2009 |
| Q: i want implement clear screen function in menu item ... when click on clear screen menu then command ... A: Krunal, > i want implement clear screen function in menu item ... > when click on clear screen menu ... | |
| about java mail | 3/26/2009 |
| Q: how can i install javamail api into jdk1.5.0_11 for providing mail facility into my software. plz ... A: Idrish, You installed the jars into the wrong place. Given that your JDK and JRE are installed in ... | |
| comparing 2 text files | 3/26/2009 |
| Q: Could you provide me with some examples and codes (links or tutorials)on how to compare 2 text ... A: Connie, Okay, if you want to write lines out to a file, that is very easy. Use some code like ... | |
| about java mail | 3/25/2009 |
| Q: how can i install javamail api into jdk1.5.0_11 for providing mail facility into my software. plz ... A: Idrish, > > how can i install javamail api into jdk1.5.0_11 for > providing mail facility into my ... | |
| Recognize image | 3/24/2009 |
| Q: I read your answer about how to get the pixel value from a specified image. I would like to ask if ... A: Kelvin, You're probably talking about my answer to "getting and storing in 1D array the pixel ... | |
| comparing 2 text files | 3/24/2009 |
| Q: Could you provide me with some examples and codes (links or tutorials)on how to compare 2 text ... A: Connie, Comparing two text files is a little tricky, but good algorithms for it have been known for ... | |
| question on rmi | 3/21/2009 |
| Q: i have made one application using rmi.when i am trying to run server i am getting following ... A: Idrish, Well, the links I sent you explain the problem better than I can. But here are some more ... | |
| thread priority | 3/20/2009 |
| Q: can you help me in the following please: I have server program to process different kind of ... A: O - > > In the first of my program I check the type of the request then > I start to process that ... | |
| question on rmi | 3/20/2009 |
| Q: i have made one application using rmi.when i am trying to run server i am getting following ... A: Idrish, Okay, this problem is a fairly common issue. When you are running an RMI program that has ... | |
| introduction to java | 3/17/2009 |
| Q: what is java swing package? A: Anish, Swing is a Graphical User Interface toolkit for Java. It provides the classes for all the ... | |
| thread priority | 3/16/2009 |
| Q: can you help me in the following please: I have server program to process different kind of ... A: O - If your code is going to decide which requests to process and which to delay, then you do not ... | |
| pixel values to notepad | 3/16/2009 |
| Q: Can we copy the pixel values obtained by reading an image into notepad....please help me A: Honey, > > Can we copy the pixel values obtained by reading an image into > Notepad? I'm not sure ... | |
| audio comparision | 3/10/2009 |
| Q: I am capturing sound from microphone in wave format. i'd like to compare it with sample one. A: Nilsan, > > I am capturing sound from microphone in wave format. i'd > like to compare it with ... | |
| Silent Installation for Java 1.6 U 7 | 3/9/2009 |
| Q: I'm trying to write a bat file for corporate silent installs of Java Runtime Environment 1.6u7. So ... A: Phil, Using the JRE installer's /s option is the right way to do a silent installation. However, ... | |
| interface nad abstract class | 3/6/2009 |
| Q: hai nz.. Why would some one want to create an abstract class ( a class that cannot be instantiated/ ... A: Tho_mee, > > Can you explain a little further on when we opt for > interface and when for abstract ... | |
| Java Floats | 3/6/2009 |
| Q: Is there any way to increase the precision of decimal places that show in java? for example I need ... A: Jake, > Is there any way to increase the precision of > decimal places that show in java? Well, ... | |
| interface nad abstract class | 3/5/2009 |
| Q: hai nz.. Why would some one want to create an abstract class ( a class that cannot be instantiated/ ... A: Tho - > Why would some one want to create an abstract class > (a class that cannot be ... | |
| encryption and decryption using java | 3/5/2009 |
| Q: I want to encrpt the data using password.I have written the code for encrypting but i am not able to ... A: Vatsala, Okay, the main problem with your code is that you are storing bytes into a String object. ... | |
| blocking an ip packet | 3/4/2009 |
| Q: Sir, I use jpcap to capture packets that pass through my network interface card. But I don't know ... A: Reuben, You can use Jpcap to grab packets, but it cannot block the packets. If you want to block ... | |
| Need help on part of the code | 3/2/2009 |
| Q: I really am trying to write the code. It has been almost a week that I am working on this and I am ... A: Connie, Okay, I've looked over this code in more detail, and have found many mistakes and problems. ... | |
| core_java | 2/21/2009 |
| Q: please tell about package path setting. A: J-L, Your question is a little vague. There are two aspects of "package path" setting. The ... | |
| getting and storing in 1D array the pixel value of a gray scale image | 2/20/2009 |
| Q: I am new to Java, and want to know how to read and display a grayscale image and store it's pixel ... A: Sweta, > > I am new to Java, and want to know how to read and > display a grayscale image and ... | |
| Java program can read Lotus Notes database file that is on a drive on the computer | 2/19/2009 |
| Q: I am looking for a Java program (xyz.java) that can read Lotus Notes database file (abcd.nsf) ... A: Sreeni, I do not know of any Java package that can read a Notes .nsf file directly. There are ... | |
| Stack examples | 2/13/2009 |
| Q: I'm new to Java. I was wondering if you know some good links or examples on stacks? something like ... A: Connie, > > I was wondering if you know some good links or examples on stacks? > There are many ... | |
| can we see the code | 2/11/2009 |
| Q: hai Neal Sometimes this question might sound silly...But I just wanted to knw. I just wanted to ... A: Tho - Your question isn't silly, but it does have a simple answer. I think you gave up too early. ... | |
| about import | 2/11/2009 |
| Q: while the java compiler compiles the code does it also check whether the class files are all present ... A: Tho, When the compiler is compiling, it checks for every class that you reference explicitly. The ... | |
| detect firewall in the client system while running the web page | 2/10/2009 |
| Q: When i am opening the web page, find firewall in the client system whether firewall installed or ... A: Arul, > > When i am opening the web page, find firewall in the client > system whether firewall ... | |
| english project on computer programming | 2/10/2009 |
| Q: iam doing a english paper on computer programmming and i would greatly appreciate if you were able ... A: Ljubomir, > > iam doing a english paper on computer programmming and i > would greatly appreciate ... | |
| Fingerprint matching in java. | 2/9/2009 |
| Q: i wanted to know how can we match two finger prints(.bmp) taken from a finger print scanner so that ... A: Yogesh, Well, Java is not necessarily the best language in which to be doing biometric ... | |
| Java - identify the position of the "NUMBER" | 2/9/2009 |
| Q: I wanna know how to identify the position of a given number. For example :- There are 3000 books. In ... A: Meenu, > I wanna know how to identify the position of a > given number. For example :- "There are ... | |
| Efficient way to print in console | 2/8/2009 |
| Q: ...what is the most efficient way to print out in java console? is it system.out.println? thanks and ... A: Cris, Yes, the simplest way to print to the console is usually System.out.print() and ... | |
| Java Class to File Name | 2/6/2009 |
| Q: if one source file has more than one classes, after compiling they are independant classes.so how do ... A: Nitesh, It is okay to put several classes into one Java source file, however, at most one of those ... | |
| set method | 2/5/2009 |
| Q: This would be my last question I promise :) Again having in mind the following are my data members: ... A: Connie, The way your method is written, it returns immediately if the index given is greater than ... | |
| TrimToSize() method | 2/5/2009 |
| Q: I am making an array of objects. I will not paste all my code, my methods are working except for ... A: Connie, Your code is not exactly wrong, but it is incomplete. First, remember that once a Java ... | |
| NetSniffer | 2/4/2009 |
| Q: can any one send the project description and coding for the project on "Net Sniffer" A: Vishnupriya, Are you sure you've posted to the right web site? I do not know what the "Net ... | |
| Identify numbers without using regular expression | 2/4/2009 |
| Q: I wanna know how to identify whether the given number is a single digit number or 2-digit number or ... A: Meenu, There are a few ways to do this. The simplest is to treat the number as an integer, and ... | |
| java code to access router | 2/3/2009 |
| Q: Can u help me out with the java code to access cisco router. I am having the ip of the router. ... A: Shefali, > > The welcome message is diplayed on my prompt. But when it > goes for user-access ... | |
| Java - regular expression | 2/2/2009 |
| Q: I wanna help from you.I need a code to identify the number in a given input sentence using regular ... A: Meenakshipanigrahi, Okay, your code is almost correct. You need to count the number of number ... | |
| I need help urgently...Pls!!! | 1/28/2009 |
| Q: How to write a program which takes a sentence(i.e. string) as input, and prints out various ... A: Dammie, You have several separate problems here. P1. Split a sentence into words. P2. Test whether ... | |
| zooming function in 3d java | 1/28/2009 |
| Q: My task is to implement zoom in and zoom out function in 3d java on a shere.I have absolutely no ... A: Rucha, I'm no expert on Java3D, but zooming is not very difficult. In your scene graph, you will ... | |
| Java Error | 1/26/2009 |
| Q: A Java Error occurs frequently for me, and this is what it reads: ... A: Josh, Based on that example, it looks like the Java Plugin (the applet framework for Java2) is ... | |
| java code to access router | 1/25/2009 |
| Q: Can u help me out with the java code to access cisco router. I am having the ip of the router. ... A: Shefali, > > Please help me with the code. > I am a beginner in java. > I'm sorry, but this is not ... | |
| chat program | 1/24/2009 |
| Q: Create a Chat Program . (eg Google Chat ) With the following option … 1. Option to Sign Up – ... A: Suhas, Writing a chat program in Java is not very difficult, but it will mean you'll have to learn ... | |
| Java Script for Lotus Domino 6.5 | 1/21/2009 |
| Q: I am looking for a java script for lotus domino 6.5 which will delete all mails from mail databases ... A: Gaurav, I cannot give you such a script, because I do not have access to Lotus Domino myself. If ... | |
| java | 1/19/2009 |
| Q: My application is real time and i need to connect to the server for this. Then i need to get router ... A: Shefali, > I have 2 connect to a cisco router using ssh protocol. I > have to obtain router ... | |
| java | 1/18/2009 |
| Q: My application is real time and i need to connect to the server for this. Then i need to get router ... A: Shefali, Your question has several parts. > My application is real time and i need to connect > ... | |
| selection statement in java | 1/17/2009 |
| Q: please help me with this. included here is the code i made to run a program about learning data ... A: Dimples, Your source code was cut off in the middle of Case 1, so I cannot see all of your ... | |
| text,txt | 1/15/2009 |
| Q: Im Developing an application that reads product id, product name and product price from an input ... A: Beau, Well, you haven't really asked as specific question. I'll just give you some hints about how ... | |
| J2ME text to speech | 12/29/2008 |
| Q: Is there a J2ME speech API for converting text to speech? If so, I m using Java(TM) ME platform SDK ... A: Siddarth, There is a standard Java API for speech handling (both output and input), the Java Speech ... | |
| Runtime.getRuntime().exec ,send input and get output | 12/20/2008 |
| Q: i already read this ... A: John, It sounds like you want to start a cmd.exe process, and then feed it commands and capture the ... | |
| Reg : Image Encryption & Decryption | 12/19/2008 |
| Q: I've implemented the code to encrypt image as follows by following the link : ... A: Yasmin, > > If I opened the file "output.jpg", I got message > as "No preview available." Yes, ... | |
| CustomTableHeader | 12/19/2008 |
| Q: .. you previously gave me a sample on putting a class that extends as jcheckbox and implements ... A: Madzmar, > > i would like to ask how can i enable my checkbox in the > table header... you ... | |
| core java | 12/16/2008 |
| Q: package mypack; class Balance { string name; double bal; Balance(String n,double b) { name=n; ... A: Pratap, To compile this program, you must first install the Java 2 Standard Edition Java ... | |
| Core Java | 12/16/2008 |
| Q: What is Aggregation in Java? A: Pratik, Aggregation is the practice of collecting several objects under one object. For example, ... | |
| core java | 12/14/2008 |
| Q: package mypack; class Balance { string name; double bal; Balance(String n,double b) { name=n; ... A: Pratap, Your code has several problems, which I'll describe below. You do not need the CLASSPATH ... | |
| core java | 12/14/2008 |
| Q: package pack; class mypack { public static void main(String args[]) { Console.writeline(" my ... A: Pratap, You do not need to use the package statement. Simple programs do not need to be in a ... | |
| object vector | 12/13/2008 |
| Q: Can you help me please , I identified vector to store received object from client and I have to ... A: I - The structure of your code is basically correct. You should not get an out of bounds array ... | |
| Core Java and Java ME | 12/11/2008 |
| Q: Sir, I'm a beginner in Java. I want to know whether there is any difference between Core Java and ... A: Shreyasi, > I want to know whether there is any difference between > Core Java and Java ME.If so ... | |
| Checkbox tableheader | 12/6/2008 |
| Q: .. i would like to ask something about JTable... how can i put a checkbox in a tableheader??? hope ... A: Madzmar, To put a checkbox into a JTable's header, you need to set a custom header renderer on the ... | |
| error | 12/5/2008 |
| Q: why error comes jvm_bind..any solution to it..thank u in advance A: Gajendra, > > why error comes jvm_bind > This error happens when you try to open a Socket or ... | |
| hai | 12/5/2008 |
| Q: hai nz my question now is what is the difference between jdk and jre? when java was installed in my ... A: Tho - > > if i want to use a new java API, it will be having some > jar files associated with ... | |
| hai | 12/4/2008 |
| Q: hai nz my question now is what is the difference between jdk and jre? when java was installed in my ... A: Tho - JRE stands for Java Runtime Environment The JRE consists of the JVM plus various libraries ... | |
| All About JTable | 12/4/2008 |
| Q: .. i would like to ask something about the jtable and if that is possible... 1. im making a ... A: Madzmar, Well, the jxl API documentation for version 2.6 seems to indicate that it can handled ... | |
| something basic | 12/3/2008 |
| Q: i am now learning java. My question is : Is JVM operating system specific(one JVM foe Win another ... A: Tho - > > Again powerPC processor if it runs a windows or a linux OS, > the Win + PowerPC will hav ... | |
| something basic | 12/2/2008 |
| Q: i am now learning java. My question is : Is JVM operating system specific(one JVM foe Win another ... A: Tho - The JVM is always operating-system specific. You have to have one for Windows, one for ... | |
| Java Download Failed | 12/1/2008 |
| Q: I have been trying to download Java and it will not download. Every time I try it comes up with ... A: Tanya, That's tricky. I don't know why the download would fail each time; perhaps it is a problem ... | |
| static method polymorphism? | 11/29/2008 |
| Q: I wonder if the static methods can be overide/overload (polymorphism)? Thanks, lzzzz A: Izzzz - > > I wonder if the static methods can be > overide/overload (polymorphism)? Somewhat. ... | |
| Desktop Screen Sharing | 11/26/2008 |
| Q: I've been working on a desktop screen sharing application and am having a bit of trouble with speed. ... A: Steve, Well, you shouldn't just assume that a particular part of the program is causing poor ... | |
| how to retrive mails uisng java | 11/24/2008 |
| Q: how to retrive mails using java??? for example: ----------------- class Mail{ private String ... A: Bala, > how to retrieve mails using java??? If you want to retrieve e-mail from a ... | |
| Java Random Array Numbers Ascending | 11/23/2008 |
| Q: Under is what i have so far. What I am trying to do make a program that asks the user how many ... A: Johnathan, > > I am trying to do make a program that asks the user how many > random numbers they ... | |
| java runtime environment | 11/23/2008 |
| Q: I have recently downloaded Secunia PSI(RC4) on the recommendation of several tech experts to check ... A: Rae - [You didn't say which OS you are running, so I'm going to assume Windows XP. Most of the ... | |
| Another Question, help please? | 11/8/2008 |
| Q: It's me again. Hope you can help me again. The code that day i provided, i already modified it. It ... A: Isaac, Printing a text file from Java will require two things: reading the text file using a ... | |
| creating classes | 11/8/2008 |
| Q: I'm learning about creating and i don't have a good grasp of when you should create a class and ... A: Jeremy, It is difficult to grasp the distinction between classes and objects (class instances) when ... | |
| print information not found in array | 11/7/2008 |
| Q: Greeting, Sir, can you please help me in this algorithm, i want to print out all the string ... A: Carlo, Unfortunately, your algorithm is not quite right. The loops are basically right, but the way ... | |
| Hello,..can u help with my java code? | 11/6/2008 |
| Q: how are you? I hope that u could help me with my JAVA code,...the problem is, i dont know how to ... A: Isaac, Wow, this code is a mess. It has many problems, it would take hours for me to find and ... | |
| JAVA Concepts | 11/6/2008 |
| Q: Neal Ziring I've three questions. Kindly answer these. 1. Why we use enableEvents() method? 2. Can ... A: Sofia, > > 1. Why we use enableEvents() method? The enableEvents(long mask) method of ... | |
| bootable program | 11/5/2008 |
| Q: hi could i make a Java program that boot or work with out operating system if yes then how ? A: Alias, > > could i make a Java program that boot or work without > operating system if yes then ... | |
| java | 11/5/2008 |
| Q: i have package (c:\t2\test.java) outside jdk.how can i run this package. javac exists at this path ... A: Yasotha, To run the Java application package, you'll need to compile the code using the Java ... | |
| converting Image to bytes | 11/4/2008 |
| Q: I want to convert an Image or BufferedImage into byte[] or some other form so that I can send it ... A: John, There are a couple of ways to convert an Image into an array of bytes. Which one works best ... | |
| array | 11/3/2008 |
| Q: /*INPUT TWO STRING ARRAYS AND SORT THEM i need to accept two arrays as parameters and sort them only ... A: Jot, It seems that you have two problems here: 1. Getting as input parameters two arrays of ... | |
| java | 10/31/2008 |
| Q: is java is pure object oriented programming langauge? A: Sandeep, Java is not considered a pure object oriented language. In such a language, ALL data items ... | |
| RSA java file encryption/ decryption | 10/24/2008 |
| Q: Please I need a a code of how to encrypt and decrypt files in Java with RSA algorithm. Thanks A: F - Well, you'll first want to learn about the Java Cryptography Extension in general. There is a ... | |
| .exe files | 10/20/2008 |
| Q: Please can you tell me how I can make a Java project to an .exe file with setup wizard in Fedora ... A: FJ - > > Please can you tell me how I can make a Java project to > an .exe file with setup wizard ... | |
| java | 10/8/2008 |
| Q: How can I write a program that converts decimal to binary? A: Abdalla, > > How can I write a program that converts decimal to binary? > Java offers a couple of ... | |
| Toolkit.getDefaultToolkit().getLockingKeyState() error in ubuntu. | 10/7/2008 |
| Q: . gud day to you sir., by the way i got this error everytime i run my project in ubuntu.. ... A: Alexis, Yes, I get this problem on Ubuntu also, UnsupportedOperationException. This is a bug in ... | |
| Loading Images | 10/6/2008 |
| Q: can i load the swf file? A: Albar, > > can i load the swf file? A .swf file is an Adobe Shockwave Flash graphics animation. It ... | |
| how to add hyperlink in a table cell to open a jdailog | 10/3/2008 |
| Q: how to add hyperlink in a table cell to open a jdailog. jdialog should open when we click on ... A: Venkat, > > how to add hyperlink in a table cell to open a JDialog. > JDialog should open when we ... | |
| loading images in java | 10/3/2008 |
| Q: Neal Probably the subject says it all. How can I load a .JPEG image in java?? Just the simplest ... A: John, > > How can I load a .JPEG image in java? The simplest way is to use the java.awt.Toolkit ... | |
| display text in textarea | 10/2/2008 |
| Q: i want to retrieve value from database and display it with text area.i have created the following ... A: Chitra, Okay, your exception is telling you that you have asked for a field of the ResultSet that ... | |
| retrive values from database and display it in textarea | 10/1/2008 |
| Q: in swing,retrieve values from database and display it in textarea..and i want to display the data in ... A: Chitra, > > in swing,retrieve values from database and display it in textarea. > This is very ... | |
| how to add header to the table | 9/29/2008 |
| Q: private void dviewallmenuitemActionPerformed(java.awt.event.ActionEvent evt) { ... A: Chitra, > > i want to add button to the frame..i have created > the following coding.but it does ... | |
| how to add header to the table | 9/29/2008 |
| Q: private void dviewallmenuitemActionPerformed(java.awt.event.ActionEvent evt) { ... A: Chitra, > > i want to focus next text field by pressing enter key. > Yes, I see where you are ... | |
| how to add header to the table | 9/27/2008 |
| Q: private void dviewallmenuitemActionPerformed(java.awt.event.ActionEvent evt) { ... A: Chitra, Well, this code cannot possibly work as you've written it. The code contains many errors. ... | |
| How to use Toolkit.getdefaultToolkit().getLockingKeyState() | 9/26/2008 |
| Q: im developing a application composed of a jframe with a jxStatusbar. inside a jxstatusbar i put 3 ... A: Alexis, Keeping that state is not easy. You can do it, but you'll need to set an event handler on ... | |
| java (for each loop) | 9/26/2008 |
| Q: i hav studied abt the "for loop" in java and there is also a "for each loop " i saw in book can u ... A: Ansh, The "for each" loop is used to iterate over all the elements of a Collection. It only works ... | |
| file concept | 9/24/2008 |
| Q: How to append the content to a file with out truncating the content using java code. A: Naganathan, > > How to append the content to a file with out truncating > the content using java ... | |
| event handling | 9/19/2008 |
| Q: in swing programming,after entering data in one text field,how to focus next text field by pressing ... A: Chitra, > > in swing programming,after entering data in one text field, > how to focus next text ... | |
| saving an image?????? | 9/18/2008 |
| Q: i have a image object in an applet window. like Image i=getImage(getCodeBase(),fd.getFile()); ... A: Anand, > > Now i want to save this Image "i".... > To save an Image object, you must use the ... | |
| ComboBox problem | 9/17/2008 |
| Q: The JComboBox control in the code becomes invisible. Is there any mechanism to show that control? ... A: Padel, The problem with this program is that you are trying to use a Swing component (JComboBox) in ... | |
| pixel data readback from framebuffer | 9/17/2008 |
| Q: Currently I am working in one of the game project in which I need to readback the contents of the ... A: Hariprasad, > > Currently I am working in one of the game project in which > I need to readback ... | |
| set CLASSPATH and packages | 8/25/2008 |
| Q: Neal i'm learning about packages in java i dont get the purpose of set CLASSPATH what is its ... A: John, > > i'm learning about packages in java Good, packages are quite important for any large ... | |
| Opening and managing Files from Java | 8/24/2008 |
| Q: Hei, I am wondering is there any command or algorithm to open .AVI or any other not txt file Type ... A: Solomon, > > I am wondering is there any command or algorithm to > open .AVI or any other not txt ... | |
| Java warning message | 8/23/2008 |
| Q: I wonder who can help me? or give me some advice. I have similar similar as Alan. I am a computer ... A: Phoebe, The warning messages you've seen have nothing to do with Java. The download software that ... | |
| JAVA HELP !!!! | 8/22/2008 |
| Q: JAVA PLEASE !!!! i have student data in the file as u can see below Johnson 85 83 77 91 76 ... A: Putri, This is not a very hard program, but there will be several pieces you need to learn. First, ... | |
| Voice changer in Java | 8/20/2008 |
| Q: Sir, I want to make a software which takes a human voice as input and read its attributes and stores ... A: Prateek, > > I further want to know how far FFT library will help achieving > my objective. Are ... | |
| Voice changer in Java | 8/17/2008 |
| Q: Sir, I want to make a software which takes a human voice as input and read its attributes and stores ... A: Prateek, Wow, that is an extremely difficult project. You can read an overview of how hard this is ... | |
| Writing to socket and getting response on same socket asynchronously | 8/15/2008 |
| Q: Single socket is there to write and receiving asynchronous response.We can send about 10 write ... A: Durga, > Single socket is there to write and receiving > asynchronous response. Yes. The usual ... | |
| Pop-up window alignment | 8/14/2008 |
| Q: I recently set up a page so that links open in a seperate window, and resized the new window to fit ... A: Daniel, If you are using the Javascript window.open() method to create your new window, you can use ... | |
| Connecting MsAccess DataBase | 8/13/2008 |
| Q: Sir, Is there exist aType4JDBC driver for connecting MsAccess. How to access the constraints ... A: Nimitha, > Does there exist aType4JDBC driver for connecting MsAccess. > There are a few companies ... | |
| reading in a single char in java | 8/13/2008 |
| Q: Neal I just want to know how to read a single char from the keyboard in java thanks A: John, You can read a single byte from the console using the System.in InputStream. The code would ... | |
| code over image | 8/10/2008 |
| Q: http://www.guitarmemories.com/antipasti/expired/ how can i have word expired go on top of ... A: Marv, Well, this isn't really a Java question, it is more of an HTML question. I'll try to answer, ... | |
| Encrypt Image FIle | 8/5/2008 |
| Q: I let users to open any Image File. Now I want to open that image file and encrypt it and save it at ... A: Nirav, It is not very difficult to write out a BufferedImage object using the javax.imageio ... | |
| java warning message | 8/2/2008 |
| Q: Neal I use the LinkedList class from java.util.* package in order to create a list of objects but ... A: John, > but when i compile, i get a warning message that goes > like "unchecked call to add(E) as ... | |
| Question | 7/30/2008 |
| Q: it really helped.I also wanted to know that since there are a lot many versions of JAVA in the ... A: Priyanka, There is a test for Java 1.4, 5, and 6. Right now, 5 is probably in widest use. You ... | |
| file IO in java | 7/30/2008 |
| Q: Neal what is the most common way of reading a file (.txt file) and writing to a file in java?? ... A: John, > > what is the most common way of reading a > file (.txt file) and writing to a file in ... | |
| Java Programming | 7/27/2008 |
| Q: List 4 types of inner class. What is inheritance? Which keyword is used with the loop to immediate ... A: Phyo, > > List 4 types of inner class. > Java supports four types of inner classes, also called ... | |
| exiting in java | 7/25/2008 |
| Q: Neal I've written a try catch block of code if the catch executes, I want the program to terminate ... A: John, If you want to exit a Java program immediately, there is a method on the System class to let ... | |
| writing a program with Applet | 7/23/2008 |
| Q: I want to know how to write a program with applet to select two co-ordinates (one with mouse pressed ... A: Kalpa, It is not very difficult to write a Java applet that accepts mouse events and draws lines. ... | |
| query | 7/22/2008 |
| Q: i wish to give the SCJP exam.I had taken a course for core and advanced java two years back.I do not ... A: Priyanka, I think you can take the Java SCJP exam after one month of study, but only if you have ... | |
| deep copy with serialization | 7/21/2008 |
| Q: I have a private field in type Object,and am trying to make a deep copy of it to another object that ... A: Hatem, Making deep copies of objects using ObjectInputStream and ObjectOutputStream is a good Java ... | |
| Please!Please! help me to write this program | 7/18/2008 |
| Q: write a program to input the values of three coefficients of a quadratic equation ... A: JSmith - Well, this isn't especially hard, but it is a little tricky to keep track of the cases ... | |
| Java strongly typed ??!! | 7/18/2008 |
| Q: I'm just wonderin what does it mean that "Java is strongly typed".. I tried lookin it up but I'm ... A: Munther, The description "strongly typed" is very difficult to pin down. Even computer science ... | |
| java program | 7/16/2008 |
| Q: given a hexadecimal number as input convert this number to its decimal equivalent A: Mykel, > given a hexadecimal number as input convert this > number to its decimal equivalent The ... | |
| Core java and String Tokenizer | 7/14/2008 |
| Q: I am preparing for java certification in one of the materials that i study i have this question... ... A: Ms. Ranjan, The correct answer is (B). The && operator checks the value of the left operand, and ... | |
| Core java(visibility of classes) | 6/24/2008 |
| Q: Protected visibility- A variable or method declared protected can be used only by classes in the ... A: Ms. Ranjan, The keywords "protected" and "private" can be used with classes, but ONLY with certain ... | |
| JAVA | 6/9/2008 |
| Q: First of all for giving this wonderful services you are the creator of my destiny Thank you I am ... A: Shukla, The Java Speech API home page is here: http://java.sun.com/products/java-media/speech/ ... | |
| Saving entries in java | 6/5/2008 |
| Q: How can u save the results or the entries u enter in a java program. i am a beginner in java i want ... A: Mahiou, > > How can u save the results or the entries u enter in a java program? In general, a ... | |
| Applet notinited | 6/4/2008 |
| Q: I need help over here I made one simulation applet using the NetBeans IDE. When I run my simulation ... A: Petar, > it shows me the message "Applet Notinited" and doesn't > load the applet! First, you ... | |
| Programming (Java) | 6/3/2008 |
| Q: !! I did this program below, and I need some help to comment the program. I started but I can't go ... A: Antonio, This is not a Java program, it is a C# program. I'm not a very good C# programmer, since ... | |
| Java Package | 5/31/2008 |
| Q: Sir, I would like to know regaring the package concept in java.Would u please prive me the tutorial ... A: Samujeet, Many good Java instructions and tutorials exist on the Web, including ones about ... | |
| Multiple Inheritance in Java | 5/28/2008 |
| Q: All java classes, by default, extend Object class. public class ABC is equivalent to public class ... A: Preeyanka, Java does not have multiple inheritance for classes. Consider these two declarations: ... | |
| deletion of folder | 5/27/2008 |
| Q: i am working on a project where i have to delete the folder after 7 days.can you please tell me a ... A: Swati, Java provides a class that will do most of what you need: java.io.File. It allows you to ... | |
| New to Java | 5/20/2008 |
| Q: In September I will begin a degree in IT with a focus on Software Systems. I have no background in ... A: Julian, > 1. Before I begin "formal study" I thought it would be a good > idea to learn a little ... | |
| ProblemSaveWithLinkedList | 5/19/2008 |
| Q: First,..Sorry if my English is Bad..hehehe.. i have a problem.. I have tried to save LinkedList to ... A: AzadiDicky, To really know the problem, you must print the exception. Change ... | |
| JAVA | 5/4/2008 |
| Q: I am shukle parnash from Gujarat in India. I am student of MCA(Master In Computer Application) I am ... A: Shukla, If you want to set the stars in jTextArea2, you must assemble them as a String, then call ... | |
| PROBLEM | 5/3/2008 |
| Q: I HAVE NO IDEA ABOUT THE FOLLOWING:- HOW TO PERFORM MATRIX ADDITION USING 1 ... A: Sourbah, > HOW TO PERFORM MATRIX ADDITION USING > 1 DIMENSIONAL , 2 DIMENSIONAL , 3 ... | |
| about java | 5/3/2008 |
| Q: I am using Window vista. i have a simple java program that needs to be compiled and run from the cmd ... A: Mohamed, The procedures and settings for Vista are pretty much the same as for XP. If you look at ... | |
| BaseDAO | 5/1/2008 |
| Q: I saw the following syntax, is it a java Generic or UML? Thanks,lzzzz BaseDAO <B extends ... A: Izzzz - Yes, this syntax is a specialized form of Java generic. It usually appears as part of a ... | |
| Use of multi dimensional arrays and exption handling | 4/17/2008 |
| Q: This is a question i waz given by my computer science lecture and i dont have an idea how to ... A: Ayanda, This problem is not especially hard, but it will require quite a bit of coding. It is not ... | |
| question | 4/16/2008 |
| Q: What is Annotation in java A: Ashok, Java Annotations are a general purpose metadata facility for adding mark-up or extra ... | |
| JAVA | 3/19/2008 |
| Q: I am shukle parnash from Gujarat in India. I am student of MCA(Master In Computer Application) I am ... A: Parnash, > > I want to open the text file in notepad or in text pad > in java It is possible to ... | |
| JavaRMI | 3/19/2008 |
| Q: hye, i am doing the chat program using the Java RMI. i am using the Hamsam API for the clientside ... A: Lieza, > > i got so many chat program example fronm the Internet, but > somehow in the Java RMI ... | |
| JavaRMI | 3/18/2008 |
| Q: hye, i am doing the chat program using the Java RMI. i am using the Hamsam API for the clientside ... A: Lieza, > i am doing the chat program using the Java RMI. Okay, RMI is a reasonable Java network ... | |
| cheating on my homework | 3/18/2008 |
| Q: Neal, My name is Marty Stepp. I am a computer science instructor at the University of Washington. ... A: Marty, That's okay, don't worry about it. Anyway, I got a note from AllExperts.com tech support ... | |
| java | 3/17/2008 |
| Q: I am using Itext to constructa pdf file in java..And I have to put some bullets in my pdf for that I ... A: Mayank, I don't see why it should fail, perhaps there is a bug in iText's implementation of ... | |
| Question on Lines of code counting | 3/15/2008 |
| Q: I have to create a report that would provide number of lines of code in our project. I could find a ... A: Deepthi, It is certainly possible to open Jar files and inspect their contents from a Java program. ... | |
| Event Listeners | 3/15/2008 |
| Q: Can listeners only be associated with GUI components?. I'm trying to create a listener to listen for ... A: Erik, > > Can listeners only be associated with GUI components? > No, there are many kinds of ... | |
| java | 3/14/2008 |
| Q: I am using Itext to constructa pdf file in java..And I have to put some bullets in my pdf for that I ... A: Mayank, As far as I can see, you have only one mistake in this code: List list = new ... | |
| source code | 3/13/2008 |
| Q: .. I am doing the project on "Budget approval system". Plz send me the source code for my ... A: Bharath, If you mean the "Budget Approval System" described here: ... | |
| Java and pogo | 3/12/2008 |
| Q: I am having a big problem...it started with just a few games in pogo, telling me that the java ... A: Yvonne, It is possible that you still have some corrupted Pogo applets in your Temporary Internet ... | |
| question in java | 3/11/2008 |
| Q: write a program to input a no.if no. is 5 digit then checkout how many times middle digit is ... A: Shivam, > write a program to input a no.if no. is 5 digit then > checkout how many times middle ... | |
| Share data on a web page? | 3/10/2008 |
| Q: I call prospects and qualify them on the phone then pass them along to my client, a debt settlement ... A: Michael, > I have a small call center. I call prospects and qualify > them on the phone then pass ... | |
| Client-server backup | 3/5/2008 |
| Q: I want to perform backup from client to server. How it is possible? A: Samip, > > I want to perform backup from client to server. How it is possible? > Well, you could ... | |
| RMI servlets | 3/4/2008 |
| Q: To run the Servlets program which version of JAVA should I have installed? A: Kalaivani, > > To run the Servlets program which version of JAVA should I > have installed? A ... | |
| Lotus Notes session | 3/4/2008 |
| Q: Im writing app that connect to Lotus Notes database and retrieves some data.This database is ... A: Zybnek, > I protect it by filling in encrypted database file which is > encrypted to my ID.But for ... | |
| Saving java source file | 3/2/2008 |
| Q: When we have a public class in java program we have to save the source file with the same class name ... A: Supratim, > When we have a public class in java program we have to > save the source file with the ... | |
| Lotus Notes session | 3/2/2008 |
| Q: Im writing app that connect to Lotus Notes database and retrieves some data.This database is ... A: Zbynek, > Is there any way to use session established by Lotus > Notes app? Because so far user ... | |
| J2EE | 2/28/2008 |
| Q: How can i create combo box in JSP page? How can i get value of combo box in servlet? A: Samip, > > How can i create combo box in JSP page? > JSP doesn't directly provide support for ... | |
| To get a week number from date | 2/28/2008 |
| Q: i have a date in MM/dd/yyyy format. I also know the number of weeks in that month. How can i find in ... A: Frank, This is related to the other question I answered for you, and uses all the same classes. ... | |
| First day of a month | 2/26/2008 |
| Q: i have got a date(MM/dd/yyyy) and i need to know the starting day(monday,tuesday,etc.,) of the ... A: Frank, > i have got a date(MM/dd/yyyy) and i need to know the > starting day(monday,tuesday,etc.,) ... | |
| help with java | 2/25/2008 |
| Q: i am a java student but i cant sort string in java, can someone help me with this? A: Julia, > > I am a java student but I can't sort string in Java > Yes, you can sort Strings in ... | |
| BufferedReader | 2/25/2008 |
| Q: I want to append data to an already existing file. I tried using BufferedReader but null values are ... A: Keerthi, > > I want to append data to an already existing file. > If you want to append data to a ... | |
| accessing non-static data in static methods | 2/22/2008 |
| Q: I need to access non-static data, as soon as it is initialized in static methods - in a ... A: Gayatri, > > I need to access non-static data, as soon as it is initialized > in static methods - ... | |
| Plugin | 2/22/2008 |
| Q: DUDE!!!! i'm getting a little mad setting here looking at one of my favroit games i can't play. it ... A: Johnny, I don't know why your web browser would shut down when you visit the Sun web site. Perhaps ... | |
| Plugin | 2/20/2008 |
| Q: DUDE!!!! i'm getting a little mad setting here looking at one of my favroit games i can't play. it ... A: Johnny, Yes, this problem appears to come up frequently on the Runescape message boards. You need ... | |
| Cron job | 2/19/2008 |
| Q: Sir i created a shell like this to_day=`date|awk '{print $1$2$3}'` echo $to_day log_time=`last|awk ... A: Shinil, From your description, it sounds like the Java program is not running. If you are just ... | |
| Code won't compile | 2/18/2008 |
| Q: This below is my code but when i try to compile it, it says } is expected on the line where i have ... A: Catia, > This below is my code but when i try to compile it, it > says } is expected on the line ... | |
| problems downloading java | 2/18/2008 |
| Q: i have been trying to install java and it won't let me. when i do it offline it says-error applying ... A: Stacy, Installing Java on Windows can sometimes be painful, especially if you do not have ... | |
| Trying to write Two port Server | 2/16/2008 |
| Q: I want to write two port server socket program using Java, (i.e. single server program which is ... A: Syed, First, a note about sockets: You can open multiple ServerSockets in a Java program, and ... | |
| Java Button Linking help | 2/14/2008 |
| Q: i need some help with a java menu program... now I'm not that great at Java but I am getting the ... A: Michael, You have the right idea, you just need to understand how to distinguish between different ... | |
| java | 2/14/2008 |
| Q: why pointers are not used in java ANSWER: Neerajah, > > Why pointers are not used in java? > If a ... A: Neerajah, > > i want to know about arrays and keywords used in java > ARRAYS: A Java array is ... | |
| java | 2/13/2008 |
| Q: why pointers are not used in java A: Neerajah, > > Why pointers are not used in java? > If a language supports pointers, then it gives ... | |
| encryption | 2/12/2008 |
| Q: well, I got error when I start to decrypt it, starting with the main class "mob.DownMultiPUCP", so, ... A: Alex, Sorry, but I don't know what could have gone wrong. It is possible that your decryption ... | |
| connect to a host machine on lan | 2/12/2008 |
| Q: Within a java program I wanted to connect to a host machine running linux so that i can execute some ... A: Samod, > > Within a java program I wanted to connect to a host machine > running linux so that i ... | |
| Java | 2/11/2008 |
| Q: I am doing project in Java(especially using Swing, Hashmap,ArrayList,JTree,database connections)...I ... A: Sureka, > > I don't know to trace out the exact information what i need. > Yes, that can be very ... | |
| encrypt, decrypt...JAR... | 2/11/2008 |
| Q: my last question, I want to try to obfuscate with yGuard, but I have problems I dont know how to ... A: Alex, > > I make a list of all my classes, and then make the Url of > the main() one, all i got ... | |
| encrypt, decrypt...JAR... | 2/9/2008 |
| Q: my last question, I want to try to obfuscate with yGuard, but I have problems I dont know how to ... A: Alex, > > I know how to encrypt a single java class, and I think that > I encrypt all the classes ... | |
| Runtime.getRuntime().exec( | 2/8/2008 |
| Q: I am opening command prompt using Runtime.getRuntime().exec("cmd.exe /c start") Now how do i ... A: Payal, > > Actually I want to run simultaneously many commands in > command prompt and get the ... | |
| viewing fonts in Vista | 2/8/2008 |
| Q: I do not know who I should be asking this question of, If it not you please guide me to the correct ... A: Paul, Well, I don't know of any script that will do this job for you. There are many programs that ... | |
| Runtime.getRuntime().exec("cmd.exe /c start") | 2/7/2008 |
| Q: I am opening command prompt using Runtime.getRuntime().exec("cmd.exe /c start") Now how do i ... A: Payal, > > I am opening command prompt using > Runtime.getRuntime().exec("cmd.exe /c start") > > ... | |
| yguard XML doubt... | 2/7/2008 |
| Q: my last question, I want to try to obfuscate with yGuard, but I have problems I dont know how to ... A: Alex, Obfuscating your classes is a good thing to do. YGuard is not a great obfuscator, but it is ... | |
| java | 2/6/2008 |
| Q: I am Parnash.I want to know that How to Sorting String in java. example Input := def ghi abc ... A: Parnash, Java provides several different facilities for sorting data objects. They all depend on ... | |
| JAVA | 2/6/2008 |
| Q: I am Nilesh. I am stduent of MCA in Gujarat in India. I am developing one multimedia application in ... A: Nilesh, First, I would caution you not to use the MS-Access database to store any serious data. It ... | |
| Advice on Rational Tool & Development | 2/5/2008 |
| Q: Here's the scoop, I have just been plopped down to support some JAVA apps that were created and ... A: Scott, You have my sympathy; maintaining a load of somebody else's code is no picnic. Anyway, if ... | |
| Java encryption | 2/5/2008 |
| Q: How are you, I would like to know how can a protect a Java Code in JAR, JRE 6. I was trying to ... A: Alex, Well, protecting your Java code is not easy. Obfuscation is one good technology; if you are ... | |
| Concurring Java error | 2/4/2008 |
| Q: When I run my java application this error keeps coming up when trying to log in. Your help would be ... A: John, Well, I don't have the entire system available to look at, so I'll give you my best guess. ... | |
| java programming | 2/3/2008 |
| Q: Write a program that reads in a four-digit number(such) as 1998) and outputs the number, one digit ... A: Mashia, Well, this is pretty easy to do in Java. The hardest part is actually reading in the ... | |
| JAVA | 2/2/2008 |
| Q: Can u tell me something about JVM metrics visualizer System A: Diana, I'm sorry, but I don't know about much about visualizing JVM metrics. There are many ... | |
| URLConnection for google search doesn't work | 1/31/2008 |
| Q: Resp sir, i cannot read the content while i am connecting with google search ... A: Sureshkumar, The URLConnection class is the correct class to use to get HTTP content. However, ... | |
| Connect JTree with Database | 1/30/2008 |
| Q: I'm working with Swing.I have to construct a SplitPane with JTree on the leftside and its details ... A: Priya, Connecting with databases from Java requires using the Java Database Connectivity package ... | |
| JTree Updation of Nodes | 1/30/2008 |
| Q: I have a problem in JTree.I can insert or remove nodes dynamically to tree. Nodes are added or ... A: Priya, Your code can add nodes to a JTree, but unless you add extra code to write the Tree data out ... | |
| java | 1/24/2008 |
| Q: Pl give me a java program to find the number of days between the given dates. A: Umarani, To compute a difference between two dates, you need several capabilities: 1. The ... | |
| Renaming list of files | 1/23/2008 |
| Q: I would like to write program to change files name. Write now I have written program to list the ... A: Lucks, Renaming files is pretty easy, but you need to use the java.io.File object. When you ... | |
| question regarding arraylist in java | 1/22/2008 |
| Q: wants a program to take firstname,lastname,Dateofbirth in to a file and sort the firstname in the ... A: Hemalatha, Well, there a several ways to write such program. I would recommend creating a small ... | |
| java beans | 1/19/2008 |
| Q: can you pl guide me to write and excute a simple java beans program? Also can you pl give me a JSP ... A: Umarani, > > can you pl guide me to write and execute a > simple java beans program Well, Java ... | |
| What should we come up with in the high level design and low level design? | 1/18/2008 |
| Q: What should we come up with in the high level design and low level design? Thanks lzzzz A: Izzzz - Exactly what goes into a high-level or low-level design will depend on what design ... | |
| IRC Connecting | 1/17/2008 |
| Q: Are there any Java applets, preferably open source, which connect to an IRC server? A: Jeff, Yes, there are several applets out there for IRC. Some of them are open source, but most are ... | |
| What should we test on the unit test? | 1/15/2008 |
| Q: What should we test on the unit test? Thanks lzzzz A: Izzzz - Unit testing should be built around or into every class of a production system, library, or ... | |
| java | 1/14/2008 |
| Q: write a programe in java to find the reverse contents of array. array size is 3. A: Qaiser - I'm not sure I understand your question. Reversing an array is very easy, but you need to ... | |
| cloning | 12/28/2007 |
| Q: can classes be clonned? A: Sahan, Classes cannot be cloned. The clone operation is only applicable to objects that are ... | |
| Java Error. | 12/20/2007 |
| Q: First let me say how great it is for you to help me. This is my error: Starting Uberscape on ... A: Carl, I'm having a hard time understanding what you are trying to do. I tried to go to Uberscape, ... | |
| Doubts regarding creating an application | 12/19/2007 |
| Q: I am trying to create an application using java where i can search for files and folders in my local ... A: Aasia, Java can be used to create an application for searching for files and folders. However, it ... | |
| A* | 12/15/2007 |
| Q: i am wondering how to use A* algorithm in my last code, since i read in A* using queue function too, ... A: Fendi, You can employ the A* algorithm for the puzzle game or many other kinds of multi-move search ... | |
| Java | 12/13/2007 |
| Q: What is the difference between Class method and Object method? Give some example also? A: Ramakrishna, > > What is the difference between Class method and > Object method? Give some ... | |
| i want to be good at technical and logical in java | 12/13/2007 |
| Q: This is Rajesh,can you please guide me to become a good programmer in java. In clear my ... A: Rajesh, There are four things you need to do in order to become good at Java coding: 1. Read and ... | |
| animation | 12/11/2007 |
| Q: in my last code, i put method to print the solution, but how to make the animation works? i make ... A: Fendi, Running this kind of animation with Swing is somewhat tricky. The way Swing handles ... | |
| regarding socket pgming in java | 12/11/2007 |
| Q: sir,i have already made successful program to communicate between one client and one server.i want ... A: Munawer, A Java server program should always be written to support multiple clients. Exactly how ... | |
| animation | 12/9/2007 |
| Q: in my last code, i put method to print the solution, but how to make the animation works? i make ... A: Fendi, The code in your search() method prints to the System.out stream. That won't really help ... | |
| BFS | 12/2/2007 |
| Q: last time i have below code for puzzle using dfs and idfs, now i want to try using bfs, can u give ... A: Fendi, > can u explain your code, what the function of class > QEntry? and why u're using 'static ... | |
| JVM setting for Arabic language | 12/2/2007 |
| Q: Sir, System Specifications: 1.AppServer - Pramati4.1 2. DataBaseServer - MSSql 2005 3. Windows ... A: Jitendra, There are a couple of reasons why this might happen, but the most likely is that the ... | |
| bfs-Animation | 12/1/2007 |
| Q: i last code i did the dfs and idfs to solve 8 puzzle. but how to animate the searching to my GUI ... A: Fendi, Sorry, but I don't have time to write this for you. I have to leave for a trip. The key to ... | |
| File name of java | 11/30/2007 |
| Q: It is written in every book, when we save Java source code then it should be same as class name ... A: Ravi, > It is written in every book, when we save Java > source code then it should be same as ... | |
| displaying a tamil | 11/30/2007 |
| Q: sir, am working with java swing appliation. i have created a database in ms access 2000 which ... A: Jisha, There are a couple of reasons why this could take place, and I'm not sure which one is ... | |
| BFS | 11/29/2007 |
| Q: last time i have below code for puzzle using dfs and idfs, now i want to try using bfs, can u give ... A: Fendi, Okay, BFS is a little different from DFS and IDFS. It will always find the shortest path ... | |
| JAVA | 11/28/2007 |
| Q: I have a question for the program on the monotone sequence. How would you input the sequence so that ... A: Jane, > > I tried using System.in and it lets me input the > sequence however I still get a zero ... | |
| JAVA | 11/28/2007 |
| Q: I have a question for the program on the monotone sequence. How would you input the sequence so that ... A: Jane, In the sample program that I sent on 11/16, the input sequence had to be given on the ... | |
| ArrayIndexOutOfBoundsException: | 11/27/2007 |
| Q: I keep on getting the Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0. ... A: Kinzo, > I keep on getting the Exception in thread > "main" ... | |
| Deploying & running of WAR files into Apache Tomcat | 11/22/2007 |
| Q: I am working on Java project. I have issue that how to deploy, install and run the WAR files into ... A: Amit, Well, deploying web applications to a Tomcat server is basically the same on all platforms. ... | |
| Long classpath | 11/21/2007 |
| Q: I have several batch jobs that need to run at different times of the day, and each job requires its ... A: Toly, Unix systems allow at least 64KB command lines, though some allow more. The Windows XP 8K ... | |
| Long classpath | 11/20/2007 |
| Q: I have several batch jobs that need to run at different times of the day, and each job requires its ... A: Toly, Yes, the Windows command-line and environment variable length limitations are a pain. ... | |
| Problem making a java program that involves Monotone sequences | 11/15/2007 |
| Q: I'd like to write a Java program that accepts a given sequence of integers, finds the longest ... A: Adam, Finding monotonically increasing and decreasing sequences in a list of integers is not very ... | |
| "checking against the erased type" warning | 11/15/2007 |
| Q: I have a question about the warning I always get with Java 5: "Type safety: The cast from Object to ... A: Toly, > I have a question about the warning I always get > with Java 5: "Type safety: The cast ... | |
| What is the benefit of component-based software development? | 11/14/2007 |
| Q: I am sorry, here is my question. What is the benefit of component-based software development? ... A: Izzzz, Component-based software development is the practice of creating software systems mainly by ... | |
| java IO | 11/13/2007 |
| Q: i have a client aplication from java and the server aplication from delphi. i confuse while i send ... A: Rochmat, [You didn't provide any portion of the code, some I'm kinda guessing here. I'll do my ... | |
| puzzle | 11/11/2007 |
| Q: in this code seems like u show the values in new array declaration. i already have it in Puzzle ... A: Fendi, > ok, maybe i want to ignore the GUI, in Puzzle class > can u explain more to me why there ... | |
| JAVA/sql server 2005/XML | 11/10/2007 |
| Q: Build a Web page that presents an answer sheet to a test taker and records the test taker's answers ... A: Venkat, I'm not going to do this assignment for you, but I will tell you some technologies you'll ... | |
| puzzle | 11/9/2007 |
| Q: in this code seems like u show the values in new array declaration. i already have it in Puzzle ... A: Fendi - > in this code seems like u show the values in new > array declaration. i already have it ... | |
| puzzle | 11/8/2007 |
| Q: I already make the the graphic using frame, and i using 3 classes in different file, main class, GUI ... A: Fendi, This code has a couple of minor problems, but the big problem was your declaration of the ... | |
| question | 11/8/2007 |
| Q: even if the main(String[] args) may be public or private or protectd or default then also the ... A: Uday, The rule about the main method needing to be public has always been a rule for the Java ... | |
| Access Exchange RPC from JAVAMAIL API | 11/7/2007 |
| Q: I need to access my exchange server inbox from a java program. Will there be any problem since our ... A: Avinash, > > I need to access my Exchange server inbox from a > Java program. Yes, that can be ... | |
| public | 11/5/2007 |
| Q: I think the syntax below is using generic, but why there is nothing before <T>, does that mean it ... A: Izzzz - For this method declaration: public <T> T find(Class<T> entityClass, Object primaryKey) ... | |
| RMI & CORBA, RMI & IIOP | 11/1/2007 |
| Q: I am a bit confused RMI & CORBA, RMI & IIOP. Does RMI equal to CORBA ? What is the relationship ... A: Izzzz, CORBA is a language-independent set of programming conventions, object models, and abstract ... | |
| New line in Lotus Notes document | 10/31/2007 |
| Q: Im creating new document in Lotus Notes database using package lotus.domino.I call createDocument() ... A: Zbynek, Well, it is possible that the appendItemValue method is removing your newline character ... | |
| why we can change the value of a String variable when we put the String variable inside ArrayList ? | 10/30/2007 |
| Q: Do you know why we can change the value of a String variable when we put the String variable inside ... A: Izzzz - > Do you think we have to remember what Class/Object > can be modified, and what ... | |
| java | 10/30/2007 |
| Q: I tried upgrading to java 6 but i have encountered this problem while downloading .. 1. Windows ... A: Carol, > It won't even start downloading because of those > error messages. That's very ... | |
| Is digital dice possible ? | 10/29/2007 |
| Q: I'm new to programing... so I found myself my first problem. Is it possible to tell (program) the ... A: Leon, It is certainly possible to program a computer to simulate rolling dice, tossing a coin, or ... | |
| Notes initialization failure - err 421 | 10/29/2007 |
| Q: im working on support tool for out team and I have to use Lotus Notes to send mails and fill ... A: Zbynek, I cannot find any documentation on the Lotus Notes packages (lotus.domino.*), so I cannot ... | |
| java | 10/28/2007 |
| Q: I am working on fixing a website for my organization. Someone started and never finished the ... A: Ron, I've looked at the page and code involved, but cannot find any problems. I also could not ... | |
| why we can change the value of a String variable when we put the String variable inside ArrayList ? | 10/26/2007 |
| Q: Do you know why we can change the value of a String variable when we put the String variable inside ... A: Izzzz - > It seems like if the parameter is a type of String, > then it passes by VALUE, but if ... | |
| why we can change the value of a String variable when we put the String variable inside ArrayList ? | 10/25/2007 |
| Q: Do you know why we can change the value of a String variable when we put the String variable inside ... A: Izzzz - Strings are immutable. The code sample you have sent does not change the content of a ... | |
| java | 10/25/2007 |
| Q: I am working on fixing a website for my organization. Someone started and never finished the ... A: Ron, Yes, I see the page and the fade-in at the top. The Javascript code is all coming from the ... | |
| Does RMI use any port by itself, not RMI registry ? | 10/24/2007 |
| Q: Someone asked me what the default port of RMI ? I know RMI registry by default uses port 1099. Does ... A: Izzzz - Yes, a RMI server object will open a server socket port for itself. It will choose the ... | |
| maze | 10/23/2007 |
| Q: i want to make simple maze, for example {0, 0, 0, 0 0, 1, 0, 0 2, 2, 0, 0 0, 0, 0, 0} [0][0] ... A: Fendi, This code doesn't really do anything. All it does right now is print out the contents of ... | |
| java | 10/22/2007 |
| Q: i have a task i.e we have to create frame by using swings in that have to call Excel sheet and we ... A: Swaraj, I do not understand your question fully. I will answer all that I can. First, Java ... | |
| java | 10/21/2007 |
| Q: i am going to make a simple DFS, from the coding below, is it right? and can u help me if i want to ... A: Fendi, This code mainly walks through the maze array in row-major order. It is not a depth-first ... | |
| bout java class | 10/20/2007 |
| Q: Im a beginner to JAVA language and im using Netbeans 5.0(mobility),i had difficulty on how to make a ... A: Arnold, Well, I'm not a NetBeans user myself, but when I have looked at it, adding classes ... | |
| String pass by value ? | 10/19/2007 |
| Q: Why is the new value of X still 30, is that because of parameter N passed by value? should it be ... A: Izzzz - > You said "in order to make use of this aspect > of Java to modify an object passed to a ... | |
| web browser | 10/16/2007 |
| Q: I was curious how I could display a webpage on a java form? A: Josh, There are a couple of meanings for the term "Java form", so there are a couple of possible ... | |
| String pass by value ? | 10/15/2007 |
| Q: Why is the new value of X still 30, is that because of parameter N passed by value? should it be ... A: Izzzz - Java passes object references by value. So, the call increate(X); passes ... | |
| Choosing the best path towards game programming | 10/15/2007 |
| Q: I am currently undertaking my final year project for my degree in Computing and Information ... A: Cedric, Okay, a 3D sudoku game should be pretty cool, although possibly very difficult for the ... | |
| Is 'method overriding' for implementing polymorphism ? | 10/12/2007 |
| Q: As we know, interface and method overloading are for implementing polymorphism. How about method ... A: Izzzz - Method overriding is an aspect of inheritance. When you override a superclass method ... | |
| throw Exception and catch Exception | 10/9/2007 |
| Q: The class A declares to throw ExceptionA, the class B declares to catch ExceptionB. How can the ... A: Izzzz - > The class A declares to throw ExceptionA, the > class B declares to catch ExceptionB. ... | |
| throw Exception and catch Exception | 10/9/2007 |
| Q: The class A declares to throw ExceptionA, the class B declares to catch ExceptionB. How can the ... A: Izzzz - > How can the class B access an instance of class A? > An instance of class B can always ... | |
| Code Math Error | 10/8/2007 |
| Q: i need to find the smallest positive integer n such that these two equations are NOT equal ... A: Roxy, I can see where the error is occuring, but I do not know how to fix it. Java is not the ... | |
| Is the ThreadLocal a container, and can only contain one variable at a time? | 10/3/2007 |
| Q: Is the ThreadLocal a container, and can only contain one variable at a time? Thanks,lzzzz A: Izzzz - ThreadLocal is a container, and it can contain one object at a time, per thread. Each ... | |
| how to create a cirle | 10/3/2007 |
| Q: I want to create a game using java application.I want this game to work like this, I've got 3 ... A: Ditto, There are a lot of issues implicit in your question. I'll try to address a few of them. ... | |
| bytes = characters ? | 9/17/2007 |
| Q: I wonder if you knnow these three questions, 1. As we know, Java uses two bytes to store one ... A: Izzzz, > > 1. As we know, Java uses two bytes to store one > character, does the operating ... | |
| variables of primitive type = scalar variables? | 9/14/2007 |
| Q: Do you know why we call the variables of primitive type scalar variables? Thanks, lzzzz A: Izzzz - I think the term "scalar variable" is to distinguish scalar types from aggregate or ... | |
| Are the term "character literal" and "character constant" the same? | 9/12/2007 |
| Q: Are the term "character literal" and "character constant" the same? Thanks, lzzzz A: Izzzz, Yes, in a description of Java code, they are the same. char a = 'x'; // set a to ... | |
| getch() in java | 9/12/2007 |
| Q: "please could you tell me how to replace the c instruction getch() with something else in Java but ... A: TN - I don't understand your question. There is no portable way to read a single character from ... | |
| Is array a data type in Java and C++ ? | 9/9/2007 |
| Q: Is array a data type in Java and C++ ? Thanks, lzzzz ANSWER: Izzzz - Array is a data type in ... A: Izzzz - The array object type is kind special, so you won't find it explicitly in the API ... | |
| Is array a data type in Java and C++ ? | 9/9/2007 |
| Q: Is array a data type in Java and C++ ? Thanks, lzzzz A: Izzzz - Array is a data type in Java, it is a subclass of Object. For example, the following is ... | |
| Upload existing file | 8/31/2007 |
| Q: I am working on a web application. I have a some issues regarding particular equipments. When the ... A: Usha, I cannot understand enough about your implementation to recommend a specific solution, and ... | |
| int var = 1234 ? | 8/19/2007 |
| Q: If I declare a variable is int, can I assign a value of 1234 to it? because one ASCII number ... A: Izzz, When you express "1234" as a string of ASCII characters, it would require one byte for each, ... | |
| Host Access Class Library X Host Access Beans | 8/17/2007 |
| Q: autECLPS...) to do this. But package (the only I was able to found) com.ibm.eNetwork.ECL contains ... A: Zbynek, I don't think you'll find any Java package that will let you control the session already ... | |
| Host Access Class Library X Host Access Beans | 8/14/2007 |
| Q: autECLPS...) to do this. But package (the only I was able to found) com.ibm.eNetwork.ECL contains ... A: Zbynek, Well, I do not know of any 5250 access libraries that are free or open source. The IBM ... | |
| Invalidate session in HttpSessionBindingListener | 8/10/2007 |
| Q: Currently, i am facing a difficulty in invalidating a session in a class that has implemented ... A: Pak, First, you don't need to invalidate a session when its timeout is reached. The servlet ... | |
| Was Livescript or Mocha was used with Windows 3.0? | 8/3/2007 |
| Q: From what I’ve read, JavaScript was preceded by Livescript. Livescript was preceded by Mocha. ... A: Green, Well, I'm not exactly an expert on Javascript, but I did live through the early development ... | |
| Upload an xml file using an htp post request | 7/30/2007 |
| Q: I want a code to send an xml file using an http post request. A: Hetal, To upload a file, XML or any other kind, from a Java application you must use the java.net ... | |
| Project idea | 7/27/2007 |
| Q: I have an idea regarding the final year project. Its like text to speech applications for messages ... A: Jack, It may be possible to create a text-to-speech Java application for cell phones. It will ... | |
| How do reduce garbage collection overhead? | 7/26/2007 |
| Q: How do reduce garbage collection overhead? Thanks, lzzzz A: Izzzz - > > How do you reduce garbage collection overhead? > There is no simple answer to this ... | |
| Java messenger | 7/20/2007 |
| Q: I've been trying to create a java messenger program using servlets and applets interaction. i have ... A: Vhalerie, You can only call the getCodeBase() method on your Applet object. In the code snippet ... | |
| How does Java handle overflow and underflow? | 7/19/2007 |
| Q: How does Java handle overflow and underflow? Thanks, lzzzz A: Izzzz - Java does not give any explicit notifications of arithmetic underflow or overflow. For ... | |
| Regression Testing? | 7/19/2007 |
| Q: By any chance, do you know about Regression Testing? Thanks, lzzzz A: Izzzz - I know quite a bit about regression testing, but you haven't asked any specific question. ... | |
| Java Classpath | 7/18/2007 |
| Q: Newbie here... I recently began trying to program in java until I ran into, what I believe is, a ... A: Buddaboy, Yes, I understand why the compiler gave you an error in the first case. When you put an ... | |
| java script | 7/17/2007 |
| Q: i want to expand and restore my table in my home page screen using java script.could you plz tel ... A: Prashanthkumar, I don't know all that much about Javascript, despite the similar name it isn't ... | |
| final year project | 7/14/2007 |
| Q: Sir, I m in last year , I want to make a project in j2me , i have some knowledge of it , i ... A: Hardik, J2ME (JavaME) is a platform for developing apps for small, mobile, and wireless devices. ... | |
| Jrun Installation in a server | 7/10/2007 |
| Q: Can you please guide me as how to install JRUN in a server? I could pull a trial version of jrun ... A: Tina, > can you please tell me what is the > cost of all the three: > Jrun > JBoss > J2EE SDK ... | |
| Its about Java, please help me!! | 7/4/2007 |
| Q: 1.In your opinion, why do software developers choose Java technology in their program application ... A: Ryuzaki, I can answer the question about Java technology, but not the one about network games. I ... | |
| java!!! help!!! | 7/2/2007 |
| Q: ok now my Java is not working ... as U can tell.. i have downloaded several Java .. applets .. i ... A: Noal, You must be running Windows. Sigh. Uninstalling software on Windows can be a chore ... | |
| Accessing *.dll files injava | 7/2/2007 |
| Q: sir i have a Active x dll file which is written in VB i need to access that dll file inside my java ... A: Rajendra, You cannot call the functions in a DLL directly from Java, you must write some proxy code ... | |
| what is the assignment rule | 6/28/2007 |
| Q: byte b; final int l=100; b=l; no compilation error for this upper code but why error coming for the ... A: Sutapa, Both blocks of code are okay. The line b = l; should give a warning in both cases, ... | |
| Jrun Installation in a server | 6/28/2007 |
| Q: Can you please guide me as how to install JRUN in a server? I could pull a trial version of jrun ... A: Tina, Don't use JRun. It is very old. If you want a J2EE installation, get JBoss or the Sun ... | |
| Single Class with custom methods | 5/21/2007 |
| Q: I've been reading books about Object Oriented Analysis, and i dont understand what does a Single ... A: Jose Miguel - I am familiar with object oriented analysis, but I'm not an expert on it. There ... | |
| Java ArrayList | 5/18/2007 |
| Q: How do I create an arraylist in java of the type int? I tried the following code: ArrayList <int> ... A: Rob, The generics facility in Java can be used only for object (reference) types. It cannot be ... | |
| print in java | 5/15/2007 |
| Q: plese give me a solution to the following Question. How to print a bulk of data automatically in ... A: Roshin, Your question is not very clear. What do you mean by "a bulk of data"? Could you mean the ... | |
| JMS | 5/10/2007 |
| Q: Sir, I am trying to configure and run JMS in my system. for that i downloaded j2sdkee1.3.1 and ... A: Shinil, Why are you installing J2SDK 1.3 and J2EE 1.3? They are ancient. If possible, you should ... | |
| code | 4/30/2007 |
| Q: can you write a Java applet that reads in two floating-point numbers and determines if the first ... A: Danielle, Certainly you can write a Java program that compares two floating-point numbers and ... | |
| coding | 4/30/2007 |
| Q: how do i write a method called multiConcat that takes a String and an integer as parameters. Return ... A: Danielle, This is very easy to do, but the simplest approach will be very inefficient. public ... | |
| java arrays | 4/29/2007 |
| Q: is there anyway to have a multi-dimensions array in java? A: Maged, Yes, Java can support multi-dimensional arrays, it treats them as arrays of arrays. For ... | |
| java | 4/28/2007 |
| Q: I tried upgrading to java 6 but i have encountered this problem while downloading .. 1. Windows ... A: Carol, The Windows offline installation is usually the best way to go, that's what I always use. ... | |
| structs | 4/28/2007 |
| Q: Can I change the name of the struts-config file what should be the name of struts-config file if ... A: Sree - I'm not an expert on Struts, unfortunately, but I do know a little about it. In Structs ... | |
| filesize | 4/3/2007 |
| Q: I need to write a Coldfusion Java extension passing a filename as an argument and then returning the ... A: Joe, I don't know anything about writing Coldfusion Java extensions, although I know it should ... | |
| JPanel+swing +java | 4/3/2007 |
| Q: Is there any method to align the JPanel inside frame. I want to fix the position of a JPanel inside ... A: Vijay, There are several ways to align a JPanel inside a JFrame. You'll need to consider your ... | |
| Java: polymorphism | 4/2/2007 |
| Q: i am little confunsion in 1 basic fundamental of compiler desinging , in compiler books mention ... A: Nilesh, Method overloading in Java is when you have several methods that have the same name, but ... | |
| Users Connected to site | 3/26/2007 |
| Q: How do u know how many users r connected to a site? A: Manjula, I don't understand what you mean by "users r connected to a site". Are you thinking ... | |
| i am getting problem to run java prog in another | 3/25/2007 |
| Q: class Hello { public static void main(String args[]) { System.out.println("Hello ALLEXPERTS.COM"); ... A: Saidulu, Okay, you have a lot of the right code here, but you are missing something important. ... | |
| RSA java ! | 3/23/2007 |
| Q: Assume that there are two machines A and B where A will provide the public key for RSA encryption ... A: Michael, You are being asked to implement the encryption and decryption algorithms of RSA. That ... | |
| Java Batch file | 3/20/2007 |
| Q: I would like to write a Java file which functions as Batch file how to write? any examples or link ... A: Lucksman, I don't know what you mean by "functions as a Batch file". It sounds like you want to ... | |
| Is the "java abstract" the counterpart of "c++ virtual"? | 3/19/2007 |
| Q: Is the "java abstract" the counterpart of "c++ virtual"? Thanks, lzzzz A: Izzzz - No, the Java keyword 'abstract' is nothing like the C++ keyword 'virtual'. A C++ method ... | |
| assignment | 3/19/2007 |
| Q: i have given an assignment to make a java program which shows the output "starics in diamond shap" ... A: Naeem, I had a lot of difficulty understanding your question, but I think you mean "asterisks in a ... | |
| Sort 2 attributes with collection sort | 3/16/2007 |
| Q: I solved the problem to sort the Employee first based on Employee Id and then based on Employee ... A: Mary, You can easily combine the results from several Comparators for an object class into one ... | |
| xxxFactory classes and singleton | 2/1/2007 |
| Q: I found almost all xxxFactory classes has a newInstance() static method, does that mean those ... A: Izzzz, > I found almost all xxxFactory classes has > a newInstance() static method, does that > ... | |
| portable java | 1/12/2007 |
| Q: I am fairly new to java (I've been studying it for a couple months). I am wondering if I can put a ... A: Miles, You can do this, and bring a usable JRE with you. You could also set up your applications ... | |
| Boolean vs. true and false? | 1/12/2007 |
| Q: Just a thought, I wonder why JDK provides a Boolean, I don't see anywhere we have to use it instead ... A: Izzzz - > I wonder why JDK provides a Boolean, I don't > see anywhere we have to use it instead of ... | |
| static methods | 1/1/2007 |
| Q: what is this java language specification. where can i find itwhy we can not override a static method ... A: Surendra, > > what is this java language specification? > The Java Language Specification (JLS) ... | |
| static methods | 12/31/2006 |
| Q: why we can not override a static method in subclass A: Surendra, > > why we can not override a static method in subclass? > Static methods are implicitly ... | |
| Another multithread question? | 12/30/2006 |
| Q: if somebody created a class and he/she says that this class is thread-safe, does that mean this ... A: Izzzz - > if somebody created a class and he says that this > class is thread-safe, does that mean ... | |
| Another multithread question? | 12/29/2006 |
| Q: What about if my application starts multithreads and they all share the same instance of class A? in ... A: Izzzz - If several threads in your program share the same instance of class A, then class A would ... | |
| Another multithread question? | 12/21/2006 |
| Q: Suppose my application uses the class A, and the class A uses the class B, and I can tell the class ... A: Izzzz - The situation isn't that bad. If you have an instance of class A, which uses an ... | |
| help!! | 12/21/2006 |
| Q: 1.What is a constructor and why is it important? Is it possible to write a java code without a ... A: Dahlia, > > 1.What is a constructor and why is it important? Is > it possible to write a java ... | |
| Query regarding java | 12/19/2006 |
| Q: Is java is better than .net? If yes why it is. Tell me more about the need of JAVA in market. As a ... A: Pratik, > > Is Java better than .net? > Well, both Java and Microsoft .net have advantages and ... | |
| Generics and Type Erasure problem. | 12/17/2006 |
| Q: I've tried searching the web for 2 days without answer. I have a ApplicationHelper.java that ... A: Shawn, You are essentially correct that the type erasure is what's generating your warning. ... | |
| protected constructor and anonymous class? | 12/12/2006 |
| Q: So if we use the syntax like new TimerTask(), which means we call the TimerTask constructor from the ... A: Izzzz - > So if we use the syntax like new TimerTask(), which > means we call the TimerTask ... | |
| protected constructor and anonymous class? | 12/11/2006 |
| Q: The the constructor of the class java.util.TimerTask is protected, why I can new it like I did in ... A: Izzzz - > > The constructor of the class java.util.TimerTask is > protected, why I can new it ... | |
| SCJP | 12/8/2006 |
| Q: QUESTION NO: 76 Exhibit: ClassOne.java 1. package com.abc.pkg1; 2. public class ClassOne { 3. ... A: Mandar, For question 76, the correct answer is A. If your book said the answer that compilation ... | |
| SCJP | 12/8/2006 |
| Q: QUESTION NO: 71 Exhibit: 1. class A { 2. public byte getNumber () { 3. return 1; 4. } 5. } 6. 7. ... A: Mandar, Ah, these are easy questions. For Question No 71, there is an obvious problem at line ... | |
| SCJP | 12/5/2006 |
| Q: QUESTION NO: 139 Exhibit: 1. class A implements Runnable ( 2. int i; 3. public void run () ( 4. try ... A: Mandar, Question 139 expects you to remember how various thread capabilities work. In this case, ... | |
| SCJP | 12/5/2006 |
| Q: QUESTION NO: 136 Given: 1. public class Foo { 2. public static void main (String [] args) { 3. ... A: Mandar, Both of these questions ask you to understand how StringBuffer works, and how arguments ... | |
| SCJP | 12/4/2006 |
| Q: QUESTION NO: 75 Given: 1. public class A { 2. void A() { 3. System.out.println(“Class A”); 4. } 5. ... A: Mandar, Question 75 is easy: the code is perfectly legal. It simply runs with no output. Lines ... | |
| SCJP | 12/4/2006 |
| Q: Sir thanks for answering to my questions........ QUESTION NO: 74 Given: 20. public float ... A: Mandar, All of this code is legal. However, there are some conventions or best practices that ... | |
| SCJP | 12/2/2006 |
| Q: QUESTION NO: 57 Given: 1. public class Test { 2. public static void main(String[] args) { 3. int x = ... A: Mandar, This question is trying to be tricky. You have to be fully aware of the syntax of the ... | |
| SCJP | 12/2/2006 |
| Q: QUESTION NO: 66 Given: 1. class A { 2. } 3. class Alpha { 4. private A myA = new A(); 5. 6. void ... A: Mandar, Given the code that they've shown you here, three of the statements are correct: A, B, ... | |
| SCJP | 12/1/2006 |
| Q: # QUESTION 82 Given: 1. public class Outer{ 2. public void someOuterMethod() { 3. // Line 3 4. } 5. ... A: Mandar, Line A, "new Inner();" will create an instance of the class Outer.Inner. Line A is ... | |
| SCJP | 11/30/2006 |
| Q: QUESTION 63 Given: 11. int i = 0, j = 5; 12. tp; 13. for (;;) { 14. i++; 15. for(;;) { 16. if (i> ... A: Mandar, This code, as you've typed it, has two problems. 1. Line 12 has a syntax error: it ... | |
| SCJP | 11/30/2006 |
| Q: QUESTION 59 Given: 1. public class OuterClass { 2. private double d1 = 1.0; 3. // insert code here ... A: Mandar, There are five choices. A - this code is not legal, because it defines a static ... | |
| how to access data site that use ActiveX controls | 11/22/2006 |
| Q: I want to pull data from a web site that is heavily using Ms-ActiveX controls. How can i do this ... A: Jayant, > I want to pull data from a web site that is > heavily using Ms-ActiveX controls. How can ... | |
| regarding synchronization | 11/22/2006 |
| Q: >If the rest of your program ensures that a method will >not be called against the same object from ... A: Izzzz - > > 1/ Do I need to be care of the rest of my > program, because this method doesn't ... | |
| regarding synchronization | 11/18/2006 |
| Q: With the following static method, 1/ do we need to synchronized it because it is static method and ... A: Izzzz - As written, this method does not really need to be synchronized. Let's discuss your ... | |
| teacher question | 11/5/2006 |
| Q: Can you help me? this is the previous program. i don't know whether it can work or not.if i have ... A: Arianto, Okay, I understand your questions better now. I did not understand that you had to ... | |
| teacher question | 11/4/2006 |
| Q: i have a question from my teacher.can you please help me to find the solution? this is the question ... A: Arianto, > Find a class in the Java API that implements a > static method to perform a sort on an ... | |
| Sorting Collections | 11/3/2006 |
| Q: I need to sort a list of Objects where the objects may belong to many different classes. A: Kha, If you need to sort a list composed of many different types of Objects, then you must ... | |
| ask two questions | 11/2/2006 |
| Q: 1/ if we want a class object serializable, we have to make all its attributes serializable or mark ... A: Izzzz - > 1/ if we want a class object serializable, we have > to make all its attributes ... | |
| Sorting Collections | 11/2/2006 |
| Q: I have a list of Object. Every object has some same attributes. I want to sort this list by object's ... A: Kha, You can sort any List of Objects, as long as all the Objects implement the interface ... | |
| anonymous classes | 11/1/2006 |
| Q: Why anonymous classes don't work with ArrayList? For example, if I write something like the code ... A: Cesar, > > Why anonymous classes don't work with ArrayList? Anonymous classes work fine with ... | |
| It seems like we can not cast a array, why ? | 11/1/2006 |
| Q: It seems like we can not cast a array, why ? -------------------------------------------- public ... A: Izzz - You cannot cast an array of a supertype into an array of a subtype. That is illegal in ... | |
| java Networking | 10/31/2006 |
| Q: Please i need help i want to know how can i creat Java Desktop chatting Application that [Work on ... A: Mutaz, A Java networking application will work on a WAN or a LAN, as long as you write it ... | |
| I have two questions about array | 10/30/2006 |
| Q: I have two questions about array, 1/ what happens if I define a zero length array such as ... A: Izzzz - > > 1/ what happens if I define a zero length array > such as String[0] ? It is perfectly ... | |
| class's signature ? | 10/12/2006 |
| Q: For a method , we can say "the method's signature", but for a class, can we say "the class's ... A: Izzzz, > > For a method , we can say "the method's signature", > but for a class, can we say "the ... | |
| how to generate serialVersionUID ? | 10/11/2006 |
| Q: Java Doc says that A serializable class can declare its own serialVersionUID explicitly by declaring ... A: Izzzz - You don't have to generate any fancy number. You can just set any number. The only ... | |
| Java | 10/11/2006 |
| Q: how to get console window(as we run a console application in .net)as we run a run a java program. A: Muthulakshmi, If you want to run a Java program that does console I/O (using System.in and ... | |
| pixels and centimeters | 10/4/2006 |
| Q: Gud day! I just want to asl if how can i convert pixels to centimeters? Thank you.... A: Hannah, It is possible to obtain sizing information so that you can convert from screen pixels to ... | |
| Is the statement "Iterator also known as Cursor" correct? | 10/3/2006 |
| Q: Is the statement "Iterator also known as Cursor" correct? Thanks, lzzzz A: Izzzz, Well, an iterator is similar to a cursor, but the two words are not typically used the ... | |
| Java API to create a temporary folder in file system ? | 9/29/2006 |
| Q: I heard that we could use Java API to create a temporary folder in file system, and OS will manage ... A: Izzzz - > I heard that we could use Java API to create a > temporary folder in file system, and OS ... | |
| Skipping a lost packet? | 9/27/2006 |
| Q: ok, lets see if I can be more specific.. so I followed the stack trace back to where it was causing ... A: Josh, I sent you a long answer to this question several days ago, but AllExperts appears to have ... | |
| Skipping a lost packet? | 9/26/2006 |
| Q: Ok, me and a friend are making a game that is LAN. We are using MulticastSockets to connect. Kinda ... A: Josh, Well, I don't think that dropping packets could be the root cause of your problem. When the ... | |
| Math.random() method | 9/22/2006 |
| Q: The random() method is found in the Math class, right? But what exactly does it do when invoked? ... A: Nelson, The method Math.random() generates pseudo-random numbers in the range [0,1). Each time ... | |
| diplay location of a drawn circle | 9/19/2006 |
| Q: I read the suggested website and your suggestion in Command Promt window but didn't work. Where do I ... A: Tim, The sequence you describe for creating a Jar file is correct, according to the JCreator web ... | |
| diplay location of a drawn circle | 9/16/2006 |
| Q: Would you please show me how to convert the java file such the one you wrote into jar file (EXE ... A: Tim, > Would you please show me how to convert the java file > such the one you wrote into jar file ... | |
| AccessControlException | 9/15/2006 |
| Q: Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: access denied ... A: Chandu, These exceptions are to be expected. It would appear that you tried to open a local file ... | |
| diplay location of a drawn circle | 9/12/2006 |
| Q: I would like to display the location (x=400,y=400)of the gray circle right on top of it. Please ... A: Tim, Drawing text is pretty easy. You just create a Font object, set it on your Graphics object, ... | |
| Do input/output stream are always relative to the user/programmer code ? | 9/11/2006 |
| Q: I wonder if the concept of the input/output stream are always relative to the user/programmer code, ... A: Izzzz - > I wonder if the concept of the input/output stream > are always relative to the ... | |
| applets | 9/11/2006 |
| Q: my name is chandu am working as a software engineer. I came across a situvation that... i have to ... A: Chandu, > > I came across a situation that... > i have to create a frame in applets Yes, it is ... | |
| Calling functions by name | 9/9/2006 |
| Q: Maybe I did not explain it right, but not Calc is the issue. This is one function and will stay that ... A: Mihai, > Maybe I did not explain it right, but not Calc is > the issue. This is one function and ... | |
| Calling functions by name | 9/8/2006 |
| Q: I was weondering if it is possible to "compile" the name of a function I want to call from an other. ... A: Mihai, Yes, it is possible to call functions by name, but it isn't very easy or efficient. You can ... | |
| How to be a good java programmer? | 9/2/2006 |
| Q: I am 22 year old. I have completed a three years course of Bachelor of science in Information ... A: Apurva, > I desperately want be a java programmer. ... > Can you give me some tips how to do it? > ... | |
| java | 9/1/2006 |
| Q: can anyone tell me how to send email using spring framework in java? also provide me the code. A: Deep - The Spring framework offers several classes for sending e-mail. Unfortunately, I've never ... | |
| is List index re-arranged? | 8/31/2006 |
| Q: I wonder if a List re-arranges the index after one or more its element is deleted in the middle? ... A: Izzzz - > I wonder if a List re-arranges the index > after one or more its element is deleted in ... | |
| application memory space | 8/30/2006 |
| Q: I have three questions about application memory management, 1.does an application run within its ... A: Izzzz - Okay, these are not difficult questions. > 1.does an application run within its own memory ... | |
| log information and log level | 8/11/2006 |
| Q: A Logger such as Log4j has several logging levels -- debug, info, warn, error, fatal, I wonder what ... A: Izzzz - Basically, it is just like the names indicate. debug - debugging and program tracing ... | |
| Ç and \u00E7 | 8/9/2006 |
| Q: I wonder why the following first statement works, but the second one doesn't, because \u00E7 is ... A: Izzzz - Is this a trick question? \\u00E7 is not the unicode value for uppercase C with cedilla, ... | |
| run time problem | 7/13/2006 |
| Q: I just started on java and wrote the helloworld.java program. It compiled fine (javac ... A: Jian, > > Exception in thread "main" > java.lang.UnsupportedClassVersionError: Ch2Birthdate > ... | |
| java -cp resourcedir;lib.jar -jar main.jar | 7/10/2006 |
| Q: I asked you one question about java classpath. Now I encounter another problem with "java -cp ... A: Izzzz - If you run the command "java -cp resourcedir;lib.jar -jar main.jar" then the classpath is ... | |
| Gegorian Calendar in Java | 7/8/2006 |
| Q: I want to write a code in java that constructs a gegorian calendar, where the months are represented ... A: Talia, > > I want to write a code in java that constructs > a gregorian calendar > Java already ... | |
| wonder how 'this' works | 7/6/2006 |
| Q: Ha, that is the magic "this" I forgot. What can the "this" represent, overall? can it represent a ... A: Izzzz - > > What can the "this" represent, overall? > can it represent a method? No, the keyword ... | |
| Where is the Iterator interface implementation? | 7/6/2006 |
| Q: I am using the java.util.HashSet class, which has an Iterator method that returns an Iterator. I ... A: Adrien, > > When I look into java.util package, there is only > an Iterator interface (no ... | |
| wonder how the | 7/5/2006 |
| Q: I wonder how the "replace(char oldChar, char newChar)" method of the String class is implemented, ... A: Izzzz - The replace method works on the String object for which it is called. It creates a new ... | |
| Career in Programming | 7/3/2006 |
| Q: Neil, If you had to do it all over again, would you still learn java over the other programming ... A: Paul, Well, when I was first learning to program, Java didn't exist yet. I learned PL/1, ... | |
| java package starting point | 6/26/2006 |
| Q: I wonder where does the java package root start from. With the following code, the java statements ... A: Izzzz - The Java package root starts at each location along the CLASSPATH. The Java compiler and ... | |
| How to Print a Simple Text File in Java? | 6/24/2006 |
| Q: I hope you are doing okay. Neil, i am stuck in a problem. Actually i am developing an application ... A: Jules, There are several ways to print from Java. First, I want to understand what you are trying ... | |
| try and finally block exceptions | 6/23/2006 |
| Q: I wonder if the following method addContact() will throw NamingException and SQLException if those ... A: Izzzz - With the code written as you have shown, it is not possible for two exceptions to occur. ... | |
| static methods and inheritance | 6/19/2006 |
| Q: I saw the following sentence on Sun Java Forum, is that right? With static methods you lose ... A: Izzzz - > > With static methods you lose inheritance, > polymorphism and all the fun stuff of OO. ... | |
| Java networking under Linux and Windows | 6/17/2006 |
| Q: Sir, I tried to have communication between 2 systems in which one is in Windows XP and the other in ... A: Siva, In general, Java doesn't care whether it is running on Linux, or Windows, or any other ... | |
| Is the Java bytecode the same as the binary code? | 6/16/2006 |
| Q: one more question, Is the Java bytecode the same as the binary code? Thanks, lzzzz A: Izzzz - > > Is the Java bytecode the same as the binary code? > That depends on what you mean by ... | |
| Where do these two mehtod readResolve() and writeReplace() come from? | 6/14/2006 |
| Q: Where do these two mehtod readResolve() and writeReplace() come from? Thanks, lzzzz A: Izzzz - Both of those methods are special parts of the JVM's support for serialization. You can ... | |
| Is it normal to throw an exception from a constructor? | 6/13/2006 |
| Q: another) Is it normal to throw an excepetion from a constructor? Thanks, lzzzz A: Izzzz - Yes, it is normal to throw an exception from a constructor. In fact, throwing an exception ... | |
| how many copies of the attribute | 6/10/2006 |
| Q: With the following code, how many copies of the attribute "i" and method "testMethod" in the memory? ... A: Izzzz - With the code you sent, there will be one copy of the method testMethod in memory, and no ... | |
| java logging | 5/25/2006 |
| Q: I m currently developing a small Java application. I need to use the Java Logging API. Do you know ... A: François, Yes, there are a couple of free viewers for the Java Logging API's XML format. I ... | |
| How many ways we can get a class object for the java reflection? | 5/25/2006 |
| Q: One more thing, I can find the "evidence" for all other ways except the first way: 1. Class c = ... A: Izzzz - > One more thing, I can find the "evidence" for all > other ways except the first way: > ... | |
| How many ways we can get a class object for the java reflection? | 5/24/2006 |
| Q: How many ways we can get a class object for the java reflection? Are the following 4 ways correct? ... A: Izzzz - Yes, all four of these ways will work. However, the argument to Class.forName must be a ... | |
| Serializable in Java | 5/20/2006 |
| Q: good morning sir, could please tell me about Serializable in java with a suitable example. and in ... A: Ram, The java.io.Serializable interface is used to mark classes that may be written using ... | |
| about super.someMethod() | 5/19/2006 |
| Q: As I know, the statement super.someMethod() only calls one level up, but how can we call two or ... A: Izzzz, > > the statement super.someMethod() only calls one level up > This is not quite true. ... | |
| If I only use static mehtods of a class, will the JRE still create a object of that class ? | 5/8/2006 |
| Q: If I only use static mehtods of a class, will the JRE still create a object of that class ? Thanks, ... A: Izzzz - > > If I only use static methods of a class, will the > JRE still create an object of ... | |
| Do we need to make every class (we developed) ready for multithreading ? | 5/4/2006 |
| Q: Do we need to make every class (we developed) ready for multithreading ? Thanks, lzzzz A: Izzzz - > > Do we need to make every class (we develop) > ready for multithreading ? No, you do ... | |
| vinod | 5/3/2006 |
| Q: I have a file in the server and i want that file to be downloaded into my hard disk. How should i do ... A: Vinod, > > I have a file in the server and i want that file to > be downloaded into my hard disk. ... | |
| binary trees | 5/3/2006 |
| Q: the resulting tree will NOT be balanced. Why is that the case? A: Sudha, I think it depends on how you write the tree to disk. If you write the tree to disk in a ... | |
| if the superclass class implements Serializable, does the subclass need to implement Serializable as well? | 5/2/2006 |
| Q: if the superclass class implements Serializable, does the subclass need to implement Serializable as ... A: Izzzz - > > if the superclass class implements Serializable, > does the subclass need to implement ... | |
| How to share object between threads? | 5/1/2006 |
| Q: I have two follow-up questions, 1/ How many ways do we have to share an object between threads? 2/ ... A: Izzzz - > > How many ways do we have to share an object > between threads? This isn't really a ... | |
| How to share object between threads? | 4/21/2006 |
| Q: How to share object between threads? Thanks, lzzzz A: Izzzz - > > How to share object between threads? > You don't need to do anything special to share ... | |
| Parsing file to hashmap | 4/4/2006 |
| Q: I want to parse a .config file to concurrent hashmap. It should also perform some validation checks ... A: Saurabh, I don't understand your question. The program you are being asked to write looks simple ... | |
| Java and CGI | 4/4/2006 |
| Q: Now I am having other problems with CGI script and Java. I am trying to write a client side java ... A: Kimsan, Your Java code is okay, although I do not approve of hard-wiring the URL into the main ... | |
| How to know whether an object is executed by more than one thread or not? | 4/3/2006 |
| Q: How to know whether an object is executed by more than one thread or not? Thanks, lzzzz A: Izzzz - There are a couple of ways of telling whether an object's methods are being invoked from ... | |
| What is the difference between reflection and introspection ? | 3/20/2006 |
| Q: What is the difference between reflection and introspection ? Thanks, lzzzz A: Izzzz - They mean mostly the same thing, but can be used slightly differently. A language that ... | |
| Java | 3/20/2006 |
| Q: I am very new to Java Programming and i can say that i know nothing about it. At the moment, i need ... A: Kimsan, The project you describe is not for a Java beginner. It will be too difficult. However, I ... | |
| java web crawler | 3/19/2006 |
| Q: Im trying to develope a webcrawler that will index web pages and feed them into a database. But i ... A: Hassan, Reading your code, it looks like you want the AWT List object to be part of your GUI. ... | |
| CPU | 3/10/2006 |
| Q: Please give me the source code in java for finding the cpu utilization of a computer. Thanks A: Meghala, There is no good portable way to do that. Every operating system provides different ... | |
| regarding class and interface | 3/9/2006 |
| Q: I got this conclusion by using java compiler to compile several pieces of codes as follows, is my ... A: Izzzz - Those conclusions are essentially correct, but they could be stated more accurately. I'd ... | |
| What is the difference between creating object by using new and newInstance ? | 2/28/2006 |
| Q: What is the difference between creating object by using new and newInstance ? Thanks, lzzzz A: Izzzz - > > What is the difference between creating object by > using new and newInstance ? ... | |
| inheritance and superclass instance | 2/7/2006 |
| Q: I remember when constructing a subclass, the compiler have to call its superclass constructor first, ... A: Izzzz - > I remember when constructing a subclass, the compiler > has to call its superclass ... | |
| Invoking Web Services through JSP | 2/6/2006 |
| Q: I hope you are doing fine and well. Neil, i have a particular question where i am stucked at. ... A: Juliana, Ah, this is a little outside my expertise. I've written JSPs, and I've played with web ... | |
| java networking | 2/6/2006 |
| Q: ------------------------- Hi I apologize because i am slow to pick things up as i am still new to ... A: Kim, > > How do i check if the rmiregistry is running? > Usually, you'd run it yourself. If you ... | |
| run program on server, share by clients | 2/5/2006 |
| Q: I am preparing the crm software on the home system, i want that my CRM software to put on the ... A: Vaibhav, If you are writing the CRM software to act as a server, you need to select some means for ... | |
| inheritance and superclass instance | 2/5/2006 |
| Q: If I use inheritance, the JVM will create a separate object of the type superclass for each specific ... A: Izzzz - > If I use inheritance, the JVM will create a > separate object of the type superclass for ... | |
| java networking | 2/4/2006 |
| Q: What do you understand about this line of code? service = ... A: Kim, > > When i compile the program, i got an exception > java.rmi.ConnectionException: ... | |
| thread and stack | 2/2/2006 |
| Q: execute me, one more question, I wonder if the same thread executes the same call chain/stack? ... A: Izzzz - > > I wonder if the same thread executes the same > call chain/stack? > Well, yes. Each ... | |
| critical error and RuntimeException | 2/1/2006 |
| Q: If a critical error occured, and I want the application stop, then can I just throw a ... A: Izzzz - > > If a critical error occured, and I want the > application to stop, then can I just ... | |
| static method and object reference | 2/1/2006 |
| Q: If I create a static method with a parameter, and the parameter is a reference to an object, then ... A: Izzzz - If you create a static method with an Object parameter, and the method code simply stores ... | |
| how many reference variable are created? | 1/30/2006 |
| Q: Two follow-up questions come up: 1/ I wonder why There is only one local variable of the Foo type, ... A: Izzzz - > > 1/ I wonder why There is only one local variable > of the Foo type, since there will ... | |
| becoming a Sun Certified Java Programmer | 1/29/2006 |
| Q: what do you mean by this >>>2. Use Java for real projects. Could you explain it to me? I'm still in ... A: Hans, > > what do you mean by this >>>2. Use Java for real projects. > > Could you explain it to ... | |
| becoming a Sun Certified Java Programmer | 1/29/2006 |
| Q: How do you become a Sun Certified Java Programmer? What are the steps to be taken? I have been ... A: Hans, > > How do you become a Sun Certified Java Programmer? > You have to take a test designed ... | |
| how many reference variable are created? | 1/20/2006 |
| Q: I would like to know how many reference variable "foo" itself are created, and how many object of ... A: Izzzz - public static void main(String[] args) { for(int i=0; i<10; i++) { Foo foo = new ... | |
| string | 1/18/2006 |
| Q: I am attempting to build program in which a program would prompt the user to enter the name of a ... A: Kim, Well, this isn't exactly the best way to use sockets, but the approach should work. You ... | |
| Sorry for question again | 1/18/2006 |
| Q: 1/ do you mean if the class doesn't have a custructor with no arguments, we have to use the method ... A: Izzzz - > > do you mean if the class doesn't have a custructor with > no arguments, we have to use ... | |
| Sorry for question again | 1/10/2006 |
| Q: Given that we use "new" to create instance1 and instance2, if I change the values of instance ... A: Izzzz - > > We use "new" to create instance1 and instance2, if I > change the values of instance ... | |
| Happy New Year! | 1/8/2006 |
| Q: I am confused about the following two questions: 1/if a class has static variable, can the class ... A: Izzzz, I can explain these two things. > 1/if a class has static variable, can the class > be ... | |
| Java | 12/23/2005 |
| Q: I'm a beginner in java and im building an 8 queen chess puzzle using java text console no graphics. ... A: Hyder, I'm familiar with the 8-queens problem, of course, although I have not bothered to write a ... | |
| java network access | 12/22/2005 |
| Q: Im making a program that will allow users to search a database, using keywords. i would also like to ... A: Shaz, In general, Java will not let you search the user's local folders and files from a remote ... | |
| Do you know why variables must be declared before it is used, but not methods? | 12/22/2005 |
| Q: another question :) Do you know why variables must be declared before it is used, but not methods? ... A: Izzzz - > Do you know why variables must be declared before use, > but not methods? > Yes. Local ... | |
| two semi-colons ? | 12/19/2005 |
| Q: I guess this the last question on this topic:) When I run the following program, why I got two ... A: Izzzz - > > why I got two semi-colons except for the first > and last one as follows? > > ... | |
| Sorry for not a java specific question | 12/18/2005 |
| Q: Welcome back. Hope you still remember this question. I wonder if you can tell me how to do the ... A: Izzzz - Here is the main routine, so you can see how I generated the test strings and how I timed ... | |
| Sorry for not a java specific question | 12/1/2005 |
| Q: I try to use recursive call to write a string reverse function as follows, my problem is that it ... A: Izzzz - Wow, you code has a lot of odd pieces. Let's look at a few of them. 1. ... | |
| Java | 11/28/2005 |
| Q: i need help on inserting an array to 6x6 2D arrays. In other words when I run the program the 6x6 ... A: Hyder, The code that you have written so far will correctly display a fixed 6x6 array of ... | |
| Java | 11/28/2005 |
| Q: There are couple of questions which i would like to ask. 1. I downloaded a piece of code from the ... A: Tan, 1. This little program is using a facility of the Java NIO packages to lock a file. In ... | |
| Java | 11/26/2005 |
| Q: I'm a beginner in java. I'm trying to make a simple choice menu e.g. Main menu 1. add numbers ... A: Hyder, I'm not sure if you are asking for a GUI menu (to use with a graphical display and ... | |
| uninstalling java | 11/22/2005 |
| Q: i had j2se 5.0 update 4. i couldnt uninstall it so i deleted all of its files from the start/search ... A: Tom, This is really more of a Windows question than a Java question, but I'll try to give you ... | |
| How Xhsc Works with Plain Text??? | 11/22/2005 |
| Q: I recently stumbled across Xhsc (The XML Hierarchical Structure Creator). Nice job by the way...I ... A: Jarno, Okay, what you want to do is not really what Xhsc was designed for. However, it can do ... | |
| Java | 11/18/2005 |
| Q: I encountered some problems with some of the sample codes that i downloaded from the Internet and ... A: Tan, Actually, these questions are not very complicated. First, this code: > public static void ... | |
| It seems that we can not throw an exception at class level as illustrated below, is there any reason for that? | 11/17/2005 |
| Q: It seems that we can not throw an exception at class level as illustrated below, is there any reason ... A: Izzzz - > > It seems that we can not throw an exception at > class level. Is there any reason for ... | |
| Access modifier is class level, not object level. what does it means? | 11/15/2005 |
| Q: I don't remember I got an answer to the question from you, if I did, sorry about that. My one ... A: Izzzz - > The term "class level, not object level" here has > the same meaning as what we use for ... | |
| Access modifier is class level, not object level. what does it means? | 11/13/2005 |
| Q: Access modifier is class level, not object level. what does it means? Thanks, lzzzz A: Izzzz - > Access modifier is class level, not object level. > What does it means? I'm pretty ... | |
| counting characters in a file | 11/11/2005 |
| Q: I need some help in counting the occurences of characters in a file. I got the code to open the file ... A: J - There are several ways to approach this problem. First, let's break it into its constituent ... | |
| Port 80 | 11/11/2005 |
| Q: For this, i tried the following program. but it returns a blank line and then quits.. here is ... A: Aswin, You've got a good start on this program, but you've forgotten an important point: web ... | |
| Java/j2ee | 11/10/2005 |
| Q: what is the data type used to store images in java A: Purushotham - > what is the data type used to store images in java? > Several different object ... | |
| What is the internally difference if I read data as bytes, characters, string and stream? | 11/9/2005 |
| Q: Actually I were not very clear those concept, now I am more clear. However, I still need to clear ... A: Izzzz - Okay, these are not difficult questions: > > 1/ Are bytes and stream the same things? > ... | |
| What is the internally difference if I read data as bytes, characters, string and stream? | 11/8/2005 |
| Q: I got another question. What is the internally difference if I read data as bytes, characters, ... A: Izzzz - Your question is rather vague. I'll try to give you some information about the differences ... | |
| Since ++ has higher precedence than =, why does the following code print 1 ? | 11/6/2005 |
| Q: Since ++ has higher precedence than =, why does the following code print 1 ? ... A: Izzzz - The unary operator '++' has a higher binding precedence than the binary operator '='. ... | |
| Do you know anything about pseudo code? | 11/2/2005 |
| Q: I check the link you gave me, those samples are much like a programming language, for example, those ... A: Izzzz - > what is the audience of the pseudo code? can > they understand those operators? > The ... | |
| Do you know anything about pseudo code? | 11/2/2005 |
| Q: Do you know anything about pseudo code? is there one pseudo language for each programming language, ... A: Izzzz - > Do you know anything about pseudo code? > Yes, at various points in my career I've had ... | |
| what is the difference between Floating-point numbers and Floating-Point Literals ? | 11/1/2005 |
| Q: I know what is Floating-Point Types. but what is the difference between Floating-point numbers and ... A: Izzzz - > what is the difference between Floating-point > numbers and Floating-Point Literals ? > ... | |
| I am waiting for you several days:) | 10/28/2005 |
| Q: Two questions for you, 1/ how to print a string in binary? that is , I want print out such as ... A: Izzzzz, Sorry this answer is late, I was away on a business trip. Anyhow, both of your questions ... | |
| not using blue j | 10/28/2005 |
| Q: im learning java in blue j and because of its design no main method is required ie you dont use ... A: Dominic, Unfortunately, your code had expired from RAFB.NET before I started working on your ... | |
| java | 9/11/2005 |
| Q: great! how do I create a place for a user to enter in a word? rebeccaI am so stumped! I am a ... A: Rebecca, > > how do I create a place for a user to enter in a word? > You don't have to, the code ... | |
| java | 9/10/2005 |
| Q: I am so stumped! I am a student and we were given this assignment to finish. it is a program that ... A: Rebecca, Looking at the code, it seems that all you have to do is fill in one method: ... | |
| testing | 9/6/2005 |
| Q: Do you have any tips on where I might add code to test the getDistance and BreadthFirstSearch ... A: Loz - > > Do you have any tips on where I might add > code to test the getDistance and ... | |
| string question | 9/5/2005 |
| Q: I thought that 'pass by reference' and s+=ˇ±world!ˇ± change s's value to "Hello world", why does the ... A: Izzzz, In the code, you've passed a reference to a String object to modify() method. We'll call ... | |
| String comparison | 9/2/2005 |
| Q: I will try the code. I am wondering if there are any web sites with sample codes that I can take a ... A: Jacques, > > I am wondering if there are any web sites > with sample codes that I can take a look ... | |
| String comparison | 9/1/2005 |
| Q: I am new in Java (JDK 5.0) programming and I have a problem that I am trying to solve. Basically, I ... A: Jacques, > > The problem I am having is to find a way to compare > the string entered by the user ... | |
| Loading software onto web site. | 8/24/2005 |
| Q: My name is Jason Sullivan. I have developed a GPS tracking device that I would like to allow people ... A: Jason, It sounds like there are two parts to your system: a server part that does back-end ... | |
| design pattern | 8/22/2005 |
| Q: 1.which design pattern is used when the entity bean is in tx,but it commited to passivated and then ... A: Sreedhar, Well, I'm no expert on design patterns, but I'll try to answer your questions. > 1.which ... | |
| using jar files | 8/19/2005 |
| Q: Background: I am new to java and have questions regarding jar files. I am working with a bundle of ... A: Steve, First, you are correct that you would need to add a Main-Class: statement to your manifest. ... | |
| which books or site to look for? | 8/19/2005 |
| Q: i m a teacher. i am actually planning to add a link to my school's already existing file which wud ... A: Shalini, I don't quite understand what you want to do; but it sounds like you want to give ... | |
| Java Script mouseover not functioning on Linux server | 8/16/2005 |
| Q: I looked at the things you suggested but didn't immediately see conflicts such as those you ... A: Tony, Well, the Javascript code you've got looks pretty dense. I can see what it is doing to some ... | |
| Java Script mouseover not functioning on Linux server | 8/15/2005 |
| Q: I have inherited a website to manage, and it had always worked fine before both on and offline. Now ... A: Tony, Well, I'm not nearly as good with the Javascript scripting language as I am with the Java ... | |
| Web Application Development | 8/13/2005 |
| Q: My question is: I have a web site and I would like to add a link to it, so by pressing on it, a ... A: Nik, > I could not find the source code for the example > you told me. Could you please provide ... | |
| Web Application Development | 8/11/2005 |
| Q: My question is: I have a web site and I would like to add a link to it, so by pressing on it, a ... A: Nik, Certainly you can do this with Java, although it won't be trivial. You can also do it with ... | |
| an InputStreamReader can convert 8 bit text to UNICODE. | 8/4/2005 |
| Q: An article says "an InputStreamReader can convert 8 bit text to UNICODE. An OutputStreamWriter does ... A: Izzz, > An article says "an InputStreamReader can convert > 8 bit text to UNICODE. An ... | |
| Since only a single copy of each method exists, why do we need to declare static methods? | 8/3/2005 |
| Q: Since only a single copy of each method exists, why do we need to declare static methods? Thanks, ... A: Izzzz - Static methods are fundamentally different from normal methods, even though only one copy ... | |
| Core java | 8/2/2005 |
| Q: if you're instantiating a Subclass object and if the Superclass constructor calls a method that is ... A: Sumit, > if you're instantiating a Subclass object and if > the Superclass constructor calls a ... | |
| copy java data to C structure | 8/2/2005 |
| Q: i m facing a problem that i have to copy java structure to C structure and C structure back to Java. ... A: Shyamal, > > i'm facing a problem that i have to copy java > structure to C structure and C ... | |
| Rotating Numbers | 7/10/2005 |
| Q: I'm trying to rotate the inputted word.. there seems to be an error that i don't really understand. ... A: Gerard, You've made a fair attempt at this exercise, but you've got some problems. The line ... | |
| adjacent repeating letters | 7/3/2005 |
| Q: Some words have adjacent repeating letters. For example, the word “tomorrow” has a double ‘r'. In ... A: Gerard, This is not an especially difficult program, but there are lots of tricky bits that you ... | |
| How to be a good programmer? | 7/2/2005 |
| Q: I hope you are doing fine and well. Neil, i am 23 years old. I even graduated with the Computer ... A: Chris, If you really want to be programmer, it just takes dedication and practice. If you don't ... | |
| jdbc query | 6/27/2005 |
| Q: i want to write a sql query which will return say nth highest salary from a table with schema. ... A: Divya, I'm not a great SQL programmer, but I'll take a try: 1. Use the following query: ... | |
| Sub programs in Java | 6/17/2005 |
| Q: Neal I made a programa that does 4 things: query of a table Insert a record to a ... A: Willy, I'm not sure what you are asking. Do you want to split your code into 5 separate Java ... | |
| InputStream and OutputStream. | 6/15/2005 |
| Q: Considering the sentence "the sender will use an OutputStream, while the receiver uses an ... A: Izzzz - > Considering the sentence "the sender will use > an OutputStream, while the receiver uses ... | |
| InputStream and OutputStream. | 6/15/2005 |
| Q: I always confuse the usage of InputStream with OutputStream. 1/We usually read from an InputStream, ... A: Izzzz - > > 1/We usually read from an InputStream, right? > Yes, an InputStream is for Java code ... | |
| entering a given .class file!! | 6/2/2005 |
| Q: ! i would like to ask a simple (probably) question, but i really don't know what to do with that! i ... A: Maki, If your teacher wrote the class in the simplest way, you don't have to do anything special ... | |
| How to use super keyword in main method ? | 6/1/2005 |
| Q: How to use super keyword in main method to call super class method if super class method is not ... A: Izzzz - > > How to use super keyword in main method to call > super class method if super class ... | |
| I was wondering that "super" in Java refers to the immediate parent or parent's parent ? | 5/31/2005 |
| Q: I was wondering that "super" in Java refers to the immediate parent or parent's parent ? Thanks, ... A: Izzzz - The keyword super generally refers to the type of the immediate parent class. However, ... | |
| Download files using java.net package | 5/31/2005 |
| Q: I am trying to download the files from any site using java.net package but it is not working. I am ... A: Prakash, Part of your code is correct, but the part that deals with web proxy address is wrong. ... | |
| How to use the new Java Collections Framework? | 5/24/2005 |
| Q: I found Java Collections Framework has been changed, for example, class Vector has been changed to ... A: Izzzz - You can still use the Collections framework in exactly the same way as you always have. ... | |
| changin the appearance of a string | 5/18/2005 |
| Q: i see updating the string was what was required. my next problem however is that i have a way of ... A: Dominic, Hmmm, this might be a little easier if I could see all of your code, but I'll try. In ... | |
| changin the appearance of a string | 5/17/2005 |
| Q: im currently making a game of hangman whilst learning java my current problem is that if i have a ... A: Dominic, The problem is that you are rebuilding the display[] array each time from the String ... | |
| hashcode() !!!!!!!!! | 5/17/2005 |
| Q: I dont know how to implement hashcode, and i need it urgently. can u please tell me the code for it ... A: Robert, The hashCode() method merely needs to return an int, such that the int always has the ... | |
| About path or autoexec.bat | 4/26/2005 |
| Q: Neal I did install succesfully Java. Directory Sun/appserver ...has 6000 files...200sub ... A: Willy, There are two possible problems here: 1. You installed the wrong thing - it sounds ... | |
| objects and equality | 4/18/2005 |
| Q: my question is simple and straightforward: how do you compare objects for equality? to make my ... A: CSCIstudent - There are two kinds of equality for Java object references: 1. whether two ... | |
| java | 4/17/2005 |
| Q: I would like to ask about a Java homework assignment I can't solve. : Develop a Java application ... A: Ava, Well, this assignment doesn't sound too difficult. Let's look at it piece by piece. > ... | |
| main class | 4/6/2005 |
| Q: im having a problem using net beans (java jdk) making a game of hangman. The problem is that when i ... A: Dominic, > > when i try to run any code it says that no > main class is found > There are two ... | |
| Probably trivial for you.. | 4/6/2005 |
| Q: Sir, Below is a copy / paste from part of my program. A class contains the following methods to use ... A: Sebastian, Well, there are a couple of problems with your code. I'm not sure how the data returned ... | |
| I have two questions on access modifiers, | 4/5/2005 |
| Q: I have two questions on access modifiers, 1/ Why do we need class modifier since I think class ... A: Izzzz - > > Why do we need class modifier since I think class > member modifier is enough? Class ... | |
| newline blues FIXED | 4/4/2005 |
| Q: arghhh! sorry I was being very dumb - ignore my previous email! I had forgotten to actually assign ... A: Dafydd, Well, you figured it out yourself. Very good. Your scheme is basically okay, as long as ... | |
| What is the difference between implicit conversion and casting? | 4/2/2005 |
| Q: What is the difference between implicit conversion and casting? Thanks, lzzzz A: Izzzz, > > What is the difference between implicit > conversion and casting? > Casting is an ... | |
| about null in HashMap and Hashtable | 4/2/2005 |
| Q: I saw on JDK API doc the statement "The HashMap class is roughly equivalent to Hashtable, except ... A: Izzzz - The value 'null' is a legal object reference that refers to no object. It is perfectly ... | |
| Networking | 3/31/2005 |
| Q: I am doing on a project(I am a student),titled network Monitoring software.I thought java would be ... A: Yonas - Java is a reasonable choice for most, but not all, network monitoring projects. Java ... | |
| accessing a linux machine thru a java program on windows client | 3/9/2005 |
| Q: how do i access a linux machine's file system or linux machine simply thru a java program running on ... A: Shivas, I'm having trouble understanding some parts of your question. You don't want to simply give ... | |
| bytecode | 3/6/2005 |
| Q: how are you? would you please explain about bytecode? why does java use it? goodbye A: Saeedeh - Bytecode is an important aspect of the Java virtual machine. It allows Java programs ... | |
| programming for beginners... | 2/21/2005 |
| Q: :) I am just a beginner in programming with java, and sometimes I try to begin with my ... A: Hanif, Well, I've done partial solutions for each of these problems so you can see what they would ... | |
| Help with these methods | 2/9/2005 |
| Q: can you show me how to create a method that finds the sum of rows and places it in an array, with ... A: Bajanisi, > > can you show me how to create a method that finds the sum of rows and places it in an ... | |
| Projections Questions. | 2/9/2005 |
| Q: I hope you are doing well. Neil, i've a problem, which i asked you before also. Actually, the ... A: Jules, Sadly, there are quite a few problems in your code. I was able to get it working with ... | |
| Do we need to specify JDK class path when we compile a class like the following? | 2/7/2005 |
| Q: Do we need to specify JDK class path when we compile a class like the following? C:\temp>javac ... A: Izzzz, > > Do we need to specify JDK class path when we > compile a class like the following? ... | |
| Java app slow loading | 1/21/2005 |
| Q: Neal, Hi ! I have a web server running a number of sites. I also use a java drop-down menu on a few ... A: Ian, I understand why your Java-based menu applet is slower and more troublesome on SSL-secured web ... | |
| Exception in Code. | 1/21/2005 |
| Q: last question. Neil, i've tried to use Java 2D but i'm getting really a strange exception, i would ... A: Jules, I tried looking at the code, but had some trouble getting it to work. Your page did not ... | |
| I need to go from Visual Basic knowledge to Java. | 1/20/2005 |
| Q: Well I know Visual Basic but I have to learn Java and I have to learn it now! But the most basic ... A: Justin, I don't know of any good converters to go from Visual Basic to Java. The two languages are ... | |
| socket programming : chat program | 1/20/2005 |
| Q: How to create the chat program where one server can chat with multiple client at the same time. For ... A: Coffy, Your question is too vague. There are many ways to create a chat program in Java, I would ... | |
| Image to BufferedImage Conversion | 1/19/2005 |
| Q: I hope you are doing fine. Neal, i am looking for a quick reply about a query. You might have ... A: Jules, > 1. How can we convert an "Image" type > to BufferedImage type for saving. Well, ... | |
| Why doesn't the following code print Equal? | 1/18/2005 |
| Q: I know implicit conversion will happens when we use + with string (probably call toString()) and ... A: Izzzz - Implicit conversion to String only happens for the + operator, as described in sections ... | |
| Audio comparison in Java | 1/18/2005 |
| Q: I'd like to ask some questions about voice recognition and sound comparison. I am trying to write a ... A: Burak, What you are attempting to do is not easy. You can use the Java Media Framework (JMF) to ... | |
| Why doesn't the following code print Equal? | 1/17/2005 |
| Q: Why doesn't the following code print Equal? I was thinking b1.toString() should be called ... A: Izzzz - > Why doesn't the following code print Equal? Because b1 is a different kind of object ... | |
| byte and int java type | 1/16/2005 |
| Q: I was thinking the only difference between the byte and int java type is that byte uses less memory ... A: Izzzz - > > I was thinking the only difference between the byte and > int java type is that byte ... | |
| inner class and anonymous class | 1/14/2005 |
| Q: I cannot find a summary of definition/restriction of inner class and anonymous class, so I deduce it ... A: Izzzz - Well, your three rules are correct, but not complete. There are actually some additional ... | |
| rolldice | 1/13/2005 |
| Q: which method to write the application for rolldice I have sample for rolling die, and try to add ... A: Henry, If I cannot see the code, then I cannot tell why it would not work to add another die. ... | |
| static link and dynamic link in Java? | 1/12/2005 |
| Q: I was thinking library or class link in Java, is there static link in Java like C++, I think there ... A: Izzzz - There is no such thing as static linking in conventional Java, because all JVMs are ... | |
| Java need help | 1/11/2005 |
| Q: What different between extends and implements A: AZ - > > What different between extends and implements > Java uses the "extends" keyword for class ... | |
| about java applet | 1/7/2005 |
| Q: how can i run a java applet in Win CE ? how can i search and modify data from txt file? thanks ... A: Bill, > > how can i run a java applet in Win CE ?? > I'm no expert on WindowsCE. However, I do ... | |
| Can't we declare variable insdie while like for loop? | 1/6/2005 |
| Q: We can declare variable inside for loop as follows, but it seem that compiler don't like we declare ... A: Izzzz - We can declare a variable in the leading part of a for() loop because the syntax allows ... | |
| where does the output of Runtime.getRuntime().exec("ls -l") go? | 1/5/2005 |
| Q: The code as follows, I wonder where the output go? I can't see any output in the shell. ... A: Izzzz - The output of the command doesn't go anywhere, with the code you've written. When you ... | |
| Exception Error please help | 1/2/2005 |
| Q: I am working on image processing in Java. I was writing a simple application which can gray-scale an ... A: Jules, Thanks for sending your code, it made analyzing the problem easier. Anyway, it took me a ... | |
| java | 1/1/2005 |
| Q: ...im new to pcs need to know about java....so what is java...my pc was give to me and there is ... A: Doug, Java is a programming language that can be used to write applications and web applets. You ... | |
| Can we use unsigned with primitive type like in C++? | 12/30/2004 |
| Q: Can we use unsigned with primitive type like in C++? Thanks, lzzzz A: Izzzz - > > Can we use unsigned with primitive type like in C++? > No, Java has no unsigned ... | |
| Difference Between Synchronised Method and Synchronised Object | 12/30/2004 |
| Q: I am designing a method to update the Collection Object. How can i avoid the deadlock situation. ... A: Anoop, The simplest way to avoid deadlock is to make all the methods of your object synchronized. ... | |
| I want to know whether or not System.exit(0) and finally can be used together? | 12/29/2004 |
| Q: I want to know whether or not System.exit(0) and finally can be used together? I didn't find the ... A: Izzzz - No, System.exit(n) and finally cannot be used together. The System.exit() method calls the ... | |
| Is there a standard way to implement out parameter in Java? | 12/21/2004 |
| Q: Is there a standard way to implement out parameter in Java? Thanks lzzzz A: Izzzzz - You've asked me this question three times now. Is my answer insufficient for you? ... | |
| about jini | 12/19/2004 |
| Q: please let me know about the basic concept behind JINI. Thank you. A: Hemalatha, JINI is a framework for distributed network services and service discovery. It ... | |
| java security | 12/17/2004 |
| Q: My question is that i have been asked to develop a obfuscator tool in java that helps to ... A: Shivas, Well, to obfuscate Java code, you need at least three facilities: (1) a package that can ... | |
| I try to ask you again, I don't receive any response for last two question. | 12/16/2004 |
| Q: Why doesn't operator + and byte work together? by default, + only returns int ? Thanks, lzzzz A: Izzzz - The + operator, when applied to anything but strings, acts as a binary numeric operator. ... | |
| Question | 12/14/2004 |
| Q: could I write a code to prevent anyone to read my messages in the mobile using JAva, unless they ... A: Dima, I'm sorry, I do not understand your question. Do you want to encrypt and decrypt text ... | |
| About security | 12/13/2004 |
| Q: i know some generators can decode the .class file to source code... is there anyway i can prevent? ... A: Roose, Yes, there are many different Java decompiler tools. The best of them can take a Java ... | |
| Java networking | 12/11/2004 |
| Q: Is it necessary for a java client to know the port of the server to communicate with the server ? A: Narayan, I think I hit the wrong button, sorry. Anyway, your question was: > Is it necessary for ... | |
| java beginner | 12/9/2004 |
| Q: i am a beginner to java. i have compiled several simple programmes (like HelloWorld etc) copying ... A: Ravindra, > ...it compiles but gets the error > exception in thread main noclassdeffounderror This ... | |
| I thought I already ask you this question,but I don't get respose, maybe system problem | 12/8/2004 |
| Q: How to implement an out parameter in java? can you give me an example code? thanks a lot lzzzz A: Izzzz - There is no language facility in Java for 'out' parameters -- all parameters in Java are ... | |
| hai I am new to java.Will... | 12/6/2004 |
| Q: hai I am new to java.Will U please Tell me some sites from where I can get the codings for java so ... A: Faizal, There are many good sites for Java beginners. Start with the official Java tutorial: ... | |
| multiplatform application | 12/5/2004 |
| Q: I'm a multimedia programmer and currently I involved in courseware development project. In this ... A: Nurbahyah, If you are developing courseware using MX2004, then you should be coding your ... | |
| I am sorry to have two questions, | 12/3/2004 |
| Q: I am sorry to have two questions, How to implement an out parameter in java? If for example, 25 ... A: Izzzz - There is no language facility in Java for 'out' parameters -- all parameters in Java are ... | |
| java and rss news feeds for my web site | 11/30/2004 |
| Q: . I'm not so much a technical person, but can usually figure things out enough to cut and paste, and ... A: Bill, There are several Java applications out there to read and display RSS. For example, ... | |
| Getting the Client IP in Certificates using keytool | 11/30/2004 |
| Q: I am developing a Client / Server Java Application. I am using SSL encryption using keystores both ... A: Sandeep, If you are writing a client/server application using SSL Sockets ... | |
| corejava | 11/29/2004 |
| Q: what is difference between instance variable and reference variable A: Kumara, An instance variable is a field or member variable of an object. For example, in the ... | |
| Nice to meet you again:) | 11/10/2004 |
| Q: Somebody said, access modifier is class level, not object level. what does that mean? How is access ... A: Izzzz - Access modifiers apply to all the instances of a class, not to individual instances. If a ... | |
| none | 10/14/2004 |
| Q: I guess you are right about building the mail_server that could collate and present all mails to the ... A: Meera, > I want to write a java software program that will > do parallel computing. Well, Java ... | |
| build a mail server | 10/13/2004 |
| Q: i am planning to build a small mail server that will collate all the different mails people have ... A: Meera, > > i am planning to build a small mail server that will > collate all the different mails ... | |
| About Java font object | 10/12/2004 |
| Q: I wanted to write java application. Within that I want to use my customized font. That font should ... A: Rajesh, It is possible to use custom fonts in Java 1.3 and later. The key method you need is the ... | |
| ImageIcon and getPath() | 10/12/2004 |
| Q: i'm am doing a prgram that display's a digital image in it by a JLabel and you can choosing it by a ... A: Mahmoud, The simplest way to make your icon file path work in this case is to use a File object. ... | |
| package fields, class state, etc ... | 10/11/2004 |
| Q: I was reading the documentation for the interface serializable and I came across some terms, that I ... A: Adrien, These are fairly simple questions, although I can see why the explanations might seem ... | |
| get hardware static and dynamic info | 9/29/2004 |
| Q: I want to know how can I get hardware(cpu,hard disk ,..)information using java programming language; ... A: Paria, There is no portable way for a Java program to obtain real-time system information. Some ... | |
| Network Game? | 9/27/2004 |
| Q: Let me start by descibing what I am trying to do. The idea is to create a boggle style game that can ... A: George, > ...description of game... > My goal is to automate it to the point that I start > the ... | |
| java error | 9/23/2004 |
| Q: I'm a beginner and currently learning Java right now.I'm following the tutorial "Your First Cup of ... A: Chovster, Yeah, is kind of problem is a big pain, especially on Windows where folks aren't ... | |
| array problem | 9/23/2004 |
| Q: i create an array to allow user to enter their 5 favourite numbers.then from the 5 numbers, this ... A: Callisto, This is a fairly simple problem, in your method compare(). You need to do two things: ... | |
| void function | 9/22/2004 |
| Q: Can you please tell me how to print the output dirently from the getAddress() from the Address ... A: Callisto, In the code you've sent, there is no output because the method getAddress() never gets ... | |
| Use of time | 9/21/2004 |
| Q: I tried using the GregorianCalendar class in java but it returns the entire ... A: Jian Carlo, The GregorianCalendar has the ability to return all the date information as a String, ... | |
| JAR Encryption | 9/20/2004 |
| Q: I got an applet. How can I prevent anyone from downloading it & decompiling the class file? Can I ... A: Vijai, > > How can I prevent anyone from downloading it and > decompiling the class file? > There ... | |
| I wan to learn java | 9/14/2004 |
| Q: I am just learning java.I have some knowledge of Html but java is very new to me.I remeber learing ... A: Tony, If you've only programmed with HTML and Javascript, I can see why you would be confused. The ... | |
| Interface with other apps | 9/14/2004 |
| Q: I want to interface another application thru a java program. Something like - type a character in a ... A: Sagar, Sorry, but this isn't really possible from Java. Communicating with other applications ... | |
| on core java | 9/13/2004 |
| Q: im new to java.i got a doubt that why should the class name and program name need to be same? A: Ram, A Java class must be defined in a file of the same name when the class is declared public. ... | |
| learning java | 8/23/2004 |
| Q: hai neal, i would like to teach java myself.could you please sugest me the web resourses ... A: Kiran, The best place to start is the official Java tutorial, here: ... | |
| Client/Server - Distributed Applications | 8/19/2004 |
| Q: I am going to implement a project in a month but don't have the required knowledge for that, that ... A: Morteza, There are several different good ways for two Java applications to share information over ... | |
| local variable vs. instance variable and instance variable vs. static variable | 8/17/2004 |
| Q: I've just had a thought - the relationship of local variable vs. instance variable and the ... A: Izzzz - Well, they are similar in that local variables have a narrower scope than instance ... | |
| java input databases | 8/16/2004 |
| Q: how to input database using table, and get field databases to form? and give me web for source code A: Zai, I do not understand your question. To use databases in Java, you need to use the JDBC ... | |
| How to do serialization in java? | 8/15/2004 |
| Q: With the following code fragment, I have three questions, 1/ myLinkedList is null, why is ... A: Izzzz - Okay, these are simple questions. > 1/ myLinkedList is null, why is buffer.length equal ... | |
| How to do serialization in java? | 8/14/2004 |
| Q: sorry to trouble you again. As to the two statements below, I was wondering why you closed the oos ... A: Izzzz - > As to the two statements below, I was wondering > why you closed the oos first? > > ... | |
| How to do serialization in java? | 8/12/2004 |
| Q: There are two follow up questions, 1/ Do the following two statements write object in memory? ... A: Izzzz - > 1/ Do the following two statements write object in memory? > ByteArrayOutputStream baos = ... | |
| How to do serialization in java? | 8/12/2004 |
| Q: How to do serialization in java? Thanks, lzzzz A: Izzzz - Serialization in Java is done in two separate ways. 1. Core Java Serialization The core ... | |
| I got two interview questions, could you please help? | 8/11/2004 |
| Q: I got two interview questions, could you please help? 1/ why can a constructor not be inherited? 2/ ... A: Izzzz - Okay, I can answer these pretty easily. > > why can a constructor not be inherited? > ... | |
| hello sir how are you... | 8/9/2004 |
| Q: how are you tell me about something about java api and structure of java api and guide me from ... A: Gaurav, The Java API documentation is available here: http://java.sun.com/j2se/1.4.2/docs/api/ The ... | |
| Making a game | 7/26/2004 |
| Q: ok, a few friends and i are designing and creating a MMORPG.....and were wonder how great of ... A: Mortamus, Java can actually present pretty sophisticated graphics, but until recently Java's ... | |
| Packet sniffing and editting | 7/26/2004 |
| Q: On an online java game, where data is stored on a server....it sends and recieves data packets. I ... A: Mortamus, It is perfectly feasible to change the data on the way to your client; a good proxy ... | |
| CALENDAR | 7/25/2004 |
| Q: Sir, I have to write a program that will take an input from a user Console.Sir how can i get the ... A: Nizam, It is perfectly feasible to print a calendar as your describe, using Java. The code that ... | |
| Enumeration and Iterator | 7/24/2004 |
| Q: I am not clear about Enumeration and Iterator, are they similar or totally different? what are they ... A: Izzzz - java.util.Enumeration and java.util.Iterator are both interfaces. Objects that implement ... | |
| What API is used to sort collection? | 7/23/2004 |
| Q: How about map, can we sort a map? Thank you so much, lzzzzHi, How about sorting an array, an array ... A: Izzzz - > > How about map, can we sort a map? > Well, yes, but in a couple of different ways. A ... | |
| What API is used to sort collection? | 7/22/2004 |
| Q: How about sorting an array, an array is not called collection, right? Thanks, lzzzzHI, I got an ... A: Izzzz - > How about sorting an array, an array is not > called collection, right? > Correct, an ... | |
| What API is used to sort collection? | 7/21/2004 |
| Q: I got an interview question, he asked "What API is used to sort collection?" Thank you, lzzzz A: Izzzz, There are a couple of possible answers to this. 1. The java.util.Collections class has a ... | |
| Why cannot the following code be compiled? | 7/19/2004 |
| Q: Why cannot the following code be compiled? --------------------------------- public class Test { ... A: Izzzz, The problem with this code is that it is ambiguous. The compiler does not know which ... | |
| Question | 7/19/2004 |
| Q: Sir I want to ask some detail about the topic. The topic is, "What in your opinion, is ... A: Imran, Native assembly languages are used only for specialized programming. Today, even most ... | |
| i need to develop a small... | 7/11/2004 |
| Q: i need to develop a small application on LDAP (Light Weight Directory Access Protocaol) to access, ... A: Saurabh - Well, I have not worked with SunONE Directory Server nor with Win2003 Active Directory, ... | |
| Application using LDAP | 7/11/2004 |
| Q: I am working on LDAP (Lightweight Directory Access Protocol) and have to create an application in ... A: Varun, The Java API for accessing directories (including LDAP directories) is called JNDI. It ... | |
| id number | 7/10/2004 |
| Q: I am a newbie trying to write applications for the mobile phone. I understand that one has to ... A: Harry, The basic Java programming framework for mobile phones and other small devices is called ... | |
| I have a question on polymorphism | 7/9/2004 |
| Q: I have a question on polymorphism, in c++, that base class pointer point to subclass object is ... A: Izzzz - Yes, this is one form of polymorphism. Java supports several ways in which polymorphism ... | |
| Why can we write statement after catch block? | 7/8/2004 |
| Q: Why can we write statement after catch block? I think a program will stop executing after exception, ... A: Izzzz - > > Why can we write statement after catch block? > Why not? A catch block is just a ... | |
| What is exactly difference bwtween a class method and an instance method ? | 7/7/2004 |
| Q: What is exactly difference bwtween a class method and an instance method ? Thanks, lzzzz A: Izzzz - A class method is a static method, it is declared with the keyword 'static' and called by ... | |
| I found that we can not write constructor, super and this in an interface, is it because interface can not initialized? | 7/5/2004 |
| Q: I found that we can not write constructor, super and this in an interface, is it that because ... A: Izzzz - > > we can not write constructor, super and this in > an interface, is it that because ... | |
| should I declare result as instance variable or local variable? | 7/2/2004 |
| Q: A method as follows, should I declare result as instance variable or local variable? if local, after ... A: Izzzz, > > should I declare result as instance variable > or local variable? > In the example ... | |
| What is the difference between the following two way of creating object? | 7/1/2004 |
| Q: What is the difference between the following two way of creating object? ... A: Izzzz - You asked about two ways of creating objects: Approach 1: Object o; o = new ... | |
| About Learning Java. | 6/29/2004 |
| Q: I am being very new to Java, by looking at your profile, it made me some sense that you are very ... A: Jules, Well, there are a lot of approaches to learning Java: reading books, taking classes, ... | |
| Somebody said that we can use reflection instead of passing heavy object over network. I don't understand how reflection can help ? | 6/27/2004 |
| Q: Somebody said that we can use reflection instead of passing heavy object over network. I don't ... A: Izzzz - > > Somebody said that we can use reflection instead > of passing heavy object over ... | |
| After Class.forName(Test), do we have to call Class.netInstance(), | 6/25/2004 |
| Q: After Class.forName(Test), do we have to call Class.netInstance(), or something else? Anyway I don't ... A: Izzzz, The statement Class theClass; theClass = Class.forName("Test"); retrieves the Class ... | |
| Why can I call an abstract method as follows? | 6/23/2004 |
| Q: Why can I call an abstract method as follows? ------------------------- DocumentBuilder builder = ... A: Izzzz - You can call the newInstance() method of the abstract DocumentBuilderFactory class because ... | |
| Nice to see you here again | 6/21/2004 |
| Q: I don't understand the following statements, could you please help? Where is there two : ? ... A: Izzzz, Okay, the way to understand this expression is to look at evaluation order and precedence. ... | |
| help with java | 5/30/2004 |
| Q: I am trying the following, a client app will take an image and send it via tcp to a server. The ... A: Jason, There is no way to read an image from (or write an image to) a socket. You must use the ... | |
| search engine | 5/15/2004 |
| Q: I need search engine code!!!! Please , can you find me search engine code for me to download. I got ... A: Bob, This question is a little out of my scope. There is some web search and full-text search ... | |
| java | 5/13/2004 |
| Q: sir can u kindly tell me about which is better either visual C++ for j2ee i am just starting my ... A: Tapan, Visual C++ and J2EE are both good programming platforms to learn, but they are good for ... | |
| JAVA HELP!!!!!!!!!! | 5/11/2004 |
| Q: hey neil i really appreciated your help, i've been voting for you and nominating as well! its ... A: Mark, Okay, you are making progress. Once you have the string from the TextField, you need to ... | |
| JAVA HELP!!!!!!!!!! | 5/9/2004 |
| Q: hey man, so far im progressing good with my program. i've been able to easily create 3 random ... A: Mark, The code you have is pretty close to workable code, but it is not very flexible. (Also, ... | |
| Why can't we put static variables into a method, even the method is static? | 4/28/2004 |
| Q: Why can't we put static variables into a method, even the method is static? ... A: Izzzz - > > Why can't we put static variables into a method, > even the method is static? > The ... | |
| java servlet; record visitor time on page | 4/27/2004 |
| Q: I found your site through a google search. Basically, I'm a beginner and trying to find a ... A: David, I see what you are trying to do, but it is not possible in general, from the server, to ... | |
| JAVA HELP!!!!!!!!!! | 4/27/2004 |
| Q: 1) JBuilder3 (for java) hey, i was told your really smart with java, im in a first year course so ... A: Mark, Okay, this is not a difficult problem. The right way to solve it is to create a method ... | |
| Only variables within a method in Java and C++ are called local variables, right? | 4/26/2004 |
| Q: Only variables within a method in Java and C++ are called local variables, right? Thanks, lzzzz A: Izzzz - > > Only variables within a method in Java and > C++ are called local variables, right? ... | |
| polymorphism | 4/25/2004 |
| Q: What is meant by run time polymorphism? A: Mahu, In a programming language, polymorphism is the situation where a particular expression or ... | |
| OOP concepts | 4/25/2004 |
| Q: What is meant by abstraction? I want exact definition with a real time example? A: Madhu, Abstraction is the hiding of information behind other, usually simpler, information. In ... | |
| When I enter (ctrl + D), the jvm will terminate. why? | 4/24/2004 |
| Q: When I enter (ctrl + D), the jvm will terminate. why? Thanks, lzzzz A: Izzzz - That seems strange to me. On Windows and Unix, Ctrl+C will terminate most programs when ... | |
| servlets | 4/24/2004 |
| Q: I've never writen a servlet before and would like to try. 1. What does a servlet do exactly? 2. How ... A: Nicholas, > > I've never writen a servlet before and would like to try. > That's good, servlets ... | |
| java | 4/22/2004 |
| Q: We can write multithreading program by extending "Thread Class" or by implementing "Runnable" ... A: Mgana, Both ways of writing threaded programs are good. 1. Extending the class ... | |
| java | 4/15/2004 |
| Q: What is the use of interface? A: Maru, A Java interface is a means for specifying some methods that an object must supply, or to ... | |
| java | 4/15/2004 |
| Q: What is constructor and virtual function? Can we call a virtual function in a constructor? A: Maru, > > What is constructor and virtual function? > A constructor is a special kind of function ... | |
| java | 4/12/2004 |
| Q: Why file name in java should be similar to class name? A: Mgana, The source code filename and the class name must be the same, for any public Java class. If ... | |
| double value | 3/30/2004 |
| Q: yes that was what I was after. The methods work fine in exception of small/large numbers. is there ... A: Nguyen, > > The methods work fine in exception of small/large > numbers. is there a way to say ... | |
| Screen Resolution in Java | 2/29/2004 |
| Q: I wanted to ask a question in respect to the screen resolution in java. Whenever we run anything in ... A: Prof, Your code probably won't work, because you never set the position of the Window. You ... | |
| concat two strings | 2/28/2004 |
| Q: how to concat two strings using exceptions.It should take only characters. A: Prashant, I don't quite understand what this question is about. You cannot concatenate two strings ... | |
| Why are constructors/descructors not inherited? | 2/28/2004 |
| Q: Why are constructors/descructors not inherited? Thanks, lzzzz A: Izzzz - In one weak sense, Java constructors are inherited. If you had the following code ... | |
| When I write a statement below, will the compiler load all classes within the package, or only search for a specific class? | 2/21/2004 |
| Q: When I write a statement below, will the compiler load all classes within the package, or only ... A: Izzzzz, The directive "import javax.xml.*;" does not cause the compiler to load anything. It ... | |
| Biometrics | 2/18/2004 |
| Q: I am a final year computer engineering student from India. I am doing my project in Biometrics. ... A: Kumar, Well, this question is rather outside my area. I don't have any Java biometrics code to ... | |
| What is the difference about synchronize between case 1 and 2 ? | 2/17/2004 |
| Q: What is the difference about synchronize between case 1 and 2 ? ----------------------------------- ... A: Izzzz - In your particular code, there is not much difference between case 1 and case 2. Both of ... | |
| class access modifier and method access modifier | 1/22/2004 |
| Q: If the class access modifier is not public, even though its' method access modifier is public, the ... A: Izzzz - > > If the class access modifier is not public, even though > it's method access modifier ... | |
| what does the following sentence mean? | 1/21/2004 |
| Q: what does the following sentence mean? ------------------------------- By using static factory ... A: Izzzz, > By using static factory methods, an API can return > objects without making their classes ... | |
| As I know, there are only threads in java. I was wondering if there are processes in java, and how to create a process in java? | 1/20/2004 |
| Q: As I know, there are only threads in java. I was wondering if there are processes in java, and how ... A: Izzzz - Java has threads and multi-threading as part of the core language. Java can also support ... | |
| I found I can create an object with the name same as its class, should we usually do likt that? | 1/18/2004 |
| Q: I found I can create an object with the name same as its class, should we usually do likt that? ... A: Izzzz - Yes, this is permitted, because local variables and member variables are in a different ... | |
| What different purposes do 'class access modifier' and 'member access modifier' serve respectively, | 1/17/2004 |
| Q: Exceuse me, I am not very clear What different purposes 'class access modifier' and 'member access ... A: Izzzz - Class access modifiers affect whether a class can be accessed by code from outside its own ... | |
| Are there copy constructor and assignment constructor in java? | 1/12/2004 |
| Q: Are there copy constructor and assignment constructor in java? Thanks, lzzzz A: Izzzz - > Are there copy constructor and assignment > constructor in java? > There is such a ... | |
| Java Applet Question | 1/12/2004 |
| Q: I would like to call a javascript function from a java applet. I have been able to get this to ... A: Keith, Your code basically looks okay. First, be sure you are including the MAYSCRIPT ... | |
| Why does 'System.out.println(i1.equals(i2));' output true, but ' System.out.println(t1.equals(t2));' output false? | 12/28/2003 |
| Q: Why does 'System.out.println(i1.equals(i2));' output true, but ' System.out.println(t1.equals(t2));' ... A: Izzzz, > > Why does 'System.out.println(i1.equals(i2));' output > true, but ' ... | |
| Merry Christmas! | 12/27/2003 |
| Q: When should we use abstract class, and when should we use interface? Thanks, lzzzz A: Izzzz - Java interfaces and abstract classes both provide a mechanism for specifying some ... | |
| Is the method overloading polymorphism ? | 12/14/2003 |
| Q: Is the method overloading polymorphism ? if so, then the polymorphism in java means different ... A: Izzzz - Well, method overloading is one form or one facet of polymorphism, but it is not the core ... | |
Answers by Expert:
Top Expert on this page
Almost anything about the core Java platform, with an emphasis on networking. Not familiar with JDBC or the new Java graphics APIs. [Sun Certified Java Programmer, JDK 1.1]
Certified Java Programmer for JDK 1.1 and 2.0.

©2012 About.com, a part of The New York Times Company. All rights reserved.