32,199 Topics

Member Avatar for
Member Avatar for P0lT10n

Hello, my name is Matias (Mathew for english people) and I am 16 years old. And I am from Argentina !!! I joined this Community because I know a lot of things that I can share here of simply respond... I am a student from an idustrial school call Huergo …

Member Avatar for MikeVera
0
203
Member Avatar for ManojRay

I am trying to write one generic class for the purpose of any types of method logging. I am able to track the parameter name and their data types in my class but unable to track the parameter value which is passed at the time of function call. I need …

Member Avatar for stultuske
0
198
Member Avatar for ceyesuma

Hello if I create newUser which is new StudentBean() why is StudentBean studentBean not equal newUser? [b] output [/b] [code] run: driver tableName from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: createAdminTable created table: createPayeeTable created table: createStudentTable created table: createInstructorTable created table: createBookingTable created table: createInstrAvailableTable created table: createInstrumentTable created …

Member Avatar for stultuske
0
179
Member Avatar for JMChurch25

Hello, This is my first post on DaniWeb and will probably not be the last so I hope I'm doing this right: I'm currently working on a Sudoku Solver that allows the user to type in the name of a Sudoku text file that looks like this: 6 8 . …

Member Avatar for vanessa1106
0
970
Member Avatar for cwpent

I'm writing Conway's game of life for a school assignment. I have a text file with coordinates of the initial locations with bacterium. All I need to know is how to tell java to compare a coordinate in the matrix to a coordinate from the file. The pairs are listed …

Member Avatar for cwpent
0
155
Member Avatar for aneeqahmed

I am doing my home work in which i have to pass values from java text field to text text file. My code of program is given below. The problem is that the program is not passing values from text field to text file. Please help me. /** * @(#)GUITest.java …

0
41
Member Avatar for regg

Hello everybody, I have a trouble with my assignment . In my assignment, the application have to read the lists of text file before performing the another taks. I want my application run independently on any computer with JVM, so it must be read the text file in the jar …

Member Avatar for regg
0
1K
Member Avatar for GuruJin

Hello, some of my Friends, and I decided to make a Media player using Java just for the fun of it. here are my Questions, #1: is it possible using Java ? or should I use a different language? #2: the process of Reading||Displaying||Viewing Video files is called ? #3: …

Member Avatar for moutanna
0
337
Member Avatar for cnuchavez

Hello folks, I recently started learning Java and bought a book to look at some examples. When I copied this example program out of the book I get a null pointer exception. Most of the other programs worked perfectly this is the only one iv had a problem with so …

Member Avatar for cnuchavez
0
165
Member Avatar for ceyesuma

Hello I am recieving error [icode]java.sql.SQLException: At least one parameter to the current statement is uninitialized.[/icode] at ConnectStudentDAO.java at [icode]ResultSet rs=ps.executeQuery();[/icode] Not sure if the xml statment or the bean variables or if ps.close() is needed [b] output [/b] [code] run: driver tableName from xml: org.apache.derby.jdbc.EmbeddedDriver in bCreatedTables: created table: …

Member Avatar for ceyesuma
0
658
Member Avatar for Lordson60

i need help, for some reason i cannot remove items that i have added to my JPanels the welcome.remove will is causing a problem [CODE]// The "RunescapeCalc" class. import java.awt.*; import hsa.Console; import javax.swing.*; import java.awt.event.*; import sun.audio.*; import java.io.FileInputStream; import java.math.*; public class Game1 extends JFrame implements ActionListener { …

Member Avatar for Lordson60
0
261
Member Avatar for evak77

I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. I added the array to the program and it only works for the first loan. Can someone point me in …

Member Avatar for Agni
0
90
Member Avatar for liran

* At other projects it's working. I try to do in eclipse: export -> java -> Runnable Jar... but it tells me: could not find main method... [IMG]http://i43.tinypic.com/nbapux.jpg[/IMG] but in my main class I defined it it has: public static void main(String[] args) (the file is created, but when i …

Member Avatar for liran
0
157
Member Avatar for kesh1000

hi everyone. im currently working on a project where my scenario is that a company hired me to make programe for their company. what i need in my programe is [ICODE]I. Add/Update customers II. Add/Update products III. Add/Update salesman IV. Make transactions: Many products are sold to customers by salesman …

Member Avatar for javaAddict
0
130
Member Avatar for Hari4

Hi, I want to take a character using the scanner class and then i want to find and count it in certain file i did like this char countingChar ; countingChar= scan.nextChar(); but my compiler show error at this line scan.nextChar() then i find this blog on the sun [url]http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5066699[/url] …

Member Avatar for masijade
0
101
Member Avatar for bmbvm5

A small ferry company has just purchased a computer for its new automated ticketing system. The company director has asked you to design the new system to assign seats for each trip of the 50-seater ferry, which covers the route from Penang to Langkawi and back daily. The upper deck …

Member Avatar for bitthu
0
193
Member Avatar for BeginJava

Hello Daniweb. I'm new to Java, and I love learning it and want to continue learning it. I was curious about how a Java chat server could be made so I found an open source very basic one online. But the problem is when I run the server it gives …

Member Avatar for moutanna
0
110
Member Avatar for brianmack

I am working on a project where I am building a student object from student java class. The student.java class specifies a method of: [code=java] public void setCourses(ArrayList<Course> courses) { this.courses = courses; } [/code] So I have built the following two methods in my main.java class file: [code=java] public …

Member Avatar for Tecko
0
455
Member Avatar for pradeep_09

How should i handle click events of a JButton array i have frame containing 100 JButtons .I need to find out which one was pressed by the user[code]import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class Screen1 implements ActionListener , WindowListener { int i; JFrame scrfrm1; JLabel lblscr; JButton …

Member Avatar for n88y
0
194
Member Avatar for fardeenmc

Dear Friends, Please help me in getting out of the below error. I have made attachment of source file, kindly try to execute the program experience the error and guide me. D:\Tomcat 6.0\webapps\Beer-v1\WEB-INF\classes\com\example\web>javac -classpath " D:\Tomcat 6.0\lib\servlet-api.jar" BeerSelect1.java BeerSelect1.java:3: package com.example.model does not exist import com.example.model.*; ^ BeerSelect1.java:15: cannot find …

Member Avatar for fardeenmc
0
118
Member Avatar for OffbeatPatriot

As I understand it equal hash codes in general imply a high probability of equality between objects, but they aren't perfect. But I've been told that in Java the base hash code of an Object is simply the memory address of the object, so I've assumed that Object hash codes …

Member Avatar for jwenting
0
283
Member Avatar for cwpent

I understand that this means I'm using more memory than is available to the JVM, but I'm not sure why or what to do about it. The purpose of the program is to simulate an item in a store that is being tracked with a bar code id number (or …

Member Avatar for ~s.o.s~
0
264
Member Avatar for demifuror

Hi Guys, I need some help with a permutation problem. Say I have a string, 6 characters long - "123456" - how can I generate a list of all permutations of that string, limited to 4 characters long? So basically, each permutation generated can only be 4 characters long. As …

Member Avatar for demifuror
0
113
Member Avatar for evak77

I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. Can someone help me out please. Modify the mortgage program again. Remove the amortization table. This time enter 3 different …

0
67
Member Avatar for yeezy_10

help me plz , write a java program that reads a number and verifies if it has the same value when we read it from right to left and from left to right. my program should display "having the same value so it is readable from both sides" if the …

Member Avatar for masijade
0
203
Member Avatar for Hakoo

Hi all, I used [B]Timestamp[/B] data type in mysql and Date object in jsp. Now my question is how can I store system`s current Date n Time in Timestamp field using jsp?

Member Avatar for masijade
0
29
Member Avatar for ku95

Here I have a program and I'm getting the following error ControlPanel is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class ControlPanel extends JPanel implements ActionListener ^ I don't fully seem to understand how the best way is to overcome this? [CODE]import java.awt.*; import javax.swing.*; …

Member Avatar for moutanna
0
3K
Member Avatar for ku95

Hi I was wondering if anyone knows why I'm getting the reached end of file while parsing error. It mentions the bracket at the end of the file however when I remove it I get loads of errors. I know that I need to remove it however i dont understand …

Member Avatar for BestJewSinceJC
0
173
Member Avatar for Fou7a

This is a code to solve a maze using A* search algorithm. When I run it, it gives me the following error: Exception in thread "main" java.lang.NullPointerException Can someone help me out? Below is all the code: [CODE] import java.util.List; import java.util.ArrayList; import java.util.Queue; import java.util.PriorityQueue; import java.util.Stack; public class …

Member Avatar for BestJewSinceJC
0
258
Member Avatar for OffbeatPatriot

I'm making a game engine and an integral part of the game is that it populates worlds based on maps loaded from a XML file, a method "Actor load(Map<String, String> code)" in a class ActorLoader takes a map and returns an actor based on this map. When you make a …

Member Avatar for ~s.o.s~
0
177

The End.