35,618 Topics
![]() | |
I'm making a rock paper scissors game, and in this game there is a nested for loop so that the players challenge each other, the outer loop is supposed to loop through all the players starting with player 1, while the inner loop starts at the last player and moves … | |
I got the basics of Sevlets and JSP , now I want to get a good knowledge of the language and improve my coding skills so I want to start on a project. please suggest me any resource from where i can get sample projects to learn from them on … | |
Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public … | |
I want to change image at click event in jsp. suppose I have img1 and img2, whenever I click on img1 thn display img2 and again click on img2 then display img1. so tell me how to do that. code is [code]<%-- Document : imgChange Created on : 26 Aug, … | |
Hi, I wrote a simple program that should display the text (with specific fonts), one color background and drawing. I tried to run the program but it didn't work. Any suggestions? What is the method of Graphics that allow you to draw within the program? eg java.awt.Graphics but I don't … | |
Please help me. My project to display like window explore from any client's ip address. If i used command line, i can set ip & post listen for server by code: start java TestWEImplServer -ORBInitialPort 1050 -ORBInitialHost localhost & java TestWEImplClient -ORBInitialPort 1050 -ORBInitialHost localhost but went i use eclipse … | |
hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, … | |
I HAVE TO WRITE A [B][U][COLOR=Red]STOP AND WAIT [/COLOR] [/U] [/B] ARQ FOR MY NETWORKING CLASS I WAS WONDERING IF SOMEONE COULD GIVE ME SOME HELP I HAVE SOME CODE ALREADY IF ANY ONE WOULD LIKE TO SEE IT. ANY HELP WOULD BE REALLY NICE. I REALLY SUCK AND PROGRAMMING … | |
I got stuck at this error: [B]cannot find symbol symbol: variable BankAddress location: class Bank bankAddress = BankAddress;[/B] [COLOR="Red"]<------pointing at BankAddress;[/COLOR] I'm trying to instantiate an object of Address, calling the constructor of the Address class to create an object of Address. I'll post both classes, Bank and Address [B]Address … ![]() | |
Dear All I am tring to do 1 simple job but some where I am missing something I designed 1 GUI in Netbeans 3 jTextFields, 2 jButtons (design attached) Step 1-> Input any number in 1st text field 2 Step 2-> Input any number in 2nd text field 2 Step … | |
Hi I'm trying modify an application to read in text files and collect pieces of data from them to use as input for an application. The data I need to collect from the individual files include doubles, int, and strings of varying lengths depending upon individual text files. There is … | |
This isn't a problem, just a curious question. I'm using the password text field in my gui and basically, this: [CODE] String pin = new String(passwordField.getPassword()); Person p = new Person(); p.setPassword(Integer.parseInt(pin)); [/CODE] leads to a number format error, despite that I didn't enter a text. But this: [CODE] String … | |
I need help with this Java program for school. I have to add loops so that each loan will loop and show the payment made, the int payment made, and the loan balance for each month of the entire loan. There are three different loans, 7 year, 15 year, and … ![]() | |
Hi, let's say I have a program in my external hard drive and there's a code in my app that references a picture or a file in that hard drive, how do I make it so that when I take my external hard drive to another computer, even though the … | |
I have a project on sports Club Management. In that, I am providing add, delete, update and search facility. Add command is working simply by : `String qry="Insert into sport values('"+s1+"')"`; `smt.executeUpdate(qry);` This is just an example where I took only s1. But in delete, I wrote: String qry="Delete from … | |
hey im trying to make a program that if you use a scanner class you can type A and then the switch statment will change that to something else. altho i just realised that i cant do this as the way i would read a letter into a scanner would … | |
hey there guys, just starting to learn java and i'm having a little trouble putting code to paper. don't really want to ask the teacher because hes a perv but lets not get into that. okay, i am supposed to make a GUI for electronic voting ballot paper thingy and … | |
We all well familiar that Micosoft and Sun are best rivals Each one progressing in their own events through their products In such cases How Sun micro system given the rights to share the own product with Microsoft product Dot net for developing J#,etc in .Net professional products? | |
Hi all, Does anybody know what this "WSaction" is? What it does and most importantly how it works? I've tried googling this but hardly found ANYTHING.. I'm busy working with Servlets and as far as I can tell it checks what button was pressed in the HTML form.. But I'm … | |
I am not familiar with Java, but I have a question about a Java code which is supposed to find the first non-repeat element in an array. [CODE] Hashtable<Integer, Boolean> positions = new Hashtable<Integer,Boolean>(); int[] elements = {2, 2, 4, 5, 1, 6, 0, 9, 1, 4, 5, 10}; for(int … | |
// code to read the fasta file import java.io.*; import java.util.*; import org.biojava.bio.*; import org.biojava.bio.seq.db.*; import org.biojava.bio.seq.io.*; import org.biojava.bio.symbol.*; import org.biojavax.bio.seq.RichSequenceIterator; import org.biojavax.bio.seq.io.FastaHeader; import static org.biojavax.bio.seq.RichSequence.IOTools; public class ReadFasta { /** * The program takes two args: the first is the file name of the Fasta file. * The second … | |
helo i am a begineer in java field..and i have to know about image processing so plz help me to get start with java in image processing. | |
okay, what i am trying to do is to build a chess game. now i am at the begining of the code and i got stuck. i created 6 packages for each piece and one package for the chessboard. now the idea is to create a new array each time … | |
Hi Guys I wonder if you can help me with this I have built an application that reads my forum and grades responses and things and adds them to a database,. When the application is searching my forum the gui is hanging until the search is complete. The front page … | |
hi, i have issues regarding parse the following xmlns code with jsp....can anyone help me .. <response> <lf:request_type>listing</lf:request_type> <lf:response_code>0</lf:response_code> − <lf:result type="listing" count="10"> − <lf:item id="33585487"> <lf:attr name="title">Used 2001 Ford Mustang SVT Cobra Cobra</lf:attr> <lf:attr name="year">2001</lf:attr> <lf:attr name="make">FORD</lf:attr> <lf:attr name="model">MUSTANG</lf:attr> <lf:attr name="price">18991</lf:attr> <lf:attr name="mileage">17424</lf:attr> <lf:attr name="auction">no</lf:attr> <lf:attr name="city">Dearborn</lf:attr> <lf:attr name="state">Michigan</lf:attr> … | |
public static double average( double... numbers ) { double total = 0.0; [B][I][COLOR="Red"]for (double d : numbers)[/[/COLOR]I][/B] { total += d; } return total / numbers.length; } can any one explain the line bold if posseble d program too... | |
I am working with a springs application and every time i generate a report i need to hard code the report structure and the table attributes everytime.. I am thinking of an idea in which i can create an automated tool attached to my application so that at runtime if … | |
With the help of ibatis we can perform insertion and many other sql operation with direct queries. I have an update query. On the updation on table. a trigger fires which insert a row in another table. Query is written in ibatis and trigger on database. i want to remove … | |
I have one jsp file which inserts data in a database. Currently I have coded like the database file is available in c:\. I mean I have given a path to c:\ in code. But I want to save that in my application folder. So In jsp Did any one … | |
Hi Daniweb. I've been working on a project for quite a while, and posted many problems that I encountered on Daniweb. Thank you to all the users who helped me. Every single one of those problems where solved in less than 24 hours after posting on here. My project mostly … |
The End.