35,618 Topics

Member Avatar for
Member Avatar for Ms

Hi, i need to program this algorthim using 2 stack in java, for example to evaluate such a given valid infix expression : (5*3)+(4/(6-2)). i need help, i don't know much about stacks.. Create two empty stacks, one for operands, and one for operators. Read infix expression as a string …

Member Avatar for Schol-R-LEA
0
273
Member Avatar for laolumichael

SELECT * FROM myTable WHERE columnId < 45; while (rs.next(){ result of row1 goes to row1.txt; result of row2 goes to row2.txt; result of row3 goes to row3.txt; result of row4 goes to row4.txt; }

Member Avatar for laolumichael
0
222
Member Avatar for Skotie44

Hello All I am writing this program which: - generates two random numbers -ask user to multiply them -checked users answer to see if its correct. - if not correct, asked the user to guess again I have everything working except the loop that is needed to have the user …

Member Avatar for JamesCherrill
0
319
Member Avatar for patel.jeel92

This is the code that I have so far but does not work. When called, the metod returns a pointer whose first and last points to null. The "given" linked list a linked list that we have to make using the add method from the inherited Linked List class. public …

Member Avatar for JamesCherrill
0
158
Member Avatar for blindislands

So I am using processing- similar to Java. I have made a button where I can add more ellipses (max 4) or press a different button to remove ellipses. I also made 4 different sets of keys for each of those ellipses to move. However, they can only move individually …

Member Avatar for JamesCherrill
0
174
Member Avatar for Violet_82

Hi all, I wonder if you can help me to understand this. I came across the following code: @Override public String toString() { return String.format( "hourly employee: %s\n%s: $%,.2f; %s: %,.2f", super.toString(), "hourly wage", getWage(), "hours worked", getHours() ); } // end method toString I have some problems with the …

Member Avatar for Violet_82
0
3K
Member Avatar for reincom

# Im trying to input 11 digit numbers but i got an error when parsing from string to int # JLabel lblMobile = new JLabel("Mobile No. :"); add(lblMobile); JTextField txtMobile = new JTextField(""); add(txtMobile); int CUSMobnum = Integer.parseInt(txtMobile.getText());

Member Avatar for JamesCherrill
0
186
Member Avatar for prnjn

Hi, I dont know javascript and i dont have time to learn it coz i have to submitt the dynamic web project which i am making using jsp,servlet, mysql database. I only need help in this part.Please help. I have a checkbox , i want to use three images in …

Member Avatar for paulkd
0
212
Member Avatar for stackOverflow

Hi All, I'm trying to use jdbc connection with sqlServer 2000. I'm using j2sdk1.4.2. And i have service pack2. I've installed the .jar files mssqlserver.jar, msutil.jar, msbase.jar. I have these jar files in E:\j2sdk1.4.2_04\lib. I'm trying to connect with the following program. [CODE] import java.*; import java.io.*; public class Connect{ …

Member Avatar for stultuske
0
9K
Member Avatar for COKEDUDE

I would like to create an incremented variable by how many passes I go through my for loop. This is what I was thinking. I would like my variable to total with the pass number at the end. So the first pass would be total0, followed by total1, total2, total3, …

Member Avatar for stultuske
0
140
Member Avatar for sasikrishnasamy

Hi, I have a jsp called scan.jsp. It contains struts tags like <html:hidden />, <html :text> etc. Now I would like to parse all the tags. Is it possible to split all the tag separately ? Please give some idea to do.

Member Avatar for LastMitch
0
163
Member Avatar for mikewyatt

Hey.... I am just days away from completing a year-long project and want to convert the netbeans project to a stand-alone java program that can be installed on another system without netbeans. YEAH! Sorry - did my happy dance! the Program has a .main java file and about 15 other …

Member Avatar for mikewyatt
0
885
Member Avatar for mikewyatt

I am trying to change my database(s) from network to embedded. I believe that the driver is working and has found the database requested with the following code: try { // connect method - embedded driver String dbURL1 = "jdbc:derby:Databases/Armor"; Connection conn1 = DriverManager.getConnection(dbURL1); if (conn1 != null) { System.out.println("Connected …

Member Avatar for mikewyatt
0
4K
Member Avatar for 203428

hi all; How compute runtime of a spicifique programm? if i run same programm several time, in same enviroment, is the execution time will be frozen? i need some ideas,suggestions, explanations. Thanks.

Member Avatar for Gerbiler
0
69
Member Avatar for RWD_

Hi there, I'm currently a student in an intro to Java course at the college level. I've been doing well all semester, but I've ran into trouble with our latest lab. It's a bonus lab, so naturally the content wasn't covered in class. After playing around with what I found …

Member Avatar for JamesCherrill
0
715
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
239
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
740
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
277
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
80
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
226
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
272
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
132
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
168
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
190
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
814
Member Avatar for patk570

Hello, I have 2 functions that I wrote to show a hidden div, I would love to convert this to jquery but unsure how. Also, I want a function that will allow me to change the onclick function to open and close and show an arrow > and arrow down... …

Member Avatar for patk570
0
221
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

The End.