32,204 Topics
| |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
please I want to recover the windows's process with java how can I do thank | |
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. | |
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 … | |
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. … | |
how to generate xml document from data in database..please explain with an example? | |
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 = … | |
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 … | |
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 | |
Hi can u call an Instance method from the constructor in java. thanks for your help. | |
Hey Guys Can anyone help me with JavaBeans The error says my Bean cannot be resolved to type. Any solutions? Thanks in advance | |
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? | |
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 | |
How to pass String object as an argument? Whenever I try to pass any String as an argument error msg occur as - ')' expected | |
i want to know how to convert pdu mode sms to text usivg java. pls anyone help me. thnks. | |
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 … | |
The DefaultListSelectionModel provides the method setSelectionInterval(int start, int end) to select an interval. But how can I select multiple intervals? | |
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 … | |
| |
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 … |
The End.