35,618 Topics

Member Avatar for
Member Avatar for iamthwee

Hello there, I need 2 learn binary search tree 4 my assinement in java but canot find anything useful. If anyone no of a useful link please tell me. Why is there no source code for deleting a node...that's all i ask how to delete a freaking node arg. :eek:

Member Avatar for kdc
0
183
Member Avatar for isuruj

I need to pass a vector<String> from a servlet to a JSP file. The vector contains data retrieved by a database. Sending from the url is not suitable(because there is lot of data). So what is the proper way to do that?

Member Avatar for peter_budo
0
62
Member Avatar for gibson.nathan

im working with a two class program. i have one for calculations and the other for the main method like so: [CODE] /** * Write a description of class CO2FromWaste here. * * @author (your name) * @version (a version number or a date) */ public class CO2FromWaste { private …

Member Avatar for AndreiDMS
0
331
Member Avatar for Sandar Khin

Hi all, Pls explain me about Timer and Thread.May I know the usage of Timer and Thread with examples if possible.I can't control these Class very well.Thank in advance.Pls help me.

Member Avatar for Sandar Khin
0
95
Member Avatar for P00dle

Hi guys 'n' gals Just need some advice - I am using a sorted map to store info that I read line by line from a text file. example of info: id product price 1 option_1 23 2 option_1 23 3 option_1 23 2 option_2 24 3 option_2 24 3 …

Member Avatar for P00dle
0
88
Member Avatar for shuchi.vishnoi

I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database. First problem …

0
67
Member Avatar for P00dle

Hi all, and thanks for your help, in advance. I 'm stiing here with 2 choices, and I need help deciding which one to take. I want to take certain factors into account(i.e. efficiency, speed) I have values that I want to place into a SortedMap. I can do this …

0
142
Member Avatar for Pranesh_Ashrit

How to trigger onChange event if the same option value is selected from the dropdown list. Presently, only the same value is chosen by selecting different option value and then the same value. Is there any overloading possible for onChange function Thanks in Advance

Member Avatar for peter_budo
0
60
Member Avatar for Pranesh_Ashrit

I have three dropdown list. Each has "Select" as the first option. The user shall choose atleast one option from atleast one dropdown list. if not an alert has to shown. How to accomplish this?

Member Avatar for peter_budo
0
71
Member Avatar for adcodingmaster

i m making chess in java swing and does not getting how to implement[B][I][U][COLOR="Red"] check & checkmate condition.[/COLOR][/U][/I][/B] any sugessions plz thnx in advance

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for gotm

So we have to implement Bresenhams line drawing algorithm as well as Cohen-Sutherland line clipping algorithm. For some reason my whole program (9 classes, but only will include Line.java here) runs fine, but the output .xpm file contains a picture that is not what it's supposed to look like from …

0
92
Member Avatar for snehula

Hi :-) Yeah I'm new to this whole thing, that's why I'm probably going to ask a lot of stupid questions, I apologize in advance.. The story is: I'm writing a program to enter a string and a search character and output the number of times this character occured in …

Member Avatar for quuba
0
134
Member Avatar for hedwards09

Hello, I am an online student in an intro to Java programming course and am a little stuck on my current program. The program is supposed to prompt for the name of files until the user enters "stop" to quit and includes the following methods in addition to the main …

Member Avatar for brownjohn
0
121
Member Avatar for ulxlx

I've made pong and was wondering how I could embed it (it was made in java). I'm new to java so if you could explain it, that would be helpful, but if you can't that's ok. Thanks in advance :icon_mrgreen:.

Member Avatar for ulxlx
0
177
Member Avatar for romilc

the following is the code: [CODE] <%@ page import="java.util.*" import="java.sql.*" import="java.io.*" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <% Integer hit = 0; Connection con = null; Statement stmt=null; ResultSet rs = null; %> <% try { out.println(); Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost/lab2","root","root"); stmt=con.createStatement(); rs=stmt.executeQuery("SELECT hitCount from table1"); hit = rs.getInt("hitCount"); hit = hit …

0
79
Member Avatar for xfriendsonfirex

I'm rather new to Java, and I can't quite figure out what to do with this program. Any help or suggestions would be greatly appreciated. Thanks in advance. File Account.java (see previous exercise) contains a definition for a simple bank account class with methods to withdraw, deposit, get the balance …

Member Avatar for xfriendsonfirex
1
830
Member Avatar for luxxnatura

Hi all, I'm supposed to write a small program that asks the user for a number of a month( 1= Jan, 2=Feb, etc) and then outputs the month name and the month number. If the number entered is invalid (for example, > 12 or equal 0), then the user receives …

Member Avatar for luxxnatura
0
91
Member Avatar for tootaa

please any help with this homework IMPORTANT: Use Techniques Learned in Chapeters 1 – 5 only Problem # 1 (Points): Write a JPanel class named OlympicsLogo which displays the Olympics logo as shown. The OlympicsLogo has one instant variable – diameter (type int). The diameter value must be an even …

Member Avatar for masijade
0
148
Member Avatar for Harris68

Hi, I need help coding the following subject. this is the Subject **************************************************** The program allows customers to list the videos available and to borrow them (ignore returning videos). It records whether a video is on the shelf or on loan, and if it is on loan, the date it …

Member Avatar for Harris68
0
214
Member Avatar for algo_man

Hello programmers, I need someone to give me just hint of how to design an algorithm to the following problem: Suppose you have three types of fax machine: 1. Super fax with the features: colored, high quality and double sided. 2. Colored fax with the features: colored and high quality …

Member Avatar for gusano79
0
72
Member Avatar for kulrik

Having trouble with this one: The formula y = nekt can be used for estimating growth where n is the initial amount k is a constant t is the time y is the final amount This formula will be used for estimating the bacteria growth in a lab experiment. The …

Member Avatar for kulrik
0
2K
Member Avatar for P00dle

Hi guys. I need help with this. I dont know where or how to start, and I dont have peers to help me. I have .txt files that I need to read and sort, then write. The text files are always in this format: 1 row containing column headers, then …

Member Avatar for P00dle
0
89
Member Avatar for bhoop

I want to create exe file from my jar file in java programming. Anyone can help me!

Member Avatar for P00dle
0
95
Member Avatar for tarek.mostafa

I have a simple question, I developed a java application, which runs on Oracle application server and Oracle database. This application depends on multiple JSPs on which multiple users can access a single JSP in the same time, some problems occurs due to the excessive usage of this application and …

0
84
Member Avatar for Web_Sailor

Hi. I am trying to browse a file and use the path variable in my File code. Both the things are in same class. The problem is that I am getting NullPointerException. Please check if I am doing it correctly Here the code snippet I am declaring [CODE]public class MyClass …

0
58
Member Avatar for jrosh

how to print a resultset in a jtable.. I have retreived the data set and I want it to desplay in a table as it is in the database. How can i achieve it? thnakx.

Member Avatar for masijade
0
77
Member Avatar for vjlogin

Hi Everyone I've Installed Myeclipse and Tomcat 6.x , Everythings fine , the Server starts in 60 ms time which is not usual , I mean it'll take loger time. Eclipse shows that server is started , but when I run the project , There's nothing happens , not a …

Member Avatar for vjlogin
0
264
Member Avatar for AnGuRuSO

so I'm using code from [url]http://schmidt.devlib.org/java/file-download.html[/url] in the hopes of inputting a URL and getting the file that URL points to. It works, sometimes. 90% of the time it doesn't work. Also, it seems a lot of the pages I want to download do not end in html, although I'm …

Member Avatar for nalini.harsha
0
848
Member Avatar for COKEDUDE

Could anyone tell me what is wrong this code please. I'm trying to do this. Add a static method Account consolidate(Account acct1, Account acct2) to your Account class that creates a new account whose balance is the sum of the balances in acct1 and acct2 and closes acct1 and acct2. …

Member Avatar for skoiloth
0
208
Member Avatar for COKEDUDE

I'm trying to do some consolidation but I'm not sure on the specific rules of consolidation so I'm having A LOT of difficulty on it. Here's what I'm trying to do. Write a program that prompts for and reads in three names and creates an account with an initial balance …

Member Avatar for COKEDUDE
0
115

The End.