32,204 Topics

Member Avatar for
Member Avatar for blue_Student

I want to have a changing output in the 2nd textfield that is 'output' in my Action class as I enter input in the 'input'textfield. I don't know why it doesn't give any output... pls help The comboBoxes convertTo---contains "IEEE" and "DEC" while precisions contain "Long", "Single", "Double". Any advice …

Member Avatar for JamesCherrill
0
238
Member Avatar for software girl

i have to calculate the MEDIAN of an unsorted array(i.e,array must be in sorted order before calculation of median).I am a beginner in java.kindly help me with some kinda code,and learn me how to calculate the median in this case?thankx

Member Avatar for JamesCherrill
0
738
Member Avatar for ZombieKnight93

This is the program we were assigned to do (Project: Emergency Response Class) The North American emergency response service, 9-1-1, connects callers to a local Public Service Answering Point (PSAP). Traditionally, the PSAP would ask the caller for identification information—including the caller’s address, phone number and the nature of the …

Member Avatar for ZombieKnight93
0
1K
Member Avatar for reincom

if(isource == txtFirstname){ try{ String searchHotelCustomer = "Select * from HotelCustomer where CUSFirstName='"+CUSFirstName+"'"; driver.selectQuery(searchHotelCustomer); ResultSet rsSearch = driver.rs; if(rsSearch.next()){ txtRoomNum.setText(rsSearch.getString("RoomNumber")); } } how do i get int value from text?

Member Avatar for Seldar
0
276
Member Avatar for Sockoiid

I was trying to install java JRE7 this earlier. I followed the instructions Mike 2000 17 linkedd in another linux thread. In the installation stage of the setup it said to put this into the terminal: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer I did that and …

Member Avatar for iLikePHP
0
423
Member Avatar for bob.henry.1884

Just like the title says, i would like to to know the code for adding up values of multiple objects. Bonus point if you can suply me with the code to divide those values by 8.

Member Avatar for JamesCherrill
0
79
Member Avatar for blue_Student

Hi, I'm doing an input validation of a String. The number should have a decimal pt, a whole number and a fraction part. It can have a negative sign (-) but not positive sign(+). This is what I've done but when I write --43.05, it prints false. String n = …

Member Avatar for blue_Student
0
224
Member Avatar for minimee120

Hello all, I'm working on a simple self-chat program, which will eventually lead into a server/client chat program, but for now I am trying to learn the basics. When I run my applet, when I type something in the textarea, it shows up in the text field just fine, but …

Member Avatar for JamesCherrill
0
268
Member Avatar for Ms

Hi, how i can fix my code to support keyboard input? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculater1; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.awt.event.ActionEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; …

Member Avatar for JamesCherrill
0
3K
Member Avatar for david_25
Member Avatar for JamesCherrill
0
131
Member Avatar for endofsemester.afterparty

Need help finalizing program, I'm able to display the highest points and during what game but it's not working for the lowest score and game. int max = 1; int min = 1; int highestGame = 1; int lowestGame = 1; Scanner input = new Scanner(System.in); System.out.println("Enter Texan's First 8 …

Member Avatar for stultuske
0
167
Member Avatar for COKEDUDE

I would like to print my values in my array. I am filling my values with a string tokenizer that I leave up to the user to fill. When I use this method I get extra values since its initialized to 10. int[] anArray = new int[10]; for (int i …

Member Avatar for stultuske
0
188
Member Avatar for Hanyouslayer

What I'm attempting to do is read a text document to pass in variables into an arraylist of shape objects that I will use to create shapes. I don't need any help with the actual drawing of the shapes, working with the arraylist, or the initial scanning setup. I thought …

Member Avatar for Hanyouslayer
0
807
Member Avatar for DamianPrinze

Sanchez Construction Loan Co. makes loans of up to $100,000 for construction projects. There are two categories of Loans-those to business and those to individual applicants. Write an application that tracks all new construction loans. The application must also calculate the total amount owed at the due date (original loan …

Member Avatar for minimee120
0
2K
Member Avatar for drsnet41

I'm trying to pass a .txt file as a paramater into my java program. The line that reads in the file is: Scanner in = new Scanner(System.in); My program is titled SetTest and the file I'm trying to read is Ted.txt. If I go to a Windows 7 command prompt …

Member Avatar for sepp2k
0
12K
Member Avatar for sankubha

i have a java file to send mail and a jar file javax.mail.jar...... how to import jar file inside java file

Member Avatar for stultuske
0
66
Member Avatar for somjit{}

I think i have understood the basic locks , synchronized statements and methods etc etc . I would like to actually program something that used all this. Something that is prone to breaking if one is not careful , also would love if there is swing involved ( i read …

Member Avatar for JamesCherrill
0
143
Member Avatar for prnjn

I am making a ticket booking system. I have a databse with a clumn "booking status" I am thinking to use a map of seats ( with pictures controllers as seats) What i want is when the value in booking status is "booked" then the pictures shown as seats should …

Member Avatar for stultuske
0
151
Member Avatar for sankubha

am compiling the java program inside another javaprogram..... how to add an additional library to that conpiling java program....

0
127
Member Avatar for sankubha
Member Avatar for sankubha
0
108
Member Avatar for ZombieKnight93

This is what the assignment is: (Airline Reservations System) A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You are to write an application to assign seats on each flight of the airline's only plane (capacity: …

Member Avatar for ZombieKnight93
0
7K
Member Avatar for jess_35

I need to create a Java Temperature converter. I have everthing working except when I try to convert F to C I get nothing except the value in F field is changed to 32. The conversion for C to F is working fine. Any ideas what it coudl be?? import …

Member Avatar for JamesCherrill
0
279
Member Avatar for woomar

Is it possible to make some Junit tests that assertTrue (condition, throw some exeption) if condition was false or if condition would throw something, say assertEquals (codition, new Excepption) ?

Member Avatar for somjit{}
0
212
Member Avatar for sasikrishnasamy

Hi, I have code like this, public void method1(){ ArrayList<String> list=new ArrayList<String>(); list.add("A"); list.add("C"); list.add("D"); for(int i=0;i<list.size();i++){ if(i==0){ new Test().addB(list); } } System.out.println(list) } public void addB(ArrayList<String> list1) { list1.add(1,"B"); System.out.println(list1); } output: List1: A,B,C,D List : A,B,C,D I Expected this Result: List1: A,B,C,D List : A,C,D Why List1 is …

Member Avatar for JamesCherrill
0
274
Member Avatar for sarthak25

how to configure oracle datasource in jboss 5.0 ?? and then how can I use this datasource in hibernate.cfg.xml file to make connection to the database ?

0
158
Member Avatar for Hanyouslayer

Okay, I feel like I busted something in my head because I can't figure out anything in Java anymore! I just confused the crap out of myself, and I can't seem to get back on the horse. What I'm trying to do is read from a text file to create …

Member Avatar for JamesCherrill
0
332
Member Avatar for Pyler

This method is supposed to reverse a stack by making a new stack and pushing popped items from this stack to the revertStack and then returning the reverted stack. When I run some tests, it returns an empty stack in stead. Any clues? public LinkedStack<E> reversed() { LinkedStack<E> revertStack = …

Member Avatar for JamesCherrill
0
219
Member Avatar for woomar

If I have a chess board 8x8 And in my copy constructor I want to deep copy it. How would I go about doing it? This is what I have: public class chessBoard { private Chess[][]board; public chessBoard (){ board = new board[8][8]; for (int i = 0; i < …

Member Avatar for JamesCherrill
0
747
Member Avatar for mani_1991

hai friends, is it possible to generate barcodes using java....???? if it is possible how can i do that......??????? please give information about the how to developing barcode generator using java please any one can give solution for this..

Member Avatar for stultuske
0
213
Member Avatar for dogface13

Hi Daniweb community, I have implemented a node class, DoublyLinkedList class and a SinglyLinkedList class. For each DoublyLinkedList node created, there is supposed to be a reference to a NEW SinglyLinkedList. Meaning each DLL Node has its own SLL. I have such a reference created which is a single node …

Member Avatar for dogface13
0
287

The End.