32,204 Topics

Member Avatar for
Member Avatar for kiboko

I admit I am a Java infant, an unable to hold my head up on my own infant. I greatly appreciate any help or advice you may offer! Here is the problem. I have one class that describes attributes of a city. I have another class that creates an object …

Member Avatar for Easter Bunny
0
74
Member Avatar for mrjoli021

I am new to programing. i know how to return a date [code] public Date yesterday() { if(this.day == 1) { if(this.Check("Mar", this.month)) { if (this.checkLeapYear(this.year)) { this.day = 29; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = this.monthOfYear[this.flipBack(this.monthOfYear, this.month)]; } else { this.day = 28; this.weekDay = this.week[this.flipBack(this.week, this.weekDay)]; this.month = …

Member Avatar for masijade
0
218
Member Avatar for SyLk

Im attemtping to return the next value in this suequence recursively 1, 4, 11, 34, 101 this is what i've done thus far, im not sure how to pass this list to the function to compute the next value which i believe to be 304. can some explain how i …

Member Avatar for VernonDozier
0
106
Member Avatar for Muaz AL-Jarhi

Dear, All Hello, Im a student studying Computer Science and Engineering at the German University in Cairo (GUC). I take a course were I should Implement a game called "Attaxx" using java programing. I should submit a java engine for the game by next week or so... its quite similar …

Member Avatar for naniesc
0
186
Member Avatar for debargha

HII ALL can you help me with some project ideas on J2EE platform.I am doing B-TECH in CSE final year Our college is not accepting application based projects(my e-banking project has been disapproved)So I am all messed up.Please help me with few topics not application based like I am thinking …

Member Avatar for Alex Edwards
0
90
Member Avatar for Blackeagle

Hello, i have two questions concerning programming in Java. [U]1st Q:[/U] i have more than frame opened for the same program and when i want to close one of them, all the program closes as well. basically i write this code for closing the frame when clicking on a button: …

Member Avatar for Blackeagle
0
212
Member Avatar for iamus

Hi, I'm trying to install the php/java bridge on ubuntu hardy heron. I've installed it from the source downloaded from sourceForge. I've managed to get it run from the php command line as php test.php but when i run it from apache i get an error from the code below …

Member Avatar for Atli
0
83
Member Avatar for ceyesuma

SELECT b.book_num,b.book_start_date,b.book_start_time,book_end_time,b.stu_num,i.instr_lname FROM instructor AS i,booking AS b WHERE i.instr_num=i.instr_num AND i.instr_num=b.instr_num; Can someone help me get these xmls to produce this SQL(HQL)? This is how I represented the Instructor.class Instructor.hbm.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class dynamic-insert="false" dynamic-update="false" mutable="true" name="lesson.Instructor" optimistic-lock="version" polymorphism="implicit" …

0
54
Member Avatar for AllenB

Hello, I am relatively new to Java. I would like to know how to add additional threads to this applet. Particularly adding additional balls that bounce at the same time. I think the problem lies in my mousePressed event. The program will start a new ball, but make the existing …

Member Avatar for AllenB
0
2K
Member Avatar for redflame777

I have worked on this class all last night and I am having trouble finding the problem. When I compile this file I am recieving errors and I do not understand what is the problem. Here is the program code: [code] public class Employee { private String employeeName; //name of …

Member Avatar for redflame777
0
62
Member Avatar for senthil12345

hi all, i had developed an applet. This applet having one frame class. This applet is called inside a jsp page.The Process of this page is copying files from one folder to another folder in server. Actually this process is working fine in first time. but the problem is i …

0
61
Member Avatar for naf87

please I want to recover the windows's process with java how can I do thank

Member Avatar for Easter Bunny
0
88
Member Avatar for arpita_jain

Hi, I am trying to run my SendMail.java program which is correct logicaly but its giving one error again and again. Error is: DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_04\lib\javamail.providers (The system cannot find the file specified) I have created javamail.providers file in jdk_home/lib and in eclipse too.

Member Avatar for darkmikey
-1
42
Member Avatar for Lordstr

I am using Eclipse to right there It is coming up with an error within the switch statement saying that the Clock.* has not been initialized. it says Description "The local variable Clock may not have been initialized" but doesn't that happen when i do "Stopwatch Clock;" I am still …

Member Avatar for Ezzaral
0
237
Member Avatar for technicalganesh

I am having two servers viz., Windows and Linux. A service is running in Linux to produce a text file of around 8 MB per minute. If I would like to replicate (or copy) this text file to windows server which supports .Net as soon as the file is produced. …

Member Avatar for jwenting
0
116
Member Avatar for Shagufta29

how to generate xml document from data in database..please explain with an example?

0
44
Member Avatar for TofiLuk

the frame is okay but the text2, textfield has occupy the whole frame. what's wrong with my code? image: [URL="http://img68.imageshack.us/my.php?image=73815503ku1.png"]http://img68.imageshack.us/my.php?image=73815503ku1.png[/URL] here's the code: [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JFrameTest extends JFrame implements ActionListener { JButton button; JLabel label1, label2, label3; JTextField text1, text2; Container con = …

Member Avatar for masijade
0
113
Member Avatar for PrAsTiWaRi

Hello All, I am trying to compile the C++ program. But I am getting weired compilation error. ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1>------ Build started: Project: HelloPras, Configuration: Debug Win32 ------ 1>Compiling... 1>HelloPras.cpp 1>c:\documents and settings\prash\my documents\visual studio 2008\projects\hellopras\hellopras\hellopras.cpp(15) : error C2819: type 'JavaVM_' does not have an overloaded member 'operator ->' 1> c:\program …

Member Avatar for jencas
0
494
Member Avatar for muusa

hi , i am a new bee to linux and require help in compiling and running java programs in fedora8. have i to install the jdk and the compile or run the program or . i require help

Member Avatar for sureronald
0
115
Member Avatar for codered152

Hi can u call an Instance method from the constructor in java. thanks for your help.

Member Avatar for codered152
0
92
Member Avatar for andr3a

Hey Guys Can anyone help me with JavaBeans The error says my Bean cannot be resolved to type. Any solutions? Thanks in advance

Member Avatar for jwenting
0
57
Member Avatar for dmanw100

Is there any way to clear the screen in a console app? I noticed that System does not even appear to have a system call similar to the system("COMMAND"); of C++. Any ideas?

Member Avatar for jwenting
0
96
Member Avatar for creativehacker

150 html files are in a folder on a windows machine.Among them,content of some files (not the file names)contain the sentence "Hello World??". How to count no of such files using java program

Member Avatar for jwenting
0
102
Member Avatar for maunikdesai

How to pass String object as an argument? Whenever I try to pass any String as an argument error msg occur as - ')' expected

Member Avatar for Ezzaral
0
198
Member Avatar for dmddinesh

i want to know how to convert pdu mode sms to text usivg java. pls anyone help me. thnks.

Member Avatar for stephen84s
0
612
Member Avatar for kookies

Hi, essential kindly helped in getting a javascript imageflow menu to display pictures inside an inline frame. Problem i have is that everything is displaying wrong on the page. Here's what i have currently code wise, i most likely have things in the wrong places i.e divs ? [code] <!DOCTYPE …

Member Avatar for kookies
0
110
Member Avatar for dav555

The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals?

Member Avatar for stephen84s
0
180
Member Avatar for letlet_pogs

public class Calculator { public static void main(String[] args) { String s; // string that holds the expression s = JOptionPane.showInputDialog("Enter a simple infix expression: "); } } public static String infixToPrefix(String result){ JOptionPane.showMessageDialog(null,"Invalid character in expression: " + c); } hello guyz,,actually this is not my whole code,,i just …

Member Avatar for masijade
0
107
Member Avatar for pajeko
Member Avatar for J-KeRcA

Hi, I'm new in Java, and I'm supposed to make a program that ask the user for her/his date of birth..... I know that the months have a specific values and that the first month of the year is January which value is 0 ... so when the user enter …

Member Avatar for masijade
0
78

The End.