You are here:
| Subject | Date Asked |
| chat messenger in java | 1/31/2012 |
| Q: sir, i am a student of IT engineering (2nd yr) and i have a mini project based on the creation of a ... A: This is a very general question so I can only provide 2 suggestions: (1) There is so much ... | |
| Question about PixelGrabber Class | 1/18/2012 |
| Q: I am trying to solve a problem where I have two images stored in two BufferedImage objects and I ... A: 1. Use the other constructor in which you also provide the byte array to which the pixels will be ... | |
| Supermaket Simulation Using Queues | 12/23/2011 |
| Q: I am trying to solve the Supermaket Simulation in the Java textbook (deitel and deitel) using the ... A: All in all, you are in the right direction. The main thing you are missing is enqueue and dequeue of ... | |
| Even and Odd Sorting | 12/20/2011 |
| Q: Sir i am stuck in one method where i would pass an integer array as an argument which will contain ... A: Let me hint in the right direction - imagin there is a person going over the array. He goes one step ... | |
| swing - button does not prompt | 12/6/2011 |
| Q: I have to write a GUI application for simple Ordering system for Pizza hut or any pizza place. I ... A: Two notes: (1) Hbutton implements ActionListener Where does it say that Hbutton will prompt a ... | |
| Most Efficient Route Comparison Algorithm | 11/10/2011 |
| Q: I am currently coding up a problem where efficiency and simplicity are important. Basically, I will ... A: This sounds like the salesman problem. You can find plenty of matrial and algorithms on the net. I ... | |
| Java - logical 'and' | 11/3/2011 |
| Q: these are the instructions. How do i do this, whats the script for it? 1.Look for the function of ... A: Here is a hint Once you get the numbers -- a, b, c -- here is one way to use "and" to print by ... | |
| Concatenate strings with JOptionPane | 10/24/2011 |
| Q: i have this java code: import javax.swing.JOptionPane; class abc { void metodo() { int a,b,num; ... A: switch(a) { case 1: string1 = "DIEZ"; break; case 2: string1 = "VEINTE"; break; .... } ... | |
| http utl connection | 10/21/2011 |
| Q: I have an exam on 24, next week.Please help me with it. I need to write a web server load test ... A: main(String[] args) ---- String urlString = getUrlString(args); URL url = new URL(urlString); ... | |
| RegEx for password checking | 9/26/2011 |
| Q: I am struggling to generate a regular expression with the following constraints: * Must be between ... A: Nice. The regular expression is a bit long but not too difficult. But I prefer that you give it a ... | |
| Sending Email | 9/24/2011 |
| Q: I have TataPhoton Datacable internet and i want to send the E-mail Through my Laptop Aplication.Can ... A: Well, I must admit I am surprised to learn that Gmail does allow to function as SMTP. Although ... | |
| Sending Email | 9/22/2011 |
| Q: I have TataPhoton Datacable internet and i want to send the E-mail Through my Laptop Aplication.Can ... A: If the question is "how to send the email from Google-Mail?" - then in my opion you can't. But I ... | |
| SocketClient is reading line with an end of line byte in it? | 8/19/2011 |
| Q: so far my application (a TCP Server/Client application in Java) has worked perfectly. The server ... A: The answer seems simple - you can't. You should change the client-server acknowledgement to ... | |
| Problem To read XML | 8/11/2011 |
| Q: <book> <person> <first>Kiran</first> <last>Pai</last> </person> </book> and in jave ... A: An element can have child nodes - for example attributes and text are all nodes. So ... | |
| Digital Certificate | 8/10/2011 |
| Q: String s1="-----BEGIN CERTIFICATE-----6jCCA9KgAwIBAgIKMJQBIsFC8C/= -----END CERTIFICATE-----"; ... A: See here: http://download.oracle.com/javase/6/docs/api/javax/security/cert/X509Certificate.html ... | |
| Digital Certificate | 8/8/2011 |
| Q: String s1="-----BEGIN CERTIFICATE-----6jCCA9KgAwIBAgIKMJQBIsFC8C/= -----END CERTIFICATE-----"; ... A: Lines 1 - 4 creates a Certificate instance, according to s1 code. Lines 5 - 6 creates a ... | |
| polymorphism in java | 7/27/2011 |
| Q: why compiler throws an error for below code??ie when we try to access the super class methods ... A: o is of type "One". Type "One" knows only the method show1(). So it will throw error on "o.show2()". ... | |
| Why command line arguments.. | 7/24/2011 |
| Q: In C and C++ we have (int argc, char* argv[]) this as optional. But why it is compulsory in java? ... A: Why? Well, why is question mark (?) mandatory at the end of a question statement in English? That's ... | |
| Java Script will run on IE-8 | 7/22/2011 |
| Q: i have used javascript in My application and its working fine On IE-6 And IE-7 .Is it also(Java ... A: There are differences in IE different versions behavior with JavaScrip. There are JavaScript ... | |
| Calling the Function and passing the date object | 6/16/2011 |
| Q: I m confused with this code when i m calling the test1 function and passing the date object and set ... A: There are immutable data objects - String, Integer, and the likes. Date is not, it is mutable. Like ... | |
| Java problem | 5/31/2011 |
| Q: I have a Java problem. I have to make an applet that shows the user the Fibonacci numbers which are ... A: (a) the variable tmp is not defined. For example: int tmp; (b) you don't want to return the sum, you ... | |
| Identify words | 5/30/2011 |
| Q: so i am running a program, in which you can search your hardrive for any program and it makes a ... A: As you know there is no magic in computers :) What you want to do is a small (tiny) part of the ... | |
| java runtime | 5/27/2011 |
| Q: so i am running a program, in which you can search your hardrive for any program and it makes a ... A: I would use Apache Common-IO package to search you hard-drive. But if you can't: Step 1: File f = ... | |
| Problem with a wsdl file (generated by axis 2 plugin) | 5/2/2011 |
| Q: I am working on web service composition using BPEL designer plugin with eclipse 3.6 and Apache ODE. ... A: There are two possible options: a) in Eclipse options set it not to validate schema. I am not sure ... | |
| image in an email | 4/27/2011 |
| Q: I am on the verge of completing my project.my proj name is composite mail server. it provides us a ... A: I understood that. I thought you could work a bit and figure it out from that link. Here is ... | |
| java command prompt | 4/19/2011 |
| Q: acctually i have written a program on notepad named helloworld and then i have saved as ... A: Go to your code folder. To compile: > c:\\program files\\java\\jdk1.5.0_05\\bin\\javac ... | |
| mage in an email | 4/17/2011 |
| Q: I am on the verge of completing my project.my proj name is composite mail server. it provides us a ... A: Image in email is a multipart body. It is saved as an attachment. Here is an example of having image ... | |
| OutOfMemory on loading image | 4/16/2011 |
| Q: Sir i have the following code for scren capturing it is capturing in png format but when i am ... A: I'm not fully sure what is your goal. Anyway, I think this is the main problem: frame.add(new ... | |
| compare CSV | 4/13/2011 |
| Q: i want a java code to compare two csv files and the matching records are moved to another file.can u ... A: In here: http://commons.apache.org/io/ Check the comparators. If you have to write the code ... | |
| Object problem | 4/10/2011 |
| Q: My professor has given us a project and three classes that he has written. We are to impliment a 4th ... A: It's difficult to help without knowing what is the problem. Please include the text of the error. ... | |
| smslib | 3/29/2011 |
| Q: i have a problem of org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: ... A: (1) I went over the source code (http://code.google.com/p/smslib/source/checkout). Which version of ... | |
| Java Installation fail on 1606 | 3/27/2011 |
| Q: i can't install Java because i get this message "Error 1606. Could not access Network Location ... A: This seems like a technical issue for Windows export, but I will try. Two options that I consider ... | |
| chat messenger | 3/18/2011 |
| Q: i want to make chat messenger in java but the problem is where to start first sir i don't know ... A: You should start by modelling the server-client communication. For example: * Server: -- connect -- ... | |
| JDBC for DB2 | 3/16/2011 |
| Q: Sir, I am not able to establish database connectivity with IBM DB2(64 bit edition). Can u please ... A: [server] is the host-name - the name of the machine on which the DB2 service is installed.It can ... | |
| JDBC for DB2 | 3/16/2011 |
| Q: Sir, I am not able to establish database connectivity with IBM DB2(64 bit edition). Can u please ... A: 1) Add driver to your classpath. Driver example: db2cc.jar. 2) If the driver requires a license, ... | |
| making handcursor over jtable | 3/5/2011 |
| Q: I have a jtable, and i want my cursor to be as handcursor where there are entries.In the area there ... A: Have a look here: http://www.devx.com/tips/Tip/17285 The idea to identify when you are over cells ... | |
| highlighting and spell check | 2/27/2011 |
| Q: so i wanted to know the following First, how would i be able to construct something as to ... A: (a) "highlight" a selected portion of a TextArea The simplest solution is to set the TextArea to ... | |
| api references | 2/24/2011 |
| Q: Whenever I want to use a package (let's say networking) that a particular programming language ... A: Most APIs have short description on the web, such as: ... | |
| Java Basic Program Project Help | 2/21/2011 |
| Q: I'm working on a project for school in Java programming, I've had alot of trouble with programming ... A: The methods seems fine. I would place the desctiption text you wrote as java-doc. For example: /** ... | |
| bold and plain text in JList | 2/18/2011 |
| Q: i have some content in a list box in desktop java application.I want to link those text to some ... A: I apologize for the delay. The solution, as I see it, is to write your own class that extends ... | |
| Database connectivity on Java | 2/15/2011 |
| Q: Sir, How is it possible for all computers connected to the LAN to access a central database on the ... A: Java connects using JDBC drivers. These drivers are JAR files that implement Java DataBase ... | |
| is it important for your computer to have java | 2/14/2011 |
| Q: I was wondering would you please tell me: is it important for your computer to have java? Thanks A: In one word - yes. In two words - why not. Java is use to run Java desktop applications on your PC ... | |
| href in normal java application | 2/10/2011 |
| Q: i have some content in a list box in desktop java application.I want to link those text to some ... A: As I recall, when you click on JList item, the JList opens to show all the items - meaning, not only ... | |
| binary tree | 2/9/2011 |
| Q: write an application that accepts a user's password from the keyboard.when the entered password is ... A: Infix: 1 + 2 * 3 Binary Tree: [+] : parent null [*] : parent [+] [1] : parent [+] [2] : parent [*] ... | |
| java rmi type cast | 1/28/2011 |
| Q: why we need to typecast the reference of the implementation class returned by lookup (Client side) , ... A: Naming.lookup returns Remote. You asked why should you typecast. I answered you typecast if Remote ... | |
| A computer mystery | 1/17/2011 |
| Q: Ziv Hope you've been doing well. Ever since I've purchased a new wireless Microsoft mouse for my ... A: I can definitely relate to problems with beloved bit-old laptop. But first I must point that this is ... | |
| Issue with paintComponent() | 1/7/2011 |
| Q: Ben-Eliahu, I am trying to write a Java program to play chess. As of now, I have the layout and ... A: A nice looking program you have there :) I can't analyse all of it. All you need is to make sure you ... | |
| Loop Nested Vector | 1/5/2011 |
| Q: i Need to Loop Nested Vector, as i tried to loop it out many time i cant get the result as i ... A: Help me help you. Tell me how would you like to achieve your goal, in English and I will help you ... | |
| calc average follow-up | 1/3/2011 |
| Q: can you help me make a simple and basic java code for my homework. My intention is to have an option ... A: Your application can have only one static "main" as the entry point. (you can have several "main" ... | |
| calc average | 12/29/2010 |
| Q: can you help me make a simple and basic java code for my homework. My intention is to have an option ... A: I am not entirely clear about the question. How would your sentinel function, how would your counter ... | |
| Password Generator from input | 12/26/2010 |
| Q: We have this java code project about making a password from the input name for example Dolores: the ... A: Here is something to start with: int len = input.length(); int i = 0; StringBuilder passwordBuilder ... | |
| DFS - Solving maze path | 12/19/2010 |
| Q: I have to find maze path of this maze. It starts from * mark to 'o'. when running this program I got ... A: I am sorry I cannot analyse all the code of this DEPTH-FIRST SEARCH. I can suggest a simpler ... | |
| Function Calls | 12/16/2010 |
| Q: I currently have a problem calling a function in the main method. And this function to be called has ... A: The answer is - "main" is a static method. As such it cannot call non-static method "getFunction". ... | |
| networking using core java | 12/11/2010 |
| Q: How can I capture the current movements of the client from server using Java? How can I access the ... A: This is a bit complex. You will have 2 main goals: (1) server-client 1.1 server application that ... | |
| networking using core java | 12/9/2010 |
| Q: How can I capture the current movements of the client from server using Java? How can I access the ... A: I am sorry but I don't understand. What do you mean by "control the machine"? Read here how the ... | |
| Duplicates Types in a Set | 12/5/2010 |
| Q: I've created a type and stored instances of it in an ArrayList (with duplicated). In order to print ... A: The cause is the "hashCode" method. All objects have two methods: equals() and hashCode() * ... | |
| JAVA DOM Parser | 11/11/2010 |
| Q: . I am using DOM Parser.I am implementing readability concept in core JAVA.Java script code is ... A: I went over some of the JS. It is very very long. We can't write all of it here. Tell me what it is ... | |
| JAVA DOM Parser | 11/11/2010 |
| Q: . I am using DOM Parser.I am implementing readability concept in core JAVA.Java script code is ... A: If you will provide the JavaScript code I will try to help you with the matching Java code. ... | |
| anonymous and static-block | 11/1/2010 |
| Q: 1-i have one class inside of this i Have one function and inside of this function i have written ... A: I will only give brief explanation as I don't like solving school assignments and you can read about ... | |
| sound coding! | 10/15/2010 |
| Q: sir, I am a computer science engineering student. i like to a project like communication through ... A: Both in C and in Java you will need to use the DRIVER of the sound card. In Java it may be easier ... | |
| NetBeans - using library | 10/14/2010 |
| Q: Sir, I want to develop port scanner in java.So i need to use jpcap library in my project. Sp please ... A: Try adding the JAR file itself, not the folder. Maybe try to set the reference as "absolute" and ... | |
| NetBeans - using library | 10/11/2010 |
| Q: Sir, I want to develop port scanner in java.So i need to use jpcap library in my project. Sp please ... A: Please send a screenshot of how you added your JAR to the project. Are you sure the JAR contains ... | |
| 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: It is a known issue. It was solved by an external library. Download from here: ... | |
| Java Software/Compilers | 10/5/2010 |
| Q: Ben-Eliahu; I am a student at Clear Brook High School doing a science fair project about simulating ... A: Very nice and clear questions. I think you talking about an IDE and not a Compiler. The program ... | |
| 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: Let's say your encryption tool is called ENC. When a user first register the password you encrypt ... | |
| upload to pdf documents | 9/29/2010 |
| Q: sir,plz tell me How can i make the functionality to upload the pdf documents? If a client uploads ... A: It is a bit tricky to identify file types. There are two ways to start with (a) the file extension - ... | |
| assembly language programming emulator | 9/21/2010 |
| Q: as a project i am preparing 8086 assembly language programming emulator. i need help to achieve the ... A: Nice project. Regrading (1) and (2), what is your GUI? JPanel? There are very simple GUI builders ... | |
| MRI IMAGE CLASSIFICATION AND IMAGE RETRIEVAL - from Access DB | 9/20/2010 |
| Q: sir ,i have a source code of project MRI IMAGE CLASSIFICATION AND IMAGE RETRIEVAL.IN this project ... A: Regarding Access DB, I see some nice options here: ... | |
| operating systems | 9/16/2010 |
| Q: how would i start to code an operating system A: See here: http://java.dzone.com/articles/writing-operating-system-has and there is much more ... | |
| Career path | 9/13/2010 |
| Q: Hey! I'm still a school student and am learning java in school. i am interested in it and would ... A: Sorry, I am not familiar with your area and universities. Therefor I cannot offer any ... | |
| linked list example | 9/13/2010 |
| Q: write an application that accepts a user's password from the keyboard.when the entered password is ... A: here is a start class Contact { // The contact details } class ContactNode { // holds a current ... | |
| Career path | 9/9/2010 |
| Q: Hey! I'm still a school student and am learning java in school. i am interested in it and would ... A: There is knowing Java. And there is understanding programming and solution design. Just like there ... | |
| Backup mysql database | 8/30/2010 |
| Q: .. here is my code for the backuping of my database public static String getData(String port, ... A: Here is some idea: InputStream in = run.getInputStream(); ByteArrayOutputStream out = ... | |
| Backup mysql database | 8/30/2010 |
| Q: .. here is my code for the backuping of my database public static String getData(String port, ... A: You are using chars and strings. Your pictures were composed of bytes. You lost information by ... | |
| Creating Dictionary in J2Me | 8/25/2010 |
| Q: I have a project of creating a dictionary in J2me. I'm confused of how to store the words and which ... A: It highly depends on the type of dictionary. What are the contents? What is the expected size? How ... | |
| Daemon Thread | 8/11/2010 |
| Q: I've to develop chat application(IM) in my project.I have used netbeans as IDE & technology is JSF & ... A: Ok. Is your question how to create a Thread? or how the thread should refresh the upper textarea? ... | |
| Tic Tac Toe (again) | 8/11/2010 |
| Q: I need help in this. Here are the Directions: The getMove method in TicTacToePlayer.java just ... A: (1) - I am almost getting this but How do I play intelligently? Write a description of an ... | |
| what i should have learned from java | 8/9/2010 |
| Q: I've recently finished studying Java SE. And I was wondering, because I'm now switching to other ... A: I actually like the encapsulation in Java, so maybe I am not the best to give this advice :) On the ... | |
| Reading the nth char in nth line in reverse order | 8/8/2010 |
| Q: . Read the nth character from nth line in reverse order from a file. Print it as a single word. PS ... A: If you'll send me some basic code, I can provide better help. To know the number of lines you must ... | |
| Tic Tac Toe | 8/2/2010 |
| Q: I have following code: public class TicTacToeGameFirstLast { public static final int board_size = ... A: I will provide some hints, but first I'll nag :) I don't mind helping/advising people with their ... | |
| Distance between points - GUI | 7/29/2010 |
| Q: Good day,i would like to know how to make a program that can calculate the distance between two ... A: The question isn't clear. Option 1) How two open a window with three text-fields. Insert values in ... | |
| Multi reference model | 7/2/2010 |
| Q: I have 2 pieces of code and I don't know how to combine together. And I also want to add in if ... A: Here is something to start with. Option (1) Move your methods from main() to their own methods, but ... | |
| digital image processing using java | 7/1/2010 |
| Q: ......... i have some further doubts.... 1.i have run animation.but in this project ,when i click on ... A: (1) Do you have the "Edit" menu (next to the "File")? What do you see when you click the menu? Do ... | |
| DIP - digital image processing | 6/30/2010 |
| Q: i can,t understand this code ............i am working on image processing project using java.my code ... A: Good 4 questions. Easier to answer :) By the way, why is the question 'private'? I think it will be ... | |
| DIP - digital image processing | 6/29/2010 |
| Q: i can,t understand this code ............i am working on image processing project using java.my code ... A: That's quite a lot of code :) But it's a nice looking code :) I can't explain all those methods. ... | |
| DIP - digital image processing | 6/28/2010 |
| Q: i can,t understand this code ............i am working on image processing project using java.my code ... A: I am very sorry but it is difficult to understand the code without full context. For example, after ... | |
| Open printer in Java | 6/21/2010 |
| Q: I want give print by java code I am using PrinterJob and able to give print but in LAN i m unable to ... A: To show printer selection dialog box you need two things - list of available printers and AWT or ... | |
| Move JLabel at an angle theta | 6/3/2010 |
| Q: I want to move by JLabel at a specific angle (30, 60 degree etc). Is there any method by which I can ... A: Take two of these and call me in the morning: http://forums.sun.com/thread.jspa?threadID=443268 ... | |
| check integer | 5/31/2010 |
| Q: The method splitNumber,accept an integer between 0 and 99 and determine whether or not the tens ... A: I will give you two hints for this homework: (1) One way of doing this - transform the Integer to a ... | |
| Letter generator using array. | 5/29/2010 |
| Q: i want to create a 10 random letter from a to z but i'm not sure how to be done can you guide me ... A: Here are some hints: 1) Find the ASCII code for "a" and for "z". For example, a = 60 and z = 80. ... | |
| Triggering command prompt window from Java | 5/28/2010 |
| Q: I am using the Runtime.getRuntime().exec Java command to start the selenium server in a command ... A: try /c instead of /k. ... | |
| prime number | 5/28/2010 |
| Q: i want to write a java program to find the prime numbers between 1 and 100 A: Start with a method that accepts one number as input and check is it prime. How does it check? The ... | |
| Scroll the screen | 5/27/2010 |
| Q: Sir I want to know that how can I scroll the Screen (JFrame) up and down in response to certain ... A: I think what you are looking for is: setCaretPosition() that will go to the right position according ... | |
| Triggering command prompt window from Java | 5/26/2010 |
| Q: I am using the Runtime.getRuntime().exec Java command to start the selenium server in a command ... A: Two notes: (1) Why arn't you calling the Selenium API through Java? Meaning, including its JAR and ... | |
| Labels Positions | 5/25/2010 |
| Q: Your answer worked always for me. thanx for that. Actually I am trying to make a small Game Just ... A: The solution is to design a framework of the matrix of the game. For exaple: ****** ****X* *3**** ... | |
| Need help regarding speech synthesizer in java | 5/23/2010 |
| Q: it say... deps-jar: compile: run: System property "mbrola.base" is undefined. Will not use MBROLA ... A: Problem: System property "mbrola.base" is undefined Solution-1: run java with: java ... | |
| jpopupmenu getting overlapped with jscrollpane | 5/21/2010 |
| Q: in the below code i have jpanel inside which i have Jscrollpane inside i have jtree my problem is ... A: Sorry for the delay. This seems to be written well :) Doesn't pop-up windows usually overlap their ... | |
| Acessing the objects created by thread on runtime | 5/19/2010 |
| Q: Sir I have a class "Birds" which implements Runnable (It is thread basically). It creates a new ... A: I like your program :) To access the Bird object you create save them in a some global public list. ... | |
| parsing xml | 5/14/2010 |
| Q: ..I am a newbie and I wanted to know the exact meaning of parsing an xml file...I tried parsing an ... A: Have a look here: http://en.wikipedia.org/wiki/Parsing Parsing anything means to breaking it to ... | |
| manual compilation | 5/8/2010 |
| Q: I use Eclipse for running(compiling) java applications, i'm just a junior intermediate. But I've ... A: Very good curiosity ;) Manual compilation is simple. You can learn it for yourself. For example: ... | |
| Java applet | 5/7/2010 |
| Q: What is characteristics of java applet and awt pakage A: Here is a basic answer to start your search in the web. A Java Applet is an application executed by ... | |
| java-swing-jmf combination | 5/6/2010 |
| Q: sir i made a talking dictionary in which a text field is here n there is button when the click event ... A: I don't see a question here. If you want me to build the application for you... that won't happen. I ... | |
| Starting with Java | 5/5/2010 |
| Q: I am 32 year old. I have completed a three years course of Master of computer applications (mca) ... A: A very touching request, but the net can offer much more than what I can suggest here. But I will do ... | |
| HW: dynamic array of objects | 4/28/2010 |
| Q: will you please help me with my assignment I am totaly lost.Write a program to count the number of ... A: I will gladly help you, but you must do some work yourself. You should write a general plan and I ... | |
| why OS matters | 4/23/2010 |
| Q: I wanted to ask this but what programming language is used by the most widely used OSs like windows, ... A: This is a very broad question, and I can't answer it fully. Linux is considered easier than Windows ... | |
| login attempts | 4/22/2010 |
| Q: sir, i have my login page and i have to given message when the user enered three time wrong ... A: There is no magic here - you must save the number of login attempts somewhere. I don't know how your ... | |
| Re: Unicode Problem | 4/20/2010 |
| Q: .......... I got something new for u I thnk the JTextArea i am using is not supporting UNICODE the ... A: I am not sure I understand the problem. You already know how to print String to text-area. (append) ... | |
| recursion | 4/19/2010 |
| Q: I'm writting a recursive method that returns the number of vowels in a string using recursion. I'm a ... A: Here is a quick ref. You still need to check string length, and add some code. int ... | |
| File.exists() is missing the file | 4/14/2010 |
| Q: Yesterday i was updating quite a large application I had made a while ago and noticed a bug with ... A: I tried it on Java 1.6.0_14. Is the problem consistent? Meaning, will occur on all runs and for ... | |
| Re: Unicode Problem | 4/13/2010 |
| Q: .......... I got something new for u I thnk the JTextArea i am using is not supporting UNICODE the ... A: It's not likely that the problem is with JTextArea. Run the following test: Write a text file in ... | |
| File.exists() is missing the file | 4/9/2010 |
| Q: Yesterday i was updating quite a large application I had made a while ago and noticed a bug with ... A: What is your Java version? I see you run on Windows. After the code runs, is the file there? ... | |
| Display Urdu In JTextArea | 4/7/2010 |
| Q: ......... I am Java Programmer having some skills in core and Advance Java I am developing an ... A: (a) When running only the swing part and setting Urdu text, is it ok? (b) The methods I mentioned ... | |
| which programming language should i start with to be a good programmer? | 4/7/2010 |
| Q: I'm going towards learning my first programming language or computer programming as a whole. I'm not ... A: This is a big question and there are many discussions on the web for the best first language. I ... | |
| Display Urdu In JTextArea | 4/4/2010 |
| Q: ......... I am Java Programmer having some skills in core and Advance Java I am developing an ... A: As I said, it is hard to help you identify the problem without some code. I just need two methods: ... | |
| DB to JTable | 4/3/2010 |
| Q: sir Q1)how to retreive data from database into a jtable . here backend is Ms-Access. Q2) ANSWER: ... A: a) This is a long code and it mixes swing and database. Very hard to see the purpose. b) Write two ... | |
| Is it possible to make a program using the c++ program | 4/1/2010 |
| Q: R/Sir Is it possible to make a program using the same functions of the existing c++ program? i.e ... A: Java is not less complex than C++. You could say it is missing some of C++ features, such as ... | |
| retreiving JComponents | 3/31/2010 |
| Q: I have designed a swing GUI including 5 jtextfields and two jcheckboxes, for the project reason, I ... A: The short answer is - It should be: getContentPane() , getLayout() , getGroup() , getComponent(). ... | |
| DB to JTable | 3/30/2010 |
| Q: sir Q1)how to retreive data from database into a jtable . here backend is Ms-Access. Q2) A: 1) Back-end class that read data from database (MS-Access in your case). 2) Manager class that read ... | |
| SQL in MS Access | 3/29/2010 |
| Q: ......Good Evening Sir I want to ask you abt the SQL statement in JAVA.......... I am using the MS ... A: I am glad to hear your application is progressing :) Again, I need some code to provide better help. ... | |
| Display Urdu In JTextArea | 3/28/2010 |
| Q: ......... I am Java Programmer having some skills in core and Advance Java I am developing an ... A: Text-Area supports your Unicode, so I the problem is probably not there. You DB also supports ... | |
| jdbc | 3/25/2010 |
| Q: roll.no, fathers name as a constant headers but comming to subjects it differs by each student how ... A: To re-draw your HTML table according to your input, you need to use JavaScript. If you want to ... | |
| jdbc | 3/24/2010 |
| Q: roll.no, fathers name as a constant headers but comming to subjects it differs by each student how ... A: I am not sure I understand (why is this jdbc problem?). But it sounds as though you need dynamic ... | |
| Using Java to fill web form? | 3/22/2010 |
| Q: I am creating a desktop application which will form on websites. The problem I am facing is, how can ... A: There are two steps for your task: 1) The Java application send and initial request to receive the ... | |
| Using Java to fill web form? | 3/21/2010 |
| Q: I am creating a desktop application which will form on websites. The problem I am facing is, how can ... A: My advise is that you search for Browser API for Java. I recall I used something like EEEI or IEEE ... | |
| JVM memory usage | 3/18/2010 |
| Q: i want to know how the jvm and os can interact. or how can we monitored the memory usage of java ... A: There are several ways to do so. In general you need to interact with the OS, like "Task Manager" ... | |
| dyanamic array initialization regarding stack | 3/16/2010 |
| Q: my question is that while maikin a stack if the user passes more inputs then the size of the stack ... A: You can read about ArrayList: http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html And ... | |
| stream | 3/14/2010 |
| Q: i want a java code using stream classes to display the unicode characters..... A: I am not sure I understand, but here is a start: 1) get an InputStream - for example ... | |
| print to text area | 3/11/2010 |
| Q: i want to print the data from database to my text area but i got only output in command prompt not ... A: I gather that you are able to retrieve the data from the database (since you see it on command ... | |
| Set a value to an exisitng object | 3/8/2010 |
| Q: I have been working on this code almost all day today. I trying to figure out when I got the grade ... A: If I understand correctly you have an array of Grade objects. Meaning "array" points to ... | |
| Jar could not find main class | 3/7/2010 |
| Q: I have a problem about creating a .jar file in Netbeans IDE. I had a created a desktop application ... A: I need a bit more information to help you. JAR file is like a ZIP file. Open your JAR file with ... | |
| check password | 3/5/2010 |
| Q: write an application that accepts a user's password from the keyboard.when the entered password is ... A: What you should do is write some basic code and then ask me how to continue. // main loop do { ... | |
| is palindrome | 3/3/2010 |
| Q: I really need help! Im currently studying Java programming in college and really stuck with this ... A: Two ways: (1) Reverse the string and compared the reversed version to the original. If they are ... | |
| best java IDE | 3/1/2010 |
| Q: I've been learning to program in java, it is kinda cool. But the interpreter/compiler I use which is ... A: I believe you mean the best "development environment" (IDE) for Java, and not the best compiler. The ... | |
| virtual keypad | 2/15/2010 |
| Q: sir, i have made virtual keypad to enter password on mouse click like ICICI bank.but i have to ask 2 ... A: Here is a very simple example: A function holding characters array, copy it randomly, and then copy ... | |
| virtual keypad | 2/11/2010 |
| Q: sir, i have made virtual keypad to enter password on mouse click like ICICI bank.but i have to ask 2 ... A: I'll suggest a simple solution, which you can later expand to something more interesting. Each time ... | |
| virtual keypad | 2/10/2010 |
| Q: sir, i have made virtual keypad to enter password on mouse click like ICICI bank.but i have to ask 2 ... A: (1) Your password should not be included in the HTML you create. The password is in the server. You ... | |
| open a TV window | 2/9/2010 |
| Q: , I was wondering if you could help me with this... on my laptop there is a VGA port, let's assume ... A: (1) VGA port is used to view your laptop system on a TV (2) your laptop cannot receive TV from a ... | |
| import data from excel spreadsheet and send it to database with JXL | 2/3/2010 |
| Q: Hye Ziv, I am making a project with Struts and Ibatis, and now I am trying to create a .java Action ... A: Did you use a Value-Object class to hold the Excel information? Usually you are suppose to add DB ... | |
| virtual keypad | 2/1/2010 |
| Q: sir, i have to make a virtual keypad like the bank site for entering the password.please give me ... A: If you want to see how ICICI Bank did their Virtual Keyboard then go to the site and "View Source". ... | |
| virtual keypad | 2/1/2010 |
| Q: sir, i have to make a virtual keypad like the bank site for entering the password.please give me ... A: Is that for a web-site or for an application? What technology did you have in mind? I guess you ... | |
| Javascript: onlaod override | 1/27/2010 |
| Q: sir, i have on jsp "topstrip.jsp" in which i m using "body onload="init();" .this jsp ... A: Though this is a Java category and not JavaScript category, I will try to help. 1) As far as I know, ... | |
| Read/write docx file | 1/14/2010 |
| Q: I want to know the logic of the program which I am Stating below. Write a Java Program such that ... A: I am sorry, but I am not clear on what do you mean by "know the logic of the program". Read here to ... | |
| PrintStream vs. PrintWriter | 1/10/2010 |
| Q: Sir, Belated Happy New Year Wishes. Will You Please mail me the difference between PrintStream & ... A: You should read: * http://java.sun.com/j2se/1.4.2/docs/api/java/io/PrintWriter.html * ... | |
| Java in path | 1/9/2010 |
| Q: i am new to java. i have installed Java6 and java sdk 1.6 ( but in different directories. How do i ... A: If javac is not recognized that means that the PATH is not updated, as you guessed. Yo can have a ... | |
| B.tech | 1/3/2010 |
| Q: What is d use of bitwise operators..where o we use them..can u elaborate on that wit an example r ... A: I must admit I an not sure I can give a better explanation then Wikipedia: ... | |
| Static in inner class | 12/26/2009 |
| Q: class Main { class Sub { static public void main(String arg[]) ... A: 1) The file must be named with the name of the highest (external) class, Main. 2) The main method ... | |
| Character Input | 12/24/2009 |
| Q: Give an Example for to get a character from keyboard using Java A: The fastest and most known method is: System.in.read(); This method reads from the input stream - ... | |
| multiple jvm | 12/17/2009 |
| Q: how to install multiple jvm in single machine.for this i am doing the project and need help.so if ... A: This sounds like a very cool idea :) Two points: 1) As you seem like a clever man you probably know ... | |
| multiple jvm | 12/17/2009 |
| Q: how to install multiple jvm in single machine.for this i am doing the project and need help.so if ... A: If I understand your question correctly, then simply run the installation several times, each time ... | |
| Static objects in System.out | 12/12/2009 |
| Q: I don't know who you r. I have a small doubt in java. Can you Explain this. My question is about ... A: public final class System { public final static PrintStream out; ... } public class PrintStream { ... | |
| how to work with java speech synthesizer | 12/1/2009 |
| Q: I have download the freetts-1.2.2-bin and jsapi.jar now let me know that how it will work with java ... A: You don't need to extract the freetts to JDK. Just extract the ZIP somewhere. In the Netbean, right ... | |
| how to work with java speech synthesizer | 11/30/2009 |
| Q: I have download the freetts-1.2.2-bin and jsapi.jar now let me know that how it will work with java ... A: I need more information on what you did, what want to do and what didn't work. Technically, all you ... | |
| Defect | 11/26/2009 |
| Q: what is defect. Is it runtime exception or compiletime exception? A: A defect, also known as a bug, is a runtime behavior that does not match the application ... | |
| Loop in loop | 11/22/2009 |
| Q: Hey cool to see an Israeli on allexperts i travel to Irsael every year.. anyways if you can help ... A: I will give you most of the answer, but not all of it. You can thank me, or not, at your desecration ... | |
| Java client | 11/21/2009 |
| Q: can you help me...........sir i want to develop one hotel management project in Java servlet and jsp ... A: An application has the basic three layers: User-Interface <==> Business-Logic <==> Data-Model In ... | |
| java performance and full control of the hardware | 11/17/2009 |
| Q: I was thinking if java can take the advantages of C++ in performance(speed) and full control of the ... A: Some years ago Java was solwer than C++. Now days, Java 1.6 can be faster than C++. Both Java and ... | |
| Counting sub-sets | 11/14/2009 |
| Q: Can you please tell me this program? I would greatly appreciate it! I dont even know how to begin ... A: We know that there are 2 by the power of the set size possibilities. For example, this set's size ... | |
| Output to file | 11/12/2009 |
| Q: please tell me how to save the output into a text pad. the following code is showing output in ... A: You have two easy ways: 1) when running the Java program redirect the output into a file: Usually ... | |
| calling an array from constructor | 11/10/2009 |
| Q: I am writing a program about a long jump competition. At the being the program you state how much ... A: There are a couple of things you should consider. 1) Why are using array int[] and not ArrayList? ... | |
| Swing, Logic-circuit | 11/8/2009 |
| Q: Sir, plz am jus a beginer in java, i want to write a program using swing gui to build logic circuits ... A: I can't give you code as this task is a bit complicated and seems like a homework. I can give the ... | |
| Classpath usage | 11/6/2009 |
| Q: Good day there! I have here a link to a built-in class of what I am going to use, but I don't know ... A: Don't extract the JAR file. If you use an IDE (such as Eclipse or Intellij) then you should go to ... | |
| Class usage | 11/2/2009 |
| Q: Good day there! I have here a link to a built-in class of what I am going to use, but I don't know ... A: The link is for the statistics methods in class rvl.stat.dist.Tukey. I am not an expert in ... | |
| Stop Words | 10/31/2009 |
| Q: Sir, I want to make a program which can remove the stop words. I tried to do it using StopWords ... A: I'm sorry but there isn't enough information to answer this question. What is the full name of the ... | |
| file io | 10/22/2009 |
| Q: I was looking at some examples on basic file IO in java, but what i notice is that there are many ... A: There are some practices that should be kept when reading and writing files. See here, for example: ... | |
| Java application - login and connect to DB | 10/20/2009 |
| Q: Respected Sir, I am given a task to create an Employee Database for an organisation.I ... A: Your problem is indeed clear. But you have not answered my questions. Where is you data [eg.: ... | |
| Maximum/Minimum | 10/20/2009 |
| Q: I am struggling with finding maximum and minimum out of a set of data NOT in an array. The task was ... A: First the MIN problem, then about an array. (1) If you didn't set an initial value to 'minimum' then ... | |
| Finding Fastest Solution to Maze Using Stack | 10/19/2009 |
| Q: Hey, I am having issues finding the fastest solution to a maze. I have found code on your site ... A: You have two options: only save the best path length, or save all paths. To save the best path ... | |
| Finding Fastest Solution to Maze Using Stack | 10/19/2009 |
| Q: Hey, I am having issues finding the fastest solution to a maze. I have found code on your site ... A: In order to find the fastest path add to the existing DFS code 3 changes: 1. Count the length of the ... | |
| Random questions | 10/17/2009 |
| Q: I was wondering if you could maybe help me, I am working on a project that requires me to create a ... A: Juan, This is the actual code. Simply put it in you Class and call it from your "main" method. I ... | |
| how to create questions | 10/17/2009 |
| Q: I was wondering if you could maybe help me, I am working on a project that requires me to create a ... A: In my answer, the boolean array "chosen" prevents from questions to be picked again - you can call ... | |
| Java runtime | 10/16/2009 |
| Q: what is java? what happens if i remove java? java is taken up 90kb.I have low disk space and I ... A: Java is a runtime environment to execute Java programs. Java programs are not installed on your ... | |
| Casting, Datatype Double | 10/15/2009 |
| Q: i am doind some homework for my Java module and have got stuck on this question. it is as follows. ... A: I must admit there are better places to find a complete answer for "casting" question, such as: ... | |
| Java application - login and connect to DB | 10/14/2009 |
| Q: Respected Sir, I am given a task to create an Employee Database for an organisation.I ... A: First a few sentences about application structure and then some clarification regarding your ... | |
| how to create questions | 10/13/2009 |
| Q: I was wondering if you could maybe help me, I am working on a project that requires me to create a ... A: I need more details to be able to give a good answer. Two points I can suggest at the moment: (1) ... | |
| Excel in Java | 9/23/2009 |
| Q: Sir I am developing one Share Market application in java. So I want to insert the data in Excel ... A: Two options: (1) Try to load the driver: final Class<?> driverClass = ... | |
| 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: You don't need to learn Java for this. A web-site (and any application) is composed of three ... | |
| How get the color name? | 9/14/2009 |
| Q: First I would like to apologize for my mistakes in English. I am in Brazil, I am Brazilian, I speak ... A: I suggest you search the web for PixelGrabber: ... | |
| random words | 9/12/2009 |
| Q: I have a question on how to write a program can you help me. I have to write a program that will ... A: My best advise for a beginner is to use as many methods as possible. You seem to understand the ... | |
| book | 9/10/2009 |
| Q: Which is the best book in java? A: It depends on you want to achieve from Java. And even then there is no easy answer. I would ... | |
| send email to the client | 9/9/2009 |
| Q: sir, i want to do, when any client registered on my site i want to sent email on his mail id.how ... A: Sorry for the late response. It's difficult answering this question without knowing the workarounds ... | |
| java classes and set methods | 9/8/2009 |
| Q: i'd like to know how to create a sub class with set and get methods. ur help will be appreciated. ... A: Set and get of what? Subclass of what? - Sub class simply extends another class. For example: class ... | |
| Running applet | 9/1/2009 |
| Q: I'm Angela and I'm currently learning Java using a MacBook. I'm trying to create my first applet, by ... A: I tried your HTML code using Firefox. It showed: My Java applet says: [error message] So html code ... | |
| integer condition | 8/26/2009 |
| Q: what an if statement that prints the messages "The number is valid" if the variable speed is within ... A: Is this what you meant? public void checkSpeed (int speed) { if (speed >= 0 && speed <= 200) { ... | |
| programming | 8/22/2009 |
| Q: using the import java.util.Scanner, how can I develop an application that reads product id, product ... A: Please read here: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html and here ... | |
| find string or not | 8/21/2009 |
| Q: sir , i have three type of string String s1="200908211738049843-89502501500"; String ... A: Have a look at this method: public void checkString (String s) { if (s.equals(s1) || ... | |
| Is the String an Integer | 8/18/2009 |
| Q: sir, i have one string, String s="12387500027"; but i have to check in my string s ,there is ... A: You have two options: (1) try { Integer.parseInt(s) } catch (NumberFormatException e) { // The ... | |
| read XML file | 8/12/2009 |
| Q: sir, i have one file "postto.txt" file is text file and inside of dis file this is written "<?xml ... A: Your "text" file is an XML file. Here is a code example, you should read more on the web. ... | |
| Develop Communication Server | 8/4/2009 |
| Q: My task is to develop program for handle vehicle tracking system. Data packets are coming from ... A: I cannot send an example, as it will be too long. I can tell you what you need, and you should look ... | |
| call a function every 10 min | 8/3/2009 |
| Q: sir, i m not expert ,i m just begener so plz can u write sime code for ,if i have 2 class CLASS ... A: I apologize for the delay in my response. The best method to call to wait time T is ... | |
| java | 7/31/2009 |
| Q: Please kindly help me with this problem, I would like to create a program that will ask the user to ... A: I am sorry, but is too much of a home-work question, which we are not suppose to answer. I will tell ... | |
| Comparing 2 arrays and adding and deleting from the destination array | 7/28/2009 |
| Q: I want to write a Java program that has two arraylist, one named as srcList and the other as ... A: I will not give a complete solution. Here is one loop. I trust in your ability to write the other. ... | |
| get my IP | 7/26/2009 |
| Q: sir, I like to know the function and the object that I need to use to get my present ip ... A: (1) Regrading your IP address: - whatismyip.com gives your WAN IP - the IP as your network connects ... | |
| javascript: Date | 7/20/2009 |
| Q: how to find the difference between two days in java script? Now store the difference, in days in an ... A: Here you can see some of Javascript date functions: ... | |
| Creating and manipulating Array Of Objects | 7/19/2009 |
| Q: Iam unable to visualize the concept of array of objects. Please help me understand the same with an ... A: First I will answer your question regarding the type of the array and then we'll continue with the ... | |
| Creating and manipulating Array Of Objects | 7/16/2009 |
| Q: Iam unable to visualize the concept of array of objects. Please help me understand the same with an ... A: An array of objects is simply a sequence of objects one after the other. Think of a shopping list: ... | |
| how to partially upload my pdf files | 7/15/2009 |
| Q: sir ,please tell me how can i upload my pdf file on my server so before fully upload first i can ... A: There are two options: (1) You load all the file and than use a program like TrID: ... | |
| How to invoke browser based XML query through java program | 7/9/2009 |
| Q: Here is the scenario, which i execute manually. I have a server where java based web application ... A: You plan is excellent. I am not sure what do you mean by "send the XML query to the web ... | |
| Jfreechart - compiling | 7/2/2009 |
| Q: I need Jfreechart library for my application.I cannot understand its manual.can you please explain ... A: To include any library with your compilation, you include it in the classpath. Example: javac -cp ... | |
| jar file dought!! | 6/23/2009 |
| Q: sir, this is venkatesh and i am an engineering student.i have a little knowledge of jar file.now i ... A: Inside the JAR there is a Manifest file. In that file there is a classpath. I guess that the entry ... | |
| Help Me | 6/22/2009 |
| Q: Java Script is better than other scripting languages for web design ???? plz give me anwer in detail ... A: JavaScript is very popular, so you can find many examples. It easy to learn and easy to write. But ... | |
| Printing with java | 6/16/2009 |
| Q: your answer to my last question about printing was excellent, and it makes a lot of sense to me, but ... A: The example you used (the first on the page) is based on: "If your OS and printer supports it, you ... | |
| Print Pattern | 6/15/2009 |
| Q: First of all sorry to ask such a dum question i am a dum dum Can you help me write a program to ... A: Yes I can help you. This is a rather simple loop. As you can see here: 1234* 123* * 12* * * 1* * * * ... | |
| Java Massanger | 6/13/2009 |
| Q: I want to create a messenger in Java I have very small knowledge in Java What skills should i have ... A: You need to learn a bit about Socket. Once you have an open socket you can send or receive data on ... | |
| cannot detect the run time error | 6/12/2009 |
| Q: the given program reads a file and seperates the string which matches witha given string and then ... A: "at b1.main(b1.java:65)" means the error occurred on line 65. Line 64 is: int pos=str.indexOf('.'); ... | |
| java array object | 6/10/2009 |
| Q: if you have information like this : cheese burger main meal 11.00 hot wings stater 12.30 ... A: My answer is the same. Example: _____FoodArray___SalesArray ------------------------------ ... | |
| java array object | 6/9/2009 |
| Q: if you have information like this : cheese burger main meal 11.00 hot wings stater 12.30 ... A: If I understand the question correctly, try this: String foodSold = "hot wings"; int i = ... | |
| Java printing | 6/8/2009 |
| Q: this might be trivial for you, but belive me I'll appreciate your guidance. I just finished coding a ... A: Sorry for the delay. Have you tried this: ... | |
| Java printing | 6/4/2009 |
| Q: this might be trivial for you, but belive me I'll appreciate your guidance. I just finished coding a ... A: Sorry, I don't understand the"how do I print this?" What do you mean by "print"? Print to the ... | |
| Threads and try/catch | 6/1/2009 |
| Q: why we are writing java thread code inside try/catch block? ANSWER: Hi Pratap, Usually, Thread ... A: another thread interrupts it using the [interrupt] method in class Thread. See here: ... | |
| Threads and try/catch | 5/30/2009 |
| Q: why we are writing java thread code inside try/catch block? A: Usually, Thread calls, such as: try { thisThread.sleep(interval); } catch ... | |
| Java Earlier Version Warning Message | 5/29/2009 |
| Q: I play some java-based games on my laptop with the most recent version of java... and there are ... A: The best solution I know is to remove the older versions of Java from your PC. - Close all the ... | |
| Findind a job in Java, having a SCJP | 5/23/2009 |
| Q: i am 21 years old and i only have matric qualification and im currently doing sun certified java ... A: The answer depends on where you will look for a job. Some places put a strong emphasis on your ... | |
| Adding images in JAR File | 5/17/2009 |
| Q: Ziv Ben I've just completed my project in java. And now i want to make executable JAR ... A: Here is a quick solution. After you created the simple JAR, using Eclipse, you can open that JAR ... | |
| chat program | 5/15/2009 |
| Q: what code to select contact from list and show private chat for this contact ? A: The main question is whether you need a server to connect between clients or client-to-client ... | |
| JNI question!!!! | 5/14/2009 |
| Q: I've one problem in getting the value of enum variable in JNI function ,which is residing in one ... A: I admit I am not an expert on JNI. As you mentioned: "Probably obj is not fine here" I see that: ___ ... | |
| java queue | 5/11/2009 |
| Q: ..but it doesnt seem to be working at all ..could you please help me and see what the problem is? ... A: y. Using an array is a good and simple implementation. A better option is a Linked-List. Or, an ... | |
| java constructor | 5/3/2009 |
| Q: public Customer (Time24Hour arrival, Time24Hour trans, int custId) { // you fill in arrival = new ... A: If I understand what you are trying to do, then this is not a proper constructor. Here is how I see ... | |
| Help me with static variable | 4/26/2009 |
| Q: I need help. Ill go straight to the point: I have 3 classes: [QUOTE][B]public class AssembledPart ... A: I see you understand that static variables are the same for all instances of the classes, and that ... | |
| java compiler and decompiler | 4/25/2009 |
| Q: I'd like to know some more about Java. And that is if I can decompile any professional software ... A: Obviously a Java decompiler should be able to decompile any professional Java software - i.e., it ... | |
| clear screen applet | 4/2/2009 |
| Q: now... when ever click on clear button then it clear the applet screen and reload and the command ... A: Sorry for the delay in my response. I was considering how to clear the command prompt, when I saw ... | |
| allign the string output (printf) | 4/1/2009 |
| Q: Could you help me with the following please? I am printing(outputting) from a string linkedList both ... A: Here is a starting point: public static void main(String[] args) { String words[] = {"could I ... | |
| Encrypt and Decrypt codes | 3/31/2009 |
| Q: I just need to ask a question about encryption and decryption. How could you improve the codes to ... A: I am sorry for the delay in my response. I am not an expert in encryption, so I had to check around. ... | |
| allign the string output (printf) | 3/30/2009 |
| Q: Could you help me with the following please? I am printing(outputting) from a string linkedList both ... A: You should read about Java's sprintf - PrintfFormat. Here is a link: ... | |
| onlin exam | 3/28/2009 |
| Q: ..Thanx for the previous help..... Actually my problem is...i need to write the source code in java ... A: What you are asking here is not question - you are asking for an application (a small application). ... | |
| Creating a distance conversion menu using a [void function] polymorphisms | 3/27/2009 |
| Q: I have to write a program that gives a menu of distance conversions from meters to kilometers, ... A: Usually the problem of "void function" is in C\C++, where the function signature is not so ... | |
| increment decrement opertors | 3/26/2009 |
| Q: how do increment and decrement operators work in an expression? is it that first all increment then ... A: A post increment/decrement happens immediately after the expression is evaluated, and a pre ... | |
| hi | 3/26/2009 |
| Q: ..can u give me the source code for online exam application in java.. Thank you ANSWER: Hi Sweety, ... A: I must admit I don't see the connection to the original question regarding the online exam. But ... | |
| changing file's hidden property | 3/24/2009 |
| Q: how can i access and change "hidden property" and "system property" of a file A: To access such file attributes, by Java, you must use either: (1) Win32 API or (2) system calls. ... | |
| 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: There are many formats for a file (Word, RTF, Text). I will assume you mean a normal text file. (A) ... | |
| HTML (JavaScript) countdown page | 3/22/2009 |
| Q: ..can u give me the source code for online exam application in java.. Thank you ANSWER: Hi Sweety, ... A: If all you want is a time countdown than here is a nice solution: ... | |
| controls in java | 3/20/2009 |
| Q: can you help me with my code. here's the code i made.. import java.applet.*; import java.awt.*; ... A: here is a simple answer that should work. (1) Move flavorGroup to be a global variable. (2) /** ... | |
| online exam application | 3/20/2009 |
| Q: ..can u give me the source code for online exam application in java.. Thank you A: That's quite a question. It sounds as though you need JSP pages or a JavaScript application, unless ... | |
| to print Unicode Assamese character in Java | 3/19/2009 |
| Q: it is working now.. but create another proble...... To print word (for example: ... A: I am not clear on what isn't working. Writing these characters in your Java editors depends on the ... | |
| Unicode character print | 3/16/2009 |
| Q: I want to print some unicode character(of Hindi language) as output. what are the procedure I have ... A: I'm afraid the solution is a bit complex, there are some configuration files to be edited. I will ... | |
| Unicode character print | 3/14/2009 |
| Q: I want to print some unicode character(of Hindi language) as output. what are the procedure I have ... A: You should search the web for "java unicode". Here is a short answer: (1) You should save the Java ... | |
| Change Co-ordinates of Button | 3/9/2009 |
| Q: How can we change co-ordinates of button on frame in java? I want to place button at particular ... A: I am sorry for the delay in my response. Using JFrame and JButton (swing package) should work with ... | |
| Displaying Arabic Strings | 3/6/2009 |
| Q: I'm working on a project and was given some Arabic strings to be used in the program. I am supposed ... A: Some text editors add some bytes at the beginning of a text file, when save it in UTF-8 (you can ... | |
| Displaying Arabic Strings | 3/4/2009 |
| Q: I'm working on a project and was given some Arabic strings to be used in the program. I am supposed ... A: You should indeed save the file in UTF-8 format. Then, to compile it use: javac -encoding UTF-8 ... | |
| Follow up on the last question | 3/3/2009 |
| Q: In your answer you mentioned do not take the algorithm word by word but I don't know how else to do ... A: You did a good job translating so far. I cannot give you a complete translation, as that is your ... | |
| Need help on part of the code please | 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: Don't take the algorithm word by word. If you are using switch-case you will have some duplicities. ... | |
| Need help on part of the code please | 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: The infix form 8 * 7 * 6 has two prefix forms: * 8 * 7 6 and * * 8 7 6. Option A: * 8 * 7 6 For ... | |
| Need help on part of the code please | 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: I have good news and bad news. The good news are that I will give you an answer. The bad news are ... | |
Answers by Expert:
Top Expert on this page
I can answer questions relating to: Java language and usage, coding standards, application modeling and design (model driven development), unit/system testing, test driven development, algorithm complexity issues, Ant and XML-technologies.
I'm in the software industry for over 4 years now. I worked mainly with Java, but also with other languages. I gave practical session for "System Programming", in university.
Organizations
Open-Source community
Publications
WikiAI08
Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.
Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.
Organizations
Open-Source community
Publications
WikiAI08
Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.
Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.
Publications
WikiAI08
Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.
Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.
Education/Credentials
B.Sc. in Math and Computer Science, BGU.
M.Sc. in Computer Science, BGU.
Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.
Past/Present Clients
Open source (and free) projects: D.U.C.K (source-forge), JXN for wireXN.

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