35,618 Topics

Member Avatar for
Member Avatar for abhishekkhandel

I'm attempting to write a directory monitor in java but I'm stuck. I'm trying to find something in Java that is like FileSystemWatcher in .NET but I don't think java does. From what I read is that you have to continually poll the directory for changes. What I would like …

Member Avatar for ithelp
0
76
Member Avatar for shaikh_mshariq

I am developing an application in which i want to set up ServerSocket's port on requirement. I have given an interface which accepts port number and this port number i want to assign my previously running serverSocket but serverSocket.accept() method blocks and I am unable to execute the code after …

Member Avatar for shaikh_mshariq
0
512
Member Avatar for lord12

A code is ambiguous when there exists a message using that code that can be partitioned into different sequences of code words. In other words, in an ambiguous code a message may have more than one meaning. For example, consider the binary alphabet, composed of symbols {0,1}. For the code …

Member Avatar for VernonDozier
0
193
Member Avatar for EASports

Hi everyone! I am trying to implement a red black tree and I'm having one huge problem. I recursively call my insert() method to find a null leaf, and after a rotation, the right child and parent of the rotated center are incorrect. Things may have gotten out of hand, …

0
48
Member Avatar for eddy556

Okay, here we go. I am trying to learn how to use javabeans properly and so I've created a small bean which just writes text to the screen. I keep getting the error: org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 6 in the generated java …

Member Avatar for ~s.o.s~
0
230
Member Avatar for brinze

Hello - I'm a brand new student of programming and I'm needing help. I'm stonewalled. I've got an assignment that requires me to create a class named Dice that another program will use to roll dice. The instructions are: - The class must be named Dice - A method named …

Member Avatar for brinze
0
141
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
87
Member Avatar for nikk

Hi friends, I'm creating a website for my college project. I came to know that to run it through tomcat, you need to create web.xml file first. i saw the readymade file in root directory of tomcat, but could not understand, how to modify (or create) it so as to …

Member Avatar for nikk
0
111
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
81
Member Avatar for nikk

I'm stuck here. Please Help me! I've created a feedback form which takes name, Email Id & Comments from users. On submit button, i want to save the entered details along with the current date to the UserDetails table, so that, when admin logs in and wants to see the …

Member Avatar for ~s.o.s~
0
91
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
109
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
224
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
84
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
66
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
53
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
77
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
118
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
92
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
97
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
84
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
121
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
56
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
81
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
71
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
120
Member Avatar for Adventa

Quick one here really, Basically there is one page with say, All Articles, When a user clicks on an article I want to go to a new page that displays the article clicked on. All I need to know is what method to use here. Should I use the link …

Member Avatar for Adventa
0
84
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
124
Member Avatar for eddy556

Hey, I'm having a problem with an if statement. I want to check if variable key and id are the same. They are both strings and when I print them to screen they certainly look the same. However when using them within an if statement it always returns false. Here …

Member Avatar for eddy556
0
170

The End.