35,617 Topics

Member Avatar for
Member Avatar for emorjon2

Hi there! I have some problem with java. I developing a multiplayer applet, there a class called userServer registry new users and logging in other users. the problem is, that I don't know how to append in a array. [CODE] user Users[]; int cnt=0; Users[cnt] = new user("emorjon2", "password"); cnt++; …

Member Avatar for JamesCherrill
0
168
Member Avatar for Taimoor Rana

Hello Guys, I know how to draw line and shapes but how can i draw a parabol??? ( i need a 2D line) Any suggestion or pointers are appreciated!

Member Avatar for Ezzaral
0
88
Member Avatar for bullockc83
Member Avatar for Gheter

Hi, I urgently need a java applet to make fractals like this one: [URL="http://www.fractalposter.com/fractal_generator.php"]http://www.fractalposter.com/fractal_generator.php[/URL]. Please can someone give me the code? Thanks Gheter

Member Avatar for javanoob101
-1
213
Member Avatar for r0n

hello everyone, got issue regarding reading duplicate records in a text file... i need to read the file and look for any duplicates data/keys in the text file and write them to another file (all the duplicates records)... how can i do that, in looping...:-/ any help...:) thanks!

Member Avatar for r0n
0
2K
Member Avatar for RaniaH

I created JSP page containing form with two comboboxes, I need to pass the selected value from the first combobox to SQL statement used by the second combobox. Any suggestions? [CODE] <form name="subfrm" align="center" action="SaveSubscription"> Event Category: [COLOR="Red"]<select name="evnt_cat"> [/COLOR] [COLOR="red"]get the selected value[/COLOR] <option value="0">--Select Category--</option> <% try { …

Member Avatar for RaniaH
-1
318
Member Avatar for sj5536

hi, i am using ITEXT to create Pdf File . i want to reduce spacing between lines in pdf file is this possible if it is possible then how can i do that. thankx

Member Avatar for peter_budo
0
170
Member Avatar for didingnuriska

Hi there, I am a newbie in this forum,:) I have problem with the R-SVD java for object tracking in video, Any body can help? the references or code maybe... here a give the file of formula of R-SVD for object tracking, I feel difficult to understand and make the …

0
41
Member Avatar for pkty31

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.skynet.simpleHttpServer; /** * * @author Gryffy */ /* "Copyright (C) 2001,2005 by SkyNet Corporation \n"+ "\n"+ "Redistribution and use in source and binary forms, with or without\n"+ "modification, are permitted …

Member Avatar for masijade
0
469
Member Avatar for javagiek

i am having trouble with this code. It does not let me compile in eclipse but there seems to be no error? Any clue where my mistake lies? thank you [CODE] package useToken; import java.io.*; class readFile extends StreamTokenizer { readFile(InputStream in ){ super(in); } public static void main (String …

Member Avatar for ztini
0
101
Member Avatar for sanam_1

Why eclipse is giving me different answer every time with same program code?is it stack overflow or something?plzz help e fellow programmers. (im using the input box)

Member Avatar for ztini
0
43
Member Avatar for McCurry0x77

I'm trying to run through a file and add each string in the file to a string array. My code yields the error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at StudentLAM.main(StudentLAM.java:14)" Why doesn't this work? Note: I cannot use ArrayList. My error-yielding code: [CODE] private Scanner index; int cell = …

Member Avatar for jon.kiparsky
0
291
Member Avatar for matstars

I have a JSP page that has two pieces of data that I need to send to a page on another domain via post when a button is clicked. My original iteration was just having the two pieces of data in 2 hidden fields and when the user clicked a …

0
116
Member Avatar for spoonlicker

[B]I just started to learn Java a few weeks ago but gave up on it after hours of attempts and my code didn't work. Here is my input: [/B] [CODE]class JAVA { public static void main(String Args[]) { System.out.println("Hello World"); } }[/CODE] I saved it as JAVA.java and tried to …

Member Avatar for ztini
0
206
Member Avatar for Aldoody

This is the program I'm working on and I'm completely lost A Pythagorean triple is a set of numbers A, B, C such that A2 + B2 = C2. Write a subroutine that determines if 3 given numbers are a Pythagorean triple. The subroutine should print out an appropriate comment …

Member Avatar for ztini
0
113
Member Avatar for aanders5

Ok, so basically i am just trying to pull plain text from a website. basically it will display a person's Runescape stat's in text form. here is my code so far on how to get the url for the page. [code] private void statsButtonActionPerformed(java.awt.event.ActionEvent evt) { String oldrsn = rsnTextField.getText(); …

Member Avatar for aanders5
0
339
Member Avatar for mikesilvey

Hi, im new to jsp and have made a few pages, and can display them using Tomcat, ive made a page counter and managed some validation of a form, but i cannot get this to work: i have a form where you can select a product, then type in the …

Member Avatar for Busang
0
186
Member Avatar for chiefpf

Concatenate a substring of the original string sentence starting from index 0 and ending before the middle Character(s). Use the substring() method. Use an if statement to account for even or odd, the end index that you need substring()the end index that you need for substring() will be different public …

Member Avatar for jon.kiparsky
0
166
Member Avatar for Aniket_Sharma

I am a beginner in Jpcap. My problem is as follows:- i am trying to send a TCP packet but unable to receive it. The code for sending Tcp packet is as follows. I am working on Windows XP. hoping for reply. [CODE]//code for sending import jpcap.*; import jpcap.packet.*; import …

0
113
Member Avatar for lu25

hey i need some help with my assignment am a seriose beginner i need to create a program using arrays that prompts the user to write a sentence and then prints outs the word and the number of times its appearing..i don't know where to begin please help :(

Member Avatar for lu25
0
87
Member Avatar for zyaday

What is wrong with my code? I'm trying to add a list of paths to a DefaultMutableTreeNode... I'm not getting the result I expect...can anyone help why?... [CODE] public static void main(String [] args){ List lst = new ArrayList<String>(); lst.add("a/b"); lst.add("a/b/c/d"); lst.add("a/b/c"); DefaultMutableTreeNode node = new DefaultMutableTreeNode(""); DefaultMutableTreeNode traverser = …

Member Avatar for mKorbel
0
128
Member Avatar for plasticfood

[CODE]public static void fun(int x){ System.out.println(x); x--; if(x > 0){ fun(x); } System.out.println("returning " + x); } [/CODE] in the main class: fun(5); [U]output:[/U] 5 4 3 2 1 returning 0 returning 1 returning 2 returning 3 returning 4 --------------------------------------- what i don't get is how the print statement is …

Member Avatar for jon.kiparsky
0
155
Member Avatar for livinlife79

import java.util.Scanner;// Import and use scanner import java.util.Arrays; public class Inventory3 { //begins execution of program public static void main(String[] args) { //create new object CD mycd = new CD(); //create and intialize array of CDs CD[] cdArray = new CD[3]; cdArray[0] = new CD("Rolling Stones",100,25,14.99); cdArray[1] = new CD("Pearl …

Member Avatar for jon.kiparsky
0
193
Member Avatar for spencer.kindt

Hey all, I've posted a few other threads and all the help has been so helpful... I have another assignment and I need some more help. For 9, I'm thinking that I should use a for loop and just do i-- for each time it runs through? After that just …

Member Avatar for jon.kiparsky
0
173
Member Avatar for StevoLord

Hi, I've got a basic javax.swing.Timer that I use to repeat itself to darken an image over and over again. This should give a fade out effect for the image however the delay on this is set to 0010 which should be so quick however it takes half a second. …

Member Avatar for mKorbel
0
132
Member Avatar for DARK_BYTE

HI I am currently doing my final year project and I need to build an algorithm visualization tool(with user defined algorithm animation). The user defined animation takes place as follows: 1. The user can open a text editor in the GUI and type his/her user-defined algo in java 2. When …

0
67
Member Avatar for raul8
Member Avatar for pcvrx660

The assignment I am doing is almost complete but the while loop doesn't exit. package lessons; import java.util.Scanner; public class Chp4417 { public void determineMileage() { Scanner input = new Scanner(System.in); int miles, gallons; //read in the inputs. int counter = 0; // counter int totalGallons = 0; //calculate total …

Member Avatar for Buffalo101
0
146
Member Avatar for malayasthana

hello guys., i severely need your help . in the following code i want to transfer the value of rowIndex to next jsp page and want to get it there and print it. please tell me how it could be done. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>search Result</title> </head> …

0
87
Member Avatar for patriDA

Hi everybody, I'm developing a web application in which the user can enter some inputs to run a simulation. For each registered user, there must one folder created, where all the results coming out from the simulation are saved and also some images (png). These images must be displayed on …

0
51

The End.