35,618 Topics

Member Avatar for
Member Avatar for the b

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 …

Member Avatar for masijade
0
231
Member Avatar for madhub2v

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 …

Member Avatar for madhub2v
0
126
Member Avatar for skyzer

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 …

Member Avatar for skyzer
0
232
Member Avatar for himmat.m4

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, …

Member Avatar for javaAddict
0
256
Member Avatar for boiishuvo

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 …

Member Avatar for tong1
0
150
Member Avatar for lanhlung696

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 …

Member Avatar for lanhlung696
0
175
Member Avatar for D boss

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, …

Member Avatar for jadhav vijay
0
2K
Member Avatar for the_future21

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 …

Member Avatar for nishanthini
-1
80
Member Avatar for BboyRodimus

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 …

Member Avatar for coil
0
143
Member Avatar for vishalonne

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 …

Member Avatar for vishalonne
0
91
Member Avatar for cac186

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 …

Member Avatar for NormR1
0
190
Member Avatar for glenak

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 …

Member Avatar for NormR1
0
129
Member Avatar for djbhoco

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 …

Member Avatar for coil
0
482
Member Avatar for glenak

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 …

Member Avatar for glenak
0
63
Member Avatar for gupneha

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 …

Member Avatar for Dupron
0
195
Member Avatar for rich345

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 …

Member Avatar for Dupron
0
3K
Member Avatar for kimiko

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 …

Member Avatar for jon.kiparsky
0
184
Member Avatar for Premsathishbe

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?

Member Avatar for ~s.o.s~
0
84
Member Avatar for Dean_Grobler

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 …

Member Avatar for Dean_Grobler
0
103
Member Avatar for tennis

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 …

Member Avatar for NormR1
0
87
Member Avatar for safee86

// 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 …

Member Avatar for NormR1
0
304
Member Avatar for aro_kai

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.

Member Avatar for NormR1
0
136
Member Avatar for NewOrder

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 …

Member Avatar for NewOrder
0
318
Member Avatar for steveh000

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 …

Member Avatar for steveh000
0
270
Member Avatar for yuvi2288

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> …

0
86
Member Avatar for Premsathishbe

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...

Member Avatar for tong1
0
94
Member Avatar for shreyamodi

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 …

0
27
Member Avatar for pankajagar2002

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 …

0
77
Member Avatar for moied

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 …

-2
37
Member Avatar for P00dle

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 …

Member Avatar for P00dle
0
168

The End.