32,204 Topics
| |
Hi guys. First post. I have to write a program that allows the user to input his or her name. If the user type all lowercases the program should be able to convert to first letter of the name to uppercase. Also, if the user press "enter" without entering the … | |
Is it possible to use JSAPI in linux? or is it only for windows. If it is possible in linux then What are the steps to incorporate it in linux ? | |
I know I'm probably being dumb here but I cannot seem to compile a java bean. Here is my code: [code] package beans; import java.sql.*; public class example { public void test() { out.println("The bean worked"); } } [/code] I get the error: example.java:5: class Example is public, should b … | |
Can you help me with this?? The total will be displayed only when the user type -1. And it will continue looping if you will not type -1. And it will also continue to add the total(that will be displayed only if you type -1). import javax.swing.JOptionPane; import java.text.DecimalFormat; public … | |
Hey, so this is killing me, I have a class category, and the equals looks like this: [code=java] public boolean equals(String s){ return s.equals(name); } [/code] this is because i have an arrayList of categories, and i want to do: [code=java] int i=catList.indexOf("some name"); [/code] but it always returns -1... … | |
[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.Scanner; public class ExpressionCalculatorPanel extends JPanel { // Variables to be used private JLabel inputLabel, resultLabel; private JTextField ExpressionCalculator; private JButton computeButton; //----------------------------------------------------------------- // Constructor: Sets up the main GUI components. //----------------------------------------------------------------- public ExpressionCalculatorPanel() { inputLabel = new JLabel ("Enter a value of … | |
| Dear All, I'm starting a new project on the convertion of client code to ean13 code. Could you please help me to find some documentations on java langage programming on this conversion. Best Regards Dilbert137 |
i am facing a problem with rmid while installing jini in linux. while activating rmid i have used the command rmid -d -jsun.rmi.activation=none then i am getting an exception such that the rmid port is alredy in use. can ny one help me out | |
Make a java application called Statistics.java that implements the measures of central tendency and variation in descriptive statistics. Your program should make a use of one-dimensional array called rawScores with size 30. The rawScores array must be declared and constructed as global data of class Statistics. The array will hold … | |
I have a problem in my programming ....kindly help me...how to implement this problem.... Make a Java application that will create and implement the following: Global data: static int[] num1 = new int[10]; static int[] num2 = new int[10]; static int[] num3 = new int[20]; Methods: //arrNo value is either … | |
I/P : Input array[] = {4.0, 6.5, 34.0, 2.0, 56.0, 73.0, 5.0, -5.0, 22.0, 45.0, 52.0, 42.0, 421.0} O/P: Sorted array[] = {-5.0, 2.0, 4.0, 5.0, 6.5, 22.0, 34.0, 42.0, 45.0, 52.0, 56.0, 73.0, 421.0} Sorted array using bubble sort. public class BubbleSort { double[] getBubbleSort(double[] values) { [COLOR="Red"]return new … | |
Hello friends...I was given a task that ,taken a image u have to convert it into pixel values... And I have to find the difference in pixel values in various parts of the image..ie when u take ur own photo u have to pixel values of eye portion and other … | |
I am brand new to java this semester. So far it has been going well, but having trouble figuring out how to do this one part of a program I am working on. This program requires the user to input a playing card, abbreviated, such as 9D for 9 of … | |
How do I change the ASCII value of the character? It seems to give me the values but I don't know how to change them. I am not sure how to do it right. [ICODE] public void toUpperCase(){ // if ((ch >='a')&&(ch <='z')) // return(char)(ch-32); // Explicit // return ch; … | |
hii can any one help me in setting path for jdk1.5 plssssss help me my jdk1.5 is loacated as follows C:\Program Files\Java\jdk1.5.0_05\bin | |
Hi there! Anyone got any code of a Java application like an animation of a data flow within a system?Any code.I could change it later.Thanks | |
Hi I am using 2005 vb.net in that five columns is there like Field, Default Label, Visible ,Custom Label, Sort Order, Field Default Label Visible Custom Label Sort Order AC_DOC_NO Accounting Document Number Select Sort Order 1 2 3 4 5 6 7 8 9 10 11 12 13 14 … | |
Greeting friends I have intermediate knowledge in Java but I have never been to keen whe it comes to GUI. I been ask at work to learn more about GUI's, my question is, Does anyone knows any good online GUI tutorials. Thank you for any tips or responses. GCard | |
Hi to all, I am using Java version 1.3 with IBM Websphere and DB2. I would like to create a page that you can save and retrieve an image from DB2 and post it on a web page using a stored procedure. My questions are: 1. How should I create … | |
/** Program name: MonthlySales.java Author: Dominick Saccoccio Date: 2-19-08 Description: The program provides an end-of-the-year sales analysis for a company. The revenue contains total sales for each month, where revenue ={ 16692, 2504, 2463, 1857, 2369, 2684, 3374, 2630, 2531, 1928, 2692, 2578} presents the sales of January to December. … | |
haiii friends.. i want to generate buttons at the run time...and want to get the value on "onclick"... The code is like this.... <html:button property="button1" onclick="getButton();" styleClass="FORM"><%=list.get(x)%></html:button> x is incrementing...this code is inside a for loop...... thanksssssssss..... | |
Hi, My project requires, autosuggest textbox in jsp/servlets/javascript where we retrieve data from database(oracle). Thank u, Sridhar. | |
hi, I am making a web based application.There is a page where user can update his record. For that when user clicks on modify button on one page(page1.jsp) the corresponding record is to be displayed in textboxes corr to various fields such as name ,id etc. on a different page(page2.jsp).The … | |
My problem: Use an Iterator to go through all of the elements in the list, getting each element's textual representation, and displaying this text neatly inside the text area. My thoughts: Do I use an add method to add elements from the list to display onto the text area? | |
/** Program name: MonthlySales.java Author: Dominick Saccoccio Date: 2-19-08 Description: The program provides an end-of-the-year sales analysis for a company. The revenue contains total sales for each month, where revenue ={ 16692, 2504, 2463, 1857, 2369, 2684, 3374, 2630, 2531, 1928, 2692, 2578} presents the sales of January to December. … | |
Hi all, I have a program which downloads a bunch of documents from a remote server and after bundles them up in a .zip file using ZipOutputStream. The problem is that when I download the files, there could be more than one file with the same file name. So, when … | |
I need code for autosuggest textbox in html using java connecting database. plz its very urgent. Thanking u in advance. Sridhar. | |
Implementation of Apriori algorithm using count distribution algorithm could any one send the source code at [email]chetan_a84@yahoo.com[/email] | |
If anyone can throw a good suggestion my way, i 'd love it. I'm coding a piano that uses Swing and the piano keys are JButtons. A standard computer keyboard can be used to play notes by linking up to the JButtons. I'm only using two buttons for a prototype. … | |
Hi I am really little bit new to java , actually J2ME , really , can anyone know the API or libraries that can freely download to handle the vcf business card format that come with outlook express ? I really feel lazy to write my own code , anyone … |
The End.