32,199 Topics

Member Avatar for
Member Avatar for shkl_javed

i need to know we can use fuzzy logic in determination,manipulation &identification of wave characteristics eg signal generated by voice ,brain waves etc. if yes ineed to know where i can find this concept.plz help me regarding this (i came to know that voice recognition in cell phones exists but …

0
62
Member Avatar for ceyesuma

I was inquiring about the button group in the outlook panel where the buttons collapse. Does any one know what that code looks like. Could you send me someathat? Thanx Merry x-mass

Member Avatar for masijade
0
37
Member Avatar for curt22

I'm new to Java and I'm wonder if someone can help me with this. I have a class that's constructor makes a Gui window, and it's main calls this constructor. The problem is the event handling doesn't work because the event handling code can't access the GUI window variables (It …

Member Avatar for parthiban
0
117
Member Avatar for Drags111

Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has …

Member Avatar for eggi
0
110
Member Avatar for nljavaingineur

Dear fellow developers, Below is code calculating your weight on different planet using Enum type, from the book of Java Tutorials. Can anyone tell me what does `"%"` mean in `"%s"`, `"%f"` and `"%n"`? How does all three managed to get in the for-each loop without being declared explicitly before …

Member Avatar for nljavaingineur
0
120
Member Avatar for suriname0

I have a rather vague question on Applets. Is there some way for the Applet to communicate back with the JavaScript that runs it? I use the PARAM tag to send information (cookies with username, settings, etc.) in, but I want to be able to get information back out of …

0
48
Member Avatar for energizer100

Hey. I'm having some difficulty in Array lists. I have to find the average of all the numbers in an array list. That's my first task. My second one is to find the mode of all the numbers, meaning the number that shows up the most. And the third one …

Member Avatar for bops
0
123
Member Avatar for neow

hi there everyone! :D i'm new here and i'm wondering if you can help me with my java programming. actually it is my project and i'm having a difficult time with it. here is is my code. its about array computation, 1st you will input how many operators you will …

Member Avatar for neow
0
105
Member Avatar for gaowei

I don't understand it mean? Who can help me explain it?Thanks in advance! for example this programe: [code=java] public class score{ public static void main(String args[]){ int a[]={90,98,97,67,89,68,76,69,96,66},sum=0; double ave; for(int i=0;i<a.length;i++)sum+=a[i]; ave=sum/10.0; System.out.println("Average="+ave); for(int s:a)System.out.printf("%4d",s); System.out.println(); for(int s:a)System.out.print("%4d",(s-(int)ave)); } }[/code]

Member Avatar for darkagn
0
81
Member Avatar for bops

I am trying to implement a feature when the user clicks a specified shape (trigger) on the screen that an event is triggered. The following code is a class that I have written that implements mouse picking. [code=java] class Picker extends PickMouseBehavior { private PickCanvas pickCanvas; private Node trigger; private …

Member Avatar for Ezzaral
0
188
Member Avatar for sivaslieko++

Hi everybody, I am new at GUI and I need your help.. I have a JPanel, named "holdAll", layout of which is set to BorderLayout. I have implemented all other JPanels in different class files. For example, I have TopPanel, LeftPanel, etc. as shown below LeftPanel myLeft = new LeftPanel(); …

Member Avatar for bops
0
102
Member Avatar for The Dude
Member Avatar for Sandeep arya
Member Avatar for FSinister

RE: my earlier stupidity... MY CREATION LIVES!! its 06:15 friday morning here in Dublin, and my cmd line program _successfully_ 1. Returns whether input.txt of up to about 70KB is written in French or English 2. Based on 2 letter digram segments now all I have to do is write …

0
77
Member Avatar for mentallybroken

i need a program that asks for one number and output like this: 1234 123 12 1 12 123 1234 [COLOR="Red"][B][U]NOTE:[/U][/B][/COLOR]: in the example above the input given is number 4. requirement doing this in using nest FOR loops. i started coding it bu i dont get the algorithm or …

Member Avatar for mentallybroken
0
109
Member Avatar for sillyboy

Hey guys, I am writing a desktop app to interact with XML. It reads the XML fine using the DocumentBuilderFactory, but when I try to save any changed to the XML file (e.g. setNodeValue()) the changes do not save. As an example here is some code I tried, just to …

Member Avatar for sillyboy
0
98
Member Avatar for chr.kj

Hi. I´m having some trouble with my search code. I'm trying to make it search in either my varenummer field or varenavn field. My method to do so looks like this: [code] public KasseInterface søgVare( String varenummer, String varenavn ) { System.out.println( "Søger efter vare med varenummer: " + varenummer); …

Member Avatar for chr.kj
0
213
Member Avatar for jellyfish888

Can anyone please help me with my sorting Array...my teacher asked me to do a code for sorting array using html and servlet. I don't know how to start this program since I am still new in java...please help me...if you can provide example code then that would me appreciated...

Member Avatar for ~s.o.s~
0
478
Member Avatar for vishal_suri

Can anybody please tell some way to access MS Access database from a jar. I am using the following line of code: ClassLoader.getResource(databaseName); But its not working. Can anybody please help? Thanx, Vishal

Member Avatar for Ezzaral
0
62
Member Avatar for patmagpantay

We currently have a working JSP script that can add and average integers, now our professor wants us to make the same script but using a different language, she wants us to program it using "java servlet". Our script is currently posted at [url]http://www.patrickmagpantay.com/wishlist.html[/url] . Please help us :(

Member Avatar for peter_budo
0
177
Member Avatar for patmagpantay

I coded a script, Currently I can add and delete items to the database but I cannot edit the data. Here's my 3 paged script : Christmasswishlist.java import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; /** * Servlet implementation class for Servlet: ChristmasWishlist * */ public class ChristmasWishlist …

Member Avatar for patmagpantay
0
138
Member Avatar for web4

[code=java] import java.io.*; import java.util.Scanner; class heh {public static void main(String[]args)throws Exception { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Scanner me =new Scanner(System.in); int a[]= new int[20]; boolean find = false; int b; int c; System.out.println("Enter 20 numbers:"); String read=input.readLine(); String token[]=read.split(" "); for (b=0; b<20;b++) {a[b]=Integer.parseInt(token[b]);} System.out.println("Enter No. u want 2 …

Member Avatar for web4
0
75
Member Avatar for 71monaro

Can some one please guide me on creating a JSpinner that only supplies value on MouseRelease Events. As dont want to send the intended application updates as spinners contents while rapidly changing. (there needs to be a timeSinceRelease accounted for.) but Its what i need to write like the particular …

Member Avatar for Ezzaral
0
789
Member Avatar for FSinister

Hi, I'm new here, but you'll probably be seeing too much of me before long ;) My names Daniel. I have this sort method for sorting (essentially) an array, but it does strange things that i can't quite figure out, and it doesn't sort. the array is a feature of …

Member Avatar for FSinister
0
151
Member Avatar for Danii

hi I have created the discard method in my player class and play is a Card[] so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]" any help is appreciated thanks

Member Avatar for Ezzaral
0
100
Member Avatar for RoOose

Hi.... I've wrote a code about arrange the names in descending order. But, I'm not sure it's right or wrong. Can u help me, please? The code is: import javax.swing.JOptionPane; public class Names { public static void main(String[] argus){ int i = 0; int n =10 ; int j; String …

Member Avatar for Ezzaral
0
85
Member Avatar for aan@ucsc

Can anyone help me to do this if a jTextField has text like this 1A2B89C0 array[0]=1; array[1]=10;//A should convert to 10 ,B to 11,c to 12,........ array[2]=2; array[3]=11;//B to 11 array[4]=8; array[5]=9; array[6]=12;//C to 12 array[7]=0; actualy this part is needed for a program which is convert a number in …

Member Avatar for aan@ucsc
0
92
Member Avatar for ceyesuma
Member Avatar for ceyesuma
0
100
Member Avatar for mtbutt

Hi Friend's... I can't make this program...Plz help me to make this program.. Make a Driver class TUNES.In this class Creates a CD Collection Object and adds some CD's to it Prints reports on the status of the collection.and then make a class CDCollection and write a constructor that creates …

Member Avatar for jasimp
0
134
Member Avatar for arik

I have made application using JBuilder 6 (JRE 1.3) Operating system WIN XP (JRE 1.3) When I run application in JBuilder evrything works fine. Now I made executable .JAR file using JBuilder (wizard -> archive builder -> application) When I executed the .JAR file the background color on JButton (javax.swing) …

0
49

The End.