32,204 Topics
| |
I have to basically write a fuction that does the inmemoized recursion and count the number of times is called..which i did.. the second part is that i dont understand which is to create a global array of 100 and calculate the function using memoization... can some one help..this is … | |
Hey all. I am having some problems in my project work. I am trying to this 'transaction' class in which the user enters his personal details.Now all I want to do is that when I create a new account for the user, I must also know the date when the … | |
Hi, I am new to PHP. I have a login and logout pages are in php. i have to pass the user id or the session to my jsp page. The id should not pass in the url for security purpose and also the browser back button should not work … | |
ERROR: All the code compiles without any errors or warnings. On Calling the native method FindOs from Java code, i get the following error: # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1026f8e0, pid=3484, tid=2192 # # Java VM: Java HotSpot(TM) … | |
Hi, Im writin the followin code to connect with oracle `database.im` also using toad .I keep geetin errors even if i declare `private String AQC1_UID = "";` and so on.. import java.sql.*; public class Login { public static void main(String[] args) { String AQC1_UID = ""; String AQC1_USER_PWD = ""; … | |
How to move one Text Field to another Text Field by pressing Enter Key? in Java | |
Hey guys, I've got an input stream from the keyboard and wanting to know how much time passes between when the user enters something to when the user next enters something. That makes sence? Ive got a class called Timer [code] public class Counter implements Runnable { boolean startTimer = … | |
Hi all, I would like to execute an OS command like "cls" from my Java program, and am getting the following error: [code] D:\ext>java FileExtractionConsole Exception in thread "main" java.lang.NullPointerException at FileExtractionConsole.startExtraction(FileExtractionConsole.java:46) at FileExtractionConsole.main(FileExtractionConsole.java:33) D:\ext> [/code] Here's the snipt of my code: [code] public class FileExtractionConsole { public static void … | |
import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; … | |
Hello All, I have absolutely no experience with linked lists. I have an array of Animals that I am trying to reference from a linked list located in another class. Can anyone point me in the right direction for starting this program? Any assistance would be appreciated. Thanks | |
haiii friends... pls help me to solve this... I have a listbox set to multiple. I can't get the values from this listbox. <html:select property="relationalOperator" multiple="true" size="9" styleClass="LABEL"> html:options collection="relationalOperatorCombo" labelProperty="name" property="id"/> </html:select> And, i want to get the value of selected one....During a single click it will go to … | |
import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; … | |
hey guys.. can you help me explain this code? public Boolean insertAfter (double key, double dd) { Link current = first1 while (current.dData != key) { current = current.next; if (current == null) Return false; } Link newLink = new Link(dd); if (current == last) { newLink.next = null; last … | |
This applet I'm supposed to write needs to have a class that checks the range from the low number entered to the highest and gets and prints all the prime numbers found, as well as the whole number square roots, as well as the sum of the whole square roots … | |
Hello every1... I am developing a project in JAVA.. My project is APPLICATION MONITORING WIZARD..!!! Can I get any help..?? Even if I get an idea as to how I start off, will be QUITE helpful.. The applications that I am planning to monitor include : 1.JVM 2.Tomcat server 3.Website … | |
i need a simple mini project using oracle 9i and java connectivity pls suggest me some topics and ideas ...give some other ideas than usual hotel ,hospital ,student managements ...pls i am in desperate need of it!! | |
import java.awt.*; import java.lang.Math; import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; import java.awt.Graphics; import java.applet.Applet; /* <APPLET CODE=draw.class WIDTH=600 HEIGHT=200 > </APPLET> */ public class draw extends JApplet implements ActionListener, MouseListener, MouseMotionListener { Button bDraw,bOval, bRect, bRounded,bHeading; Point dot[] = new Point[1000]; JComboBox cbLine,cbFill; Point start, end; int dots = 0; … | |
i devlop a java application which is intranet application. my appication is is clent-server application. but i have no idea how how can i deploy a jar file on client machine through remote machine. | |
Hi. I have a JAR file and want it to be executed on another machine in the network. I want to write an application that takes an IP address of a machine in the network and executes the JAR file on that machine. How can i do this?? | |
I'm having the hardest time trying to get java to compile in the command prompt, I am using jedit. I have both jre1.6.0 and jdk 1.6.0_10 downloaded | |
Hi i have read generic collection and its very good and usefull I understand the concept also but i need some real time example where collection is suitable for use please give me some example where we can use collection | |
Dear My Friends, I made an exclusive choice group like this: choicegroup.append("ADD",null) choicegroup.append("SUB",null) (I abstract the codes) The problem is that I want to say when I click e.g. OK button([B]commands[/B]) it do the adding action if I choose ADD or Subtract if I choose SUB. What should I do … | |
Hello, when it asks to place the elements of an unsorted array to a binary tree does this means a heapsort implementation ????? Another thing how can i take two numbers and print all the values between them ?? i mean in the heapsort ? Thanks in advance | |
I been trying to import the list in the text file to the word doc, the thing is, is that I can only get the last line on the text imported while I'm missing the rest of the top. Can somebody help please? [code] import java.util.Scanner; import java.io.*; import java.util.*; … | |
[code=java]public class Formal2{ String name; double longitude; double latitude; double distanceFrom; public double getLongitude(){ return longitude; } public void setLongitude(double longitude){ this.longitude = longitude; } public double getLatitude(){ return latitude; } public void setLatitude(double latitude){ this.latitude = latitude; } public String getName(){ return name; } public void setName(String name) { … | |
Hi guys, I have a hexagon class that given the side and the angle of the hexagon, it draws it on the screen (using Polygon class). I need to fill that hexagon with an image. It works if i have a .gif file with a hexagon and place it on … | |
Hello, I am a student. In my Java class we are learning about classes and objects this week. To me this has been very difficult. I have written the following bit of code for the program but I cannot get it to run. The piece of the program is designed … | |
the program works and all but i dont want my qts,dms,nks,pns to be in a decimal form i keep changing it but then it doesnt wotk can anybody help me pleasee i really appreciate it am not sure how to improve it..thank you so much.... import java.util.Scanner; public class Program1 … | |
Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure … | |
Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public … |
The End.