32,204 Topics

Member Avatar for
Member Avatar for RedDevilMalaya

Write a queue-handling program that asks each customer for their names as they place orders at a fast food restaurant. Each record in the queue should consists of a name field with of 20 characters and an integer field, which keeps track of the total number of customer served. The …

Member Avatar for pbl
0
126
Member Avatar for newtechie

hi i have a doubt i did this coding and when i complied it and tried to run the program evenupon giving the correct answer("ritchie") the output i got says answer is wrong. can anyone tell me what is wrong with the coding [code=java]import java.io.*; class Invent { public static …

Member Avatar for Apache1
0
92
Member Avatar for CLina

Hi profissionals! Happy new year : ) .... I have a binary tree project and I need to convert a fully parenthesized arithmetic expression to a binary tree. I was thinking of this algorithm: 1. input a string of expression. 2. breakdown the string and creat new node for each …

Member Avatar for CLina
0
692
Member Avatar for Kioulis

Hello! Could anybody help me to make this java code( or part) to assembly (mips 32)? I would apprecĪ¹ate any help! The java code is: [CODE]import java.io.*; class BinarySearch { final static int MAX=5; public static void main (String args[]) throws IOException { char [] a = new char [MAX]; …

1
38
Member Avatar for adams161

Hi, I have a frame and it contains some different JInternal frames. I have a request that some people want some of these frames to be free floating, and not confined within a desktop. Is there any way to do this with JInternal frames? Or is there any way to …

Member Avatar for adams161
0
226
Member Avatar for nesrine18

hi everyone, i'm a new member of this forum..i'm trying to retrieve the video stream from my Axis camera..i don't know what's exactly the problem:when i run the project there's no errors but i get no video on my jFrame.. this is my code,can you please help me to know …

Member Avatar for kashif_pucitian
0
424
Member Avatar for deb081900

Hi all I have 4 jRadioButton in a buttonGroup1 now I want to know how to determine which radio button is selected within these 4 radio button on Button Click event.. I tried to but failed.. here is my code [CODE] private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { str1=buttonGroup1.getSelection().getActionCommand(); System.out.println(str1); } [/CODE] …

Member Avatar for JamesCherrill
0
634
Member Avatar for Alex_

Hello. I'm trying to serialize a class that implements Serializable and a Runnable. My class has a transient Thread object as a field that is created and started after the restoration of my class(object). This is proven possibile by a tutorial from Oracle, [URL="http://java.sun.com/developer/technicalArticles/Programming/serialization/"]here[/URL]. But i fail to compile my …

Member Avatar for Alex_
0
2K
Member Avatar for draven07

[COLOR="Green"]..im just wondering...If I have entered a sentence in a InputDialog box, using JOptionPane, how can I get the middle character per word and put it at the beginning of each word then add a "java" word at the end of each word..?..[/COLOR] [B]for example:[/B] [I]The girl jumped[/I] [B]The result …

Member Avatar for draven07
0
92
Member Avatar for ayan2587

Hi all, I am trying to understand as to how this InputStream.read(byte[] b) function actually works. I have a doubt regarding the InputStream.read(byte[] b) function. The code is as follows:- [CODE] import java.io.*; public class SpeedReading { public static int count(String filename) throws IOException { InputStream is = new BufferedInputStream(new …

Member Avatar for ayan2587
0
102
Member Avatar for rpjanaka

hi im janaka priyadarshana, I want to write a program to access a given URL. dont need to show it on a browser. only want to get the html tags and write it on a text file. serch on internet for this purpos, but unable to find any idea. please …

Member Avatar for Jacob Majana
0
367
Member Avatar for SaranyaKrishnan
Member Avatar for pbl
0
69
Member Avatar for sirlink99

I am having some trouble on inheritance in java. I am just testing how it works. I have a file that produces a random number in a folder called number. I have a file that calls the RandomNumber code that is in the main folder. I am wondering how I …

Member Avatar for pbl
0
87
Member Avatar for rayden150

could anyone give me guide on how to solve this simple java problem, i would deeply appreciate it, the problems goes like this> [B]Develop ab application in java that determines if any clients have exceeded thier credit limit in an account each client have the following data> a)Account number b) …

Member Avatar for pbl
0
104
Member Avatar for javap

I want help in writing a digit display(3 digit number) in java (using sub strings). Example 524 if user inputs then computer has to display 5 2 4.

Member Avatar for JKP()
0
146
Member Avatar for misszeze

hello Java programmers I need a method to check links to validate them if they were valid or broken, so far i found two methods at the internet: 1- the first one code: [CODE]HttpURLConnection urlConnection = null; try{ URL url = new URL(link); urlConnection = (HttpURLConnection) url.openConnection(); urlConnection.setRequestMethod("GET"); urlConnection.connect(); String …

0
45
Member Avatar for adams161

I have found out a program similar to mine, a chess interface, named jin, jinchess.com, deploys on mac as an SDI program. This means all the windows are free floating and i think the menu is detached. Any idea how this is done? the same program deploys under windows as …

0
98
Member Avatar for mangopearapples
Member Avatar for mangopearapples
0
132
Member Avatar for john sigma

hi guys, i am using eclispe 3.5 to develop a hangman game but im in no man's land now. I have created 26 alphabets buttons A-Z and i want to display the alphabets in the JTextField when the button is clicked. When the user guesses the word incorrectly the word …

Member Avatar for jon.kiparsky
0
202
Member Avatar for gedas

hey, i have drawn few 2d lines and i would like to apply a button for each of them so once the button is clicked that line is removed once clicked again it would reappear. the rest of the lines stay where they are unless their buttons are clicked. how …

Member Avatar for JamesCherrill
0
72
Member Avatar for cool_jatish

Hello guys... I am working to module need to convert any UNICODE words/ chars that never change with font To their equivalent HTML numeric & JAVA unicode [\u****]. In the JSP the charCodeAt(i) function works but in JAVA no such utility exit ... Plz write with such an suitable example …

Member Avatar for quuba
0
194
Member Avatar for sharathg.satya

haii friends please help me in how to play a music file in java please i tried many ways by using google and other ways but was unable to get a clear idea please help me

Member Avatar for sharathg.satya
0
171
Member Avatar for RaySan

I am a newbie on Java. I think im lucky to find this site. I am doing a technical presentation and my title is to present about IDE on Java. I have researched on some of the IDEs for Java such as Eclipse, NetBeans, JBuilder,Jcreator. My presentations would be on …

Member Avatar for masijade
0
470
Member Avatar for SeanC

Hi all, I'm writing a simple encryption algorithm and have stumbled upon a problem relating to the file handling itself. What my program does is reads text from a file, encrypts it, and writes it to another file. That's all well and good, and it works fine - until a …

Member Avatar for SeanC
0
459
Member Avatar for mani_1991

I have a situation like this... I have four different tables namely btech_ece, btech_cse, btech_it, btech_eee all these tables have the same columns. Its just that the name differs and everything else is same. Their columns are:- Id Year Semister Section Period SubjectCode Date Status now i have four different …

Member Avatar for pbl
0
183
Member Avatar for techalerts

hi frnds, i completed mca 5th semister. now i want to do a project on java. could any one help me what are the current best projects on java?

Member Avatar for JKP()
0
64
Member Avatar for Janes

Hi, I have a problem, I doing a project in Java, the program I have already written. But I need to do the GUI,but I do not know how to do it. The program plots the curve. Would not it help someone with it please? I have despaired of it.Thanks

Member Avatar for mrnutty
0
129
Member Avatar for Coyboss

Hi all I am trying ot use Netbeans 6.9.1 to write a basic "hello world" java script, but it keeps giving me the following error; ********************************************************************** debug: Have no file for C:\Program Files\Java\jdk1.6.0_23\jre\lib\modules\jdk.boot.jar java.lang.NoClassDefFoundError: helloworld/Main Caused by: java.lang.ClassNotFoundException: helloworld.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) …

Member Avatar for ~s.o.s~
0
162
Member Avatar for kvass

Hey Everyone! I need some help with a JTable I'm working on. [CODE] TableColumn column = table.getColumnModel().getColumn(2); ... JComboBox comboBox = new JComboBox(); comboBox.addItem("A"); comboBox.addItem("B"); comboBox.addItem("C"); comboBox.addItem("D"); comboBox.addItem("E"); comboBox.addItem("F"); column.setCellEditor(new DefaultCellEditor(comboBox)); [/CODE] I know that the code above will take the column of the table at index 2 and give …

Member Avatar for kvass
0
124
Member Avatar for Yangz_Seth

*Please HELP me make a program that will determine a 24-hour equivalent from the given input: Ex: 1:00pm - input 13:00 - output 5:45pm - input 17:45 - output.. *HELP Guyz..PLEASE..for our assignment..tnx alot..God Bless..

Member Avatar for Yangz_Seth
-1
122

The End.