Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Java Solutions: 176 - 200 of 4168
 
Hi, I made a HashMap<String, Integer>. I want to iterator over all elements. for (Iterator it = m_Table.values().iterator(); it.hasNext();) {     Map.Entry entry = (Map.Entry)it.next()...
I am trying to clean up some code that was generated for me using a code generator reporting tool. My project as 100's of these annoying warnings that state "Type safety: The method put(Object...
I tried to install RED5 0.6.3 on a CentOS 5.0 VPS (Virtual Dedicated Server) with 256M memory by following the instruction. http://osflash.org/red5/fc4 The following steps are always OK. B...
Hi All, I am abit rusty with my Java. Basically what im trying to do is compare the data in two text files. Basically they should match. The data in the files are separated by tabs i.e.some...
hi, I want to refresh a JTable with another JTable values. How can i do that? Basically i want to copy the values from a backup JTable to another JTable which is being displayed on the screen...
I am processing a file (from a mainframe system) containing fixed width records which are encoded in EBCDIC. I've opened the file and read the lines into a byte array (byte[]).   I'm wonde...
hi guys when i use this code                 Session session = HibernateUtil.getSessionFactory().getCurrentSession();                session.beginTransaction();           try {                 //c...
Hello I have the following line in php $char = chr(ord($char)-ord($keychar)); and I'd like to have the same thing in java Is someone can help me Thanks Regards
I have this error when i am trying to start the Tomcat browser in the IE. I have successfully configure the Tomcat with Eclipse. Exception: Unable to find a javac compiler; com.sun.tool...
Dear expert, I split a string Query = PERSON*YEAR*DATE String Query = PERSON*YEAR*DATE; String[] result = null; String splitPattern = "*"; result = Query.split(splitPattern); if (re...
What is the use if dispose( ) function in Java and can any one give me some areas where we use dispose function. And one more question, what does it mean if we use this( ) function in Java, d...
Hi all, I am trying to get a simple data access and display .jsp page working but I have run into difficulties. I am running: --- JDK 1.4.2 (C:\j2sdk1.4.2_13) --- JRE 1.4.2 (C:\Program...
I need to pass some parameters to my forward,like that:             www.something/myapp/newslist.do?sysId=4 here is my action delaration:        <action path="/newscreate"             type="News...
Hi When i was compiling my program ("javac ChoiceFormatDemo.java") everything went fine but when I try to run " java ChoiceFormatDemo" problem with class occurs. Any ideas.Thank you in adva...
Hello everyone, I built one JSP+XSQL based website. I hope the internet enabled mobile phones can get their current location (X,Y) and pass them to my JSP pages. I think it must use JAVA to...
I am trying to get jconsole to run on my Tomcat 5.5 installation. I can run jconsole on a sample app that I run from the command line. For example: $ javac com/example/mbeans/*.java $ jav...
I have a small twist to the many,many questions already posted for this never ending problem. How to find the number of minutes between two dates?  The below code, does not take the day in...
Hi, How can I put a limit to a text length, entered in a JTextField? I know I can check the length of a text that was entered to the JTextField, but I want the user to not be able to enter a...
How can i get the current date and then find the number of days from a give date till that day is reached eg if today is 03/11/08 and then i supply 3/12/08 it would be 364 days (unless it wou...
Hello, how do I add JButton JTable cells. I have created a default model. I pass Object data[ ][ ] and Object column[ ]. I have 5 columns. Out of 5 columns, 4 columns contain string value a...
Experts: I'm trying to read an XML file.  Here is my code.   dbf = DocumentBuilderFactory.newInstance(); db  = dbf.newDocumentBuilder(); doc = db.parse(pathAndFileName);  // ensure str...
I have an application in Java. Each time when we change the server, we have to change the databae name, user name and some paths for text files and recompile it. I want to make a configuration...
I am newbie to JAVA I need to maintain a list of UNIQUE connected usernames. I guess something like  this snippet: users = new something; // array ? Lists ? Iterator ? function check_us...
I have added a new column in the database table and am trying to insert a record into the table using my application. The application throws the following exception: com.ibm.db2.jcc.a.SqlExce...
      when i am trying to insert into a table(using preparedstatement) which is having 150 columns ,at that time i am getting this exception. what is the meaning of this exception?        i am not...