32,204 Topics

Member Avatar for
Member Avatar for studecua

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 …

Member Avatar for studecua
0
85
Member Avatar for sasdap

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 ?

0
39
Member Avatar for eddy556

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 …

Member Avatar for ~s.o.s~
0
80
Member Avatar for delosoa

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 …

Member Avatar for javaAddict
0
107
Member Avatar for nschessnerd

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... …

Member Avatar for nschessnerd
0
221
Member Avatar for kpp003

[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 …

Member Avatar for VernonDozier
0
83
Member Avatar for Dilbert137

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

0
64
Member Avatar for swetha bandaru

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

0
52
Member Avatar for kiwanz7

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 …

Member Avatar for masijade
0
76
Member Avatar for kiwanz7

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 …

Member Avatar for masijade
0
116
Member Avatar for AS_82

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 …

Member Avatar for javaAddict
0
90
Member Avatar for Rasjoe

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 …

Member Avatar for Rasjoe
0
94
Member Avatar for Koldsoul

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 …

Member Avatar for Koldsoul
0
82
Member Avatar for Mquin

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; …

Member Avatar for joshSCH
0
120
Member Avatar for srikanth882003

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

Member Avatar for masijade
0
106
Member Avatar for Jonhlong

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

Member Avatar for Phaelax
0
55
Member Avatar for srinukatkam

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 …

Member Avatar for SheSaidImaPregy
0
80
Member Avatar for gcardonav

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

Member Avatar for DangerDev
0
70
Member Avatar for fpaquin

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 …

Member Avatar for fpaquin
0
117
Member Avatar for nuch1311

/** 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. …

Member Avatar for DangerDev
0
123
Member Avatar for ajithraj

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.....

Member Avatar for ajithraj
0
91
Member Avatar for sridharp_in

Hi, My project requires, autosuggest textbox in jsp/servlets/javascript where we retrieve data from database(oracle). Thank u, Sridhar.

Member Avatar for masijade
0
63
Member Avatar for Ankita B

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 …

Member Avatar for jwenting
0
74
Member Avatar for Danii

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?

Member Avatar for Danii
0
109
Member Avatar for nuch1311

/** 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. …

Member Avatar for Ezzaral
0
107
Member Avatar for new_2_java

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 …

Member Avatar for new_2_java
0
4K
Member Avatar for sridharp_in

I need code for autosuggest textbox in html using java connecting database. plz its very urgent. Thanking u in advance. Sridhar.

Member Avatar for jwenting
0
83
Member Avatar for chetanmangsuli

Implementation of Apriori algorithm using count distribution algorithm could any one send the source code at [email]chetan_a84@yahoo.com[/email]

Member Avatar for techniner
0
112
Member Avatar for JoePie

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. …

Member Avatar for JoePie
0
1K
Member Avatar for sanzilla

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 …

Member Avatar for sanzilla
0
141

The End.