35,618 Topics
![]() | |
We are suppose to create a registration form but it is not running! can you please help me and teach me what is wrong and what i am suppose to put! thank you! here is my code.... [CODE]import java.io.*; public class regform { public static void main(String args[])throws IOException { … | |
[CODE] private static int[][][] pieces = { { { 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 },{ 1, 1, 1, 1, 1, 1, 1, 1 } },{ { } },{ { … | |
Hi, I followed the following [URL="http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB"]http://www.coderanch.com/t/424312/JBoss/Configuring-Eclipse-JBoss-MySQL-EJB[/URL] to configure JBOSS and MSSQL Server in Eclipse. But I'm getting an error and I tried many ways but I'm still there. (In this guide "5. Copy the driver libraries to jboss-5.0.0.Beta4\server\default\lib" means copying jdbc.jar ??? right?) When I run an EJB project I'm … | |
[code=java] /*This program takes two integers as command-line arguments (they are initially strings), and returns the sum, difference (based on the order they're entered in the command line), product and quotient (also based on the order they're entered in the command line) of those two integers. For example, in the … | |
Print stars in console like this using java ? ......* .....*.* ... *...* .. *.....* . *.......* ...*.....* ... *...* .....*.* ......* dot = spaces [B]look to my code just i need to print border not filled shape[/B] [CODE]import java.util.Scanner; public class Stars { public static void main( String args[] … | |
Hi There; I know that it is a very easy-to-solve question, but the situation drive me crazy. Here are the simplest jsp code and the expression side do not work in my machine: [CODE] <HTML> <BODY> Hello! The time is now <%= new java.util.Date() %> </BODY> </HTML> [/CODE] The time … | |
Well as the noob that I am in this category this is literally my first JSP tutorial program I am almost done but got these two errors.. [CODE]org.apache.jasper.JasperException: file:C:/Documents and Settings/sa456p/My Documents/NetBeansProjects/IFPWAFCAD/build/web/index.jsp(6,60) PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this … | |
anyone know how to fix the border so that box stay on its position..any reply tanx..:D [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Exer extends JApplet implements ActionListener{ JButton button1, button2, button3; JTextField tf1, tf2, tf3 ; JLabel counter1, counter2, sum; int total = 0, ans1,ans2; public void … | |
can you help me correct my java code......I do not know what is wrong with it... [CODE]import java.io.*; public class info { public static void main (String args[])throws IOException { BufferedReader br= new BufferedReader (new InputStreamReader(System.in)); String name,course; char section; int id,ctr=0,answer=0; do for(ctr=0;ctr>=3;ctr++) { System.out.print("\n Enter Name: "); name=br.readLine(); … | |
Hi, Can any1 tell me wht is the problem if i can't find an import in a main class [CODE] import org.springframework.context.ApplicationContext; [/CODE] It says that the import cant be resolved. thanks | |
Is there an easy way to go through an entire directory recursively to find all CSV files? In python, there's os.walk and I see that Java has FileVisitor, but I have no idea how to use it correctly ([url]http://download.oracle.com/javase/tutorial/essential/io/walk.html[/url]). What I want to do is something like this (pseudocode): [CODE] … | |
I dont know whts wrong with the code... its in java..the error msg is shown while compilation i.e. class, interface , or enum exception.. plzz can anyone help me with this.. [CODE]import java.io.*; import java.security.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public final class DiffieHellman extends java.applet.Applet implements ActionListener { … | |
![]() | hey all, I know this might seem like a basic question but we haven't really been taught it at university and I was getting curious. Once you've created your program and have all your relevant java classes/package and it has been compiled where do you find the .exe and how … ![]() |
[code=java] /*This is a small GUI application that I made for personal use. It allows you to enter the colors of the bands on a 4-band fixed resistor to calculate the resistance (and tolerance) of that particular resistor. Eventually, I will create a version that deals with 5-band and 6-band … | |
Hi, Can some1 plz explain wht is the advantage of Inversion Of Control concept of Spring. I know that there is no need to instantiate in the class and the container will do it like [CODE] Hello h = new Hello(); [/CODE] The above need not be given and we … | |
Can any one give a useful link to learn oracle report server and also how to connect it with java application.... Thank you. Require second question answer.... | |
[code]"insert into invoice(sno,entrydate,invoicedate,companyname,party,station,purchase,avail,sale) " + values("+Integer.getInteger(head.getSerial().getText())+",to_date('"+head.getEntryDate().getText()+ "','dd/mm/yyyy')"+",to_date('"+head.getInvoicedate().getText()+ "','dd/mm/yyyy')"+",'"+head.getCompany().getSelectedItem()+"'"+"'"+head.getParty().getSelectedItem()+"','"+head.getStation().getSelectedItem()+"',"+Integer.getInteger(head.getPurchase().getText())+",1,"+Integer.getInteger(head.getSale().getText())+")"); [/code] SNO NOT NULL NUMBER(38) ENTRYDATE DATE INVOICEDATE DATE COMPANYNAME VARCHAR2(50) PARTY VARCHAR2(50) STATION VARCHAR2(50) PURCHASE NUMBER(10,2) AVAIL NUMBER(1) SALE NUMBER(10,2) Whats wrong in this query.... I am getting sqlException .... | |
hello, Am new to Java and i just installed jdk, but i failed to set the paths correctly since am missing some paths am supposed to edit as the procedure says, any one having an idea pliz help me, thanx | |
A [B][I][U]concept[/U][/I][/B]:icon_rolleyes: has grown, may be it as wrong or right, that in Java [COLOR="Green"]if we do not take the help of [I]thread class[/I] or [I]runnable interface[/I] at all then also several threads get executed there[/COLOR]; If so how it happens with other languages where there is no concept of … | |
I am trying to read a custom file extension When reading a string from the file it output the correct string, however when I attempt to read an int it does not output the correct int. Here is my code: [CODE] import java.awt.event.*; import java.awt.*; import java.io.BufferedReader; import java.io.FileInputStream; import … | |
Hello everyone, I have some code to sort a random array of integers, although im getting an error whenever I try to run the method. It prints the input and then I get an error. The code is below and the error is below that. If anyone could help me … | |
Hi everybody! I am implementing my undergraduate thesis with subject "object extraction in a video shot". I haven't studying signal processing topic when i majored in computer science, so this subject is very strange to me. I knew this problem associates with image segmentation issue,thats all, maybe having else one … | |
Original question:[url]http://forums.sun.com/thread.jspa?threadID=5323307[/url] [quote]So I would like to include a bean into the same project (as a separated library of course) that uses it, so the project would be self containing, and the bean's code would stay in syncron with the program's one, even if I move it to another computer. … | |
When we define a new variable for frame it hold "null" value, but what it contain when we close that frame? | |
This is code generated for my Algorithm Implementation's class. I was to create my own RSA public and private keys using modPow and modInverse and use that to implement a digital signature. That works great, not the problem here. For extra credit I am implementing a digital envelope that will … | |
I'm new to java and having trouble. I need to take a class I wrote and write a test applet for it to see if it works. The applet is supposed to have a length label, an input for it, an width label, an input for it, a button to … | |
![]() | Hi all, I searched this topic and found a couple of posts but I couldn't find what I am looking for. Here's the problem - I am trying to send an image to a client (browser in this case) over a socket. After the image is received I am trying … ![]() |
I am reading murach's book about jsp and servlets. He uses netbeans(I am using intellij idea) and I am at a point when he uses the META-INF folder that netbeans creates to save a context.xml file there that contains a Resource tag with information about a connection pool. The problem … | |
I have this key listener in my application, and it wont work. This is my first key listener in an application, however I have done a mouse listener in one before. Anyway here is my code: [CODE] import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.*; public class DropGame extends JPanel … |
The End.