35,618 Topics

Member Avatar for
Member Avatar for achiman

Hey please I am trying to create a chat system but my main server routine in my server class keeps give error saying its out of bound. I think it is the port number but dont know how to fix it. Is there anyway I can hard code the port …

Member Avatar for masijade
0
83
Member Avatar for upasanac

I have this function which computes the position record of 6 requests. ( ie x,y,dx,dy--these are the position records for a request) I want to display these position records in a textfield, which i have in my GUI, as soon as i press the "positionrecord" button. I am able to …

Member Avatar for Ezzaral
0
155
Member Avatar for hallinan

[B]Hi I am trying to create a generic class form existing code I have tried to figure it out but with no avail if anyone could help it would be much appreciated I have tried to do it and this is what I have so far[/B] Here is the Class …

0
53
Member Avatar for vij123

i have a Jsp page. in this Jsp page having some links. i want when i click to link of result some data should be display. but it does not displaying. please check the below code. Indus.jsp [CODE] <html> <head> <title>Indus Public School</title> </head> <body> <div align="center"><font size="+3"> Indus Public …

Member Avatar for vij123
0
119
Member Avatar for vij123

I have two Jsp pages named bestschool.jsp and schoolnames.jsp. I am calling schoolnames.jsp from bestschool.jsp. I want when I click the link on INDUS School. It can show all concerning link of INDUS School links like profile, result, facility etc. in the same place instead of other naming school links. …

Member Avatar for vij123
0
194
Member Avatar for bustersox

I am having issues getting my code to work properly. The objective of the program is to allow the user to enter 5 scores and then it is supposed to calculate the mean and rearrange the data set from highest to lowest (descending order). I am supposed to run it …

Member Avatar for stevelg
0
2K
Member Avatar for karthickj25

hi i am new to jsp, i need to create a jsp page that has list All, Add, Delete, Update button, the page should display all the records from the database when list All button is clicked and adds new record when add button is clicked and so on, is …

Member Avatar for musthafa.aj
0
141
Member Avatar for ksaihat

how can i use System.out.printf to depost value in dollars 2- the number that represent as percentage eg.4.0% whould be entered as 4.0 thanks

0
70
Member Avatar for liaa

Filename: CommonLetters.java Problem Statement: Write a program that takes two words as input and finds any common letters that they have. For example, the words ‘computer’ and ‘program’ have the letters ‘o’, ‘m’, ‘p’, and ‘r’ in common. The input to the program will be a string which contains two …

Member Avatar for javaAddict
-1
187
Member Avatar for maverick_ymca

Hi, Here at my organization we'd been using an app which worked perfectly fine on the current 5.5 tomcat. But now we wished to upgrade our server to version 6.0 . The problem is that the application almost refuses to start up. I had this web.xml modified to comment out …

Member Avatar for ~s.o.s~
0
99
Member Avatar for houlahan

OK so im new to XML i want to save lots of serialized objects to XML then read the objects back in from the xml with ease using the get and set methods i have in place, is they any real easy way of doing this? thanks in advanced Houlahan.

Member Avatar for ~s.o.s~
0
76
Member Avatar for pocix

question: The program should prompt the user to enter data for the width and height of the 2 rectangles and use the setWidth() and setLength() methods to store this data in the instance variables. driver [CODE] import javax.swing.*; public class Room { public static void main(String[ ] args) { double …

Member Avatar for pocix
0
76
Member Avatar for PhiberOptik

Hey guys I'm trying to export my game from eclipse to an executable jar. When I launch it in eclipse it works perfectly. When I export it nothing happens and when I launch it through console i get this: [url]http://img697.imageshack.us/img697/899/errordc.png[/url] and I have main class [CODE=java]public class main { public …

Member Avatar for Ezzaral
0
123
Member Avatar for jtodd

Hey everyone! I am a newbie to java and I have what is probably a simple question. I have add a program I am working on to randomly display random numbers from 104, 105, 106, and 108. I have gone about this by creating an array and storing the numbers …

Member Avatar for jtodd
0
127
Member Avatar for keny2020j

My code is : /* Database.java*/ [code] import java.sql.*; import java.awt.*; import javax.swing.*; public class Database{ private static Connection con = null; public static Statement statement = null; public static void makeConnection() { JOptionPane.showMessageDialog(null, "database"); String driver = "sun.jdbc.odbc.JdbcOdbcDriver"; String url = "jdbc:odbc:lib"; String username = ""; String password = …

Member Avatar for keny2020j
0
216
Member Avatar for Megalodeez

Write a program to calculate a students GPA. What I cant figure is how to calculate ( Total= credit * grade + credit * grade...etc) or (GPA = Total/grade +grade etc...) If you run this program, you will see my calculation off by a lot. Please help. [CODE] import java.util.Scanner; …

Member Avatar for JavaNewbieEK
1
359
Member Avatar for Megalodeez

Write a program that calculates and displays the mortgage payment Also list the loan balance and interest paid for each payment over a the term of loan. Use loops to display a partial list, hesitate and display more of the list. Im completely lost. any help will be much appreciated. …

0
48
Member Avatar for Alex_

I'm trying to do the following: [code=java] private void butonActionPerformed(java.awt.event.ActionEvent evt) { buton.setLocation(500, 500); } [/code] but it doesn't do anything. Please help.

Member Avatar for Alex_
0
171
Member Avatar for achiman

Hey I am trying to create a java chat server but I am get an exception: exception in thread main java.lang.arrayindexoutofboundsexception 0 I know it means the index is out of bound but can any please tell me what I am doing wrong, I want to assign the port = …

Member Avatar for jwenting
0
171
Member Avatar for hendaz

Hi, I am trying to implement a bottom up heap construction. I seem to have the recursion working but im not sure how i am supposed to combine the trees at each stage. My heap is based on the arraylist complete binary tree. For example, the image below shows what …

0
63
Member Avatar for hockey87

I need to write a program that prompts the user to enter 4 numbers (x1, x2, y1, y2) and the program should output the circles area, diameter, circumference, and area. I have to create these methods, distance, radius, circumference and area. I have the code done but everytime i enter …

Member Avatar for gangsta1903
0
93
Member Avatar for vinothkumarrvk

:S Friends. I want an table with one row of height 200px and another row with relative height of the table or expandable height in JSP page. Is it possible to create like it? I want an solution. I am badly in need of help. Thanks in Advance.

Member Avatar for masijade
0
153
Member Avatar for ilupilu

can anyone tell how to write in core java using command line arguments : a) to print prime numbers from 1 to n b) to calculate the length of input string c) to find whether the number is odd or even d) to convert dollar in rupees e) to accept …

Member Avatar for javaAddict
0
82
Member Avatar for rEvOLt

[I]<<thread split from [URL="http://www.daniweb.com/forums/post731500.html#post731500"]here[/URL]>>[/I] [QUOTE=destin;731502]You'd compare an object to [icode]null[/icode] with [icode]==[/icode]. I think you want one of the following. It's hard to determine the exact behavior you're looking for from your code. [code=Java]if (child == null) child = new Lista(c, null); // Or: if (child.getData() == null) child = …

Member Avatar for javaAddict
0
106
Member Avatar for ehsun7b

Hi I'm using [B]NetBeans + GCC[/B] in Linux and also [B]NetBeans + MinGW[/B] in Windows. I need to run an OS Command e.g.: [ICODE]java -jar myjar.jar[/ICODE] I prefer [B]not[/B] to have the terminal/cmd window. It works fine in Linux, but in windows, it ends up in opening a [B]cmd[/B] window …

Member Avatar for Nick Evan
0
215
Member Avatar for Alex_is

This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) …

Member Avatar for jothibasu
0
171
Member Avatar for ctsarsh

i need to convert this java code to java applet code here in my java code: import java.io.*; import java.util.*; public class fyp { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); static ArrayList<String> seeding = new ArrayList<String>(); static …

Member Avatar for masijade
0
182
Member Avatar for ceyesuma

If I run my program. a GUI shows. clicking the combox. calls a series of classes that produce what text needs to be in the textfields so one of the classes calls fillSetters which is in a class that extends the GUI so "this" should be an instance of the …

Member Avatar for ceyesuma
0
76
Member Avatar for NinadNagwekar

please help me out as im currently working upon an Academic level project of Web-Based Discussion Board and i need help in retrieving data from database in JSP

Member Avatar for peter_budo
0
40
Member Avatar for xxunknown321

How do i compare two linkedLists so that the onutcome is a sorted linked list from least to greates. Heres my code so far. list1.txt 1 2 3 7 9 10 13 list2.txt 4 5 6 8 11 12 14 how do i compare the two and make it into …

Member Avatar for BestJewSinceJC
0
154

The End.