32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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]; … | |
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 … | |
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 … | |
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] … | |
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 … | |
[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 … | |
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 … | |
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 … | |
how to set url as object property in Protege tool and integrate with eclipse | |
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 … | |
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) … | |
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. | |
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 … | |
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 … | |
How can I detect a collision between 2 images? E.G if(Image1 collidesWith Image2){} | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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? | |
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 | |
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) … | |
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 … | |
*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.. |
The End.