32,204 Topics
| |
Hi All, from my form bean when i am giving input as a german character, from the method request.getParameter(), it's converting it into some other data, can you people help me what should i do. | |
I have a test soon and are having troubles with the following questions.. 6) A local variable is a: (A) variable declared in a field (B) public statement of a variable in a method (C) private statement of a variable (D) variable declared and used within a single method 9) … | |
[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty … | |
Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks. | |
hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance ! | |
Hi there folks, Very new to java and I have what I hope will be a simple question... I have JDK 1.5 installed on my C: drive and my source on my E: drive (flash drive). I'm trying to run the source and I always get NoClassDefFound errors when I … | |
| |
Hi I'm just trying to create an appliation in java that can hold my expenses and save it to review every month or end of the year.The problem with it is how can i hold the data of everyday expense into it.this could be with help of oracle or MS … | |
Hi, I am developing an app with some similarities to a bittorrent client. The problem I am facing is in writing blocks of data to appropriate places within a file since they can arrive out of order. I have looked over the OutputStream classes and cannot see a way to … | |
Hi I am trying to develop a project in Java as per the following requirements: 1. I need to store fingerprints in The oracle database, taken by any fingerprint scanner. 2. I need to access data using fingerprint matching process. 3. I donot know how to match the patterns using … | |
hey i have that singleton code in java but how can i check that it have an instance only? [CODE] class singleton { private static singleton instance; private singleton() { } public static singleton getInstance() { if (instance == null){ instance = new singleton(); } return instance; } } [/CODE] … | |
Hey, I am trying to implement a ctrl + x to close my program when the user clicks on the exit menu item or hits ctrl + x, but so far it is unresponsive, here is my code: [CODE=java] package main; import javax.swing.*; import java.awt.*; import java.awt.event.*; import testing.Intro; public … | |
I need to query a database on a server. As a first step, I have written the following Java code to just make sure I can access the database. I thought that the Try-Catch blocks would take care of the exception problem, but apparently they do not because when I … | |
hey i am new in java and i need help for a project of scool i need a program in wich i form a matrix and the numbers in it will form like this 1 but there is a problem the o must not be there only the 1 o … | |
hi all! how can i change the alignment of a form item such as imageItem or TextField or ... in netBeans 5.5.1 ? | |
can someone explain this to me... coz i cant understand.. im trying to this one but i cant do it. Implement and test this method: static double max(double[] x) { // returns the maximum of the elements in the array x | |
hi, im having problems with my password textfield. for instance, my password is "default", and when i start typing in letter "d", the letter "d" is being displayed first before turning it into an asterisk. i was thinking if it is possible to make my entry entirely in an asterisk … | |
At 12:16 (I live in NH, if the time matters) I noticed I was having a problem with the Java forum and only that one. Whenever I loaded it (using Firefox, WinXP) the thread list was messed just a little. AS you can see it only shows the last post, … | |
Hai, I write a simulation and need to set the time for running the simulation. the simulation should stop based on the time that heve been set .How to set start time, get the current time and lastly to get the total time of java running program? really hope u … | |
In this is just one class. can someone tell me to add a new query? [code] /* * SplashView.java */ package splashapp; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import org.jdesktop.application.Task; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import javax.swing.Timer; import javax.swing.Icon; import javax.swing.JDialog; import javax.swing.JFrame; … | |
I have a netbeans demo program with clasess and libraries the whole bit. I need to understand these lines of code because I need to click on the button I added:caputure the string in the jtextbox;put it into a query and put the resultset into a list and then display … | |
Dear friends, I have a piece of code that looks like this: JOptionPane.showMessageDialog(null,"List of Tax Payers for year 2006 (Sorted with NRIC):" + printList() ); However, the compile error was this: 'void' type not allowed here case 1 : JOptionPane.showMessageDialog(null,"List of Tax Payers for year 2006 (Sorted with NRIC):" +printList() … | |
Does anybody know how to make a parser???A program that checks wether the entered expression is correct or not..If the expression lacks a parentheses if that is needed in the expression, or invalid operator..etc... | |
Hey guys I've got a JText field set up and i append strings to the JTextField but im wondering how to invidually set the color of each string that i append? I've taken a look at the JLabel class and I did come up with the idea that I could … | |
hey hi to everyone im new in the site bout i thin its cool but the reason i am writing is that i have a home work in java and i have no idea how to do it can someone help me??????? a matrix in wich a number moves some … | |
[CODE] class Queue { int front, rear, max, size; int items[]; public Queue (int s) { front = rear = -1; max=5; size=0; items = new int [max]; } // should we still include the "front" in this section? public boolean enqueue (int x) { if (size==max) return false; else … | |
Hi everyone. I need an application that loads a window to the top of the screen -1 inch height. The window should be always on top, but here is the catch. Every other window should appear below it. I.e no window should be covered by my small window above and … | |
hi all, i want to access an application from the domain server. is there any possible way to do this task. if possible tell some idea with examples. Advance thanks. hidash | |
So I'm in the final days of being able to turn this in, yes it is a homework assignment, but I've almost got it completely done. In fact I'm only having issues with like the last 8 lines. (at least that's all that is causing an error right now.) Here … |
The End.