35,618 Topics

Member Avatar for
Member Avatar for cig_buttz

Anyone got codes for the ff.? Frequency count Stack and queue Conversion of infix to postfix using stack binary search tree Anyone? my prof asked us to search for the ff and i thought this would be the best site with the best codes. thanks

Member Avatar for thekashyap
0
209
Member Avatar for ChieftanBill

I've recently come upon a frustrating Array Index Out Of Bounds error when selecting any of the "calculations" to be applied to the entered values(maximum 1000 values). I suspect it to be a problem with the [CODE]values[(c+1)][/CODE] in the for loop. I can't figure a way around this problem. Can …

Member Avatar for jon.kiparsky
0
246
Member Avatar for breakid

Hi, I am using tomcat to run jsp file, my question is how can force my server to create log file ? I'm new into tomcat, so please be gentle. Thanks

Member Avatar for stephen84s
0
143
Member Avatar for Snoozey

Hello, I have a current assignment to make a program copy what is put in, and place it into a paragraph using word wrap. If there is no room for the word+ a space then print the line and that word+ space starts the next line. [code] public class ReportWriter …

Member Avatar for mKorbel
0
129
Member Avatar for gordsmash

Hi! Basically what im trying to do is to add a JPanel onto another JPanel that has painted graphics on it using the paintComponent() method. But the JPanel I am trying to add is not shown because it is covered up by the JPanel w/ Graphics on it. How can …

Member Avatar for Ezzaral
0
94
Member Avatar for monkey0525

My program is a implementation of the Sieve of Eratosthenes algorithm, which finds primes number. It stores two integers up to the maximum, and all odd numbers from 3 upward. It also checks if, for whatever any reason the first number ever reached the square root of the maximum number, …

Member Avatar for sabin_chirila
0
682
Member Avatar for newack

hello, i wrote a code to encrypt the 4 digit number. i broke the number in digits and encrypted it. It works fine. But the problem comes when first digit in output comes 0. that time i get 3 digit number instead of 4 digit number. i want it to …

Member Avatar for newack
0
83
Member Avatar for Mkmd13

Hey, I have completed my code for Java and I have to put it in GUI, problem is I dont know a thing about GUI or if my program works correctly with it or not. Here is my code and what the code does is you type in random numbers …

Member Avatar for Mkmd13
0
503
Member Avatar for black_berry

Hello I am trying to connect to an access database, i have tried using the[CODE]Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")[/CODE] but this does not work. I am using Eclipse IDE and running windows 7 64bit. Does anyone know how to make it work? Thanks

Member Avatar for mKorbel
0
95
Member Avatar for Bayareaboy

Hello everyone- I'm currently working on a GUI solution for a school assignment which creates a tabbed window with only the 'Pool' tab actually populated. I have successfully created all of the labels, textfields and buttons for the 'pool' pane, but I am really struggling with setting up the listener …

Member Avatar for mKorbel
0
173
Member Avatar for newack

I am new to Java I wrote a code to find largest number [CODE] import java.util.Scanner; public class LargestNumber { public static void main( String args[] ) { int number,largestNumber; Scanner input = new Scanner( System.in ); System.out.print( "Enter 10 numbers to compare" ); for( int counter = 1 ; …

Member Avatar for newack
0
106
Member Avatar for Java_90

I have to input a directory in DT, then have Directory recursively return a list of files and folders in that directory. My problem is that at the moment my program is only returning the first file in the directory and then ending. I know that I'm doing my recursion …

Member Avatar for Java_90
0
180
Member Avatar for zetologos

This bug is killing me. I have no idea what I did wrong. My friend has it the exact same way. This program reads a txt file and reads each line which has a request in it EX: Matt Smith;Event 1;2009;March;29;11;120;40; We take the request cut it up according to …

Member Avatar for zetologos
0
156
Member Avatar for shiv0013

I am trying to multicast video using java. i tried jmf with rtp. but i need to sign send them as packets and authenticate them before playing. is it supported in jmf with rtp? or is there any way to play a incomplete video file. thanx in advance for ur …

0
69
Member Avatar for sj5536

hi i want to do a facedetection project for attendance on which platform i do that and can u give some resource that from where i get direction that what i have to do

Member Avatar for mess110
0
152
Member Avatar for Neversleepin

Hello, i'm beginner in eclipse and i try the helloWorld.java with Eclipse After creating the JAR file, if i click it, i have an error message: [CODE]Failed to load Main.Class manifest attribute from D:\Ecipse\workspace\HelloWorld\[/CODE] I don't understand why i can't launch my HelloWorld.jar My java version is 6.1.7.600 and i …

Member Avatar for mKorbel
0
2K
Member Avatar for ComicStix

Hey! I'm working on this program that generates 100 random numbers and stores them in an array. This is the unsorted array. Then I use those same random numbers and try to make a sorted array. And it's supposed to be is ascending order like 2,4,6. Only 5 numbers per …

Member Avatar for ComicStix
0
162
Member Avatar for kukuruku

Here I am creating the objects and try to print them,I have differnt classes for date and Employee.The objects EmplObj and EmplObj2 ,are created but I have problem when I tried to print them ,it is printing only the first one [CODE] public class tester { public static void main(String …

Member Avatar for mKorbel
0
117
Member Avatar for kumpul101

Hi!. Well, we have an assignment, and we will make a program in which I will be selecting a subject from the JComboBox, and when I have my selected subject. It will appear in the Text Field below the Combo Box. any ideas? //not the codes :) [CODE]import java.awt.*; import …

Member Avatar for mKorbel
0
144
Member Avatar for njmm

I need used one button to change the state of the light, and the light should have green, amber, and red lights and cycle through green -> amber -> red -> green each time the button is pressed. My code [CODE]import java.awt.Color; import java.awt.Component; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.ActionEvent; …

Member Avatar for JamesCherrill
0
147
Member Avatar for Magekiller

I need to create a program that prompts for the lengths of a triangle and computes it. I have the equations figured out (bottom of code). What I am stuck on though is, well, getting it to work. Any help here would be FAN-FREAKING-TASTIC! PS. I won't lie, this is …

Member Avatar for Akill10
0
146
Member Avatar for samuelhenry

hi... i have multiple buttons in a jsp page .. consider a department page where i have 3 textboxes--- 1- dept number 2-dept name 3-dept location below these i have 7 buttons--- 1)next 2)previous 3)last 4)add 5)edit 6)delete 7)save when i click on the button how do i get results …

Member Avatar for masijade
0
148
Member Avatar for selvis

Hii, After performing a logout action, my index page is continously refreshing, or it tries to load that page. Can you suggest a solution for this. It happens only on IE and I'm using struts1.3.8..... Thanks in advance

Member Avatar for selvis
0
270
Member Avatar for midnightdream

this is a far stretch but i found this fourm online and i thought i'd give it a shot since i dont know where else to turn to... I tried my best to implement the array into ascending order but i'm not sure if it's correct. I needed it to …

Member Avatar for JamesCherrill
0
128
Member Avatar for techie929

Hi, I am getting the following errors: HelloWorldApp.java:54: <identifier> expected public static Vector<int[]> breakTheMovementVector(int i,int j){ ^ HelloWorldApp.java:102: ';' expected } ^ 2 errors [CODE] import java.io.*; import java.util.*; class HelloWorldApp { public static void main(String[] args) { try{ // Open the file that is the first // command line …

Member Avatar for mKorbel
0
121
Member Avatar for carinlynchin

hi, i have searched online and can't seem to find something I understand for a timer. I have a boggle game that needs to have a 3 minute counter so I figured I'd have a countdown from 3 minutes...but the only thing I've found in other peoples codes and the …

Member Avatar for JamesCherrill
0
101
Member Avatar for anuj_sharma

Hey Guys, I have the following code: [CODE] class A { int a,b; A(int i,int j) { a=i; b=j; } void showab() { System.out.println(a+" and "+b); } } class B extends A { int k=20; void showabk() { System.out.println("a="+a); System.out.println("b="+b); System.out.println("k="+k); } } class Test { public static void main(String …

Member Avatar for anuj_sharma
0
93
Member Avatar for oldezwe

Hey, I'm fairly new to java. I was hoping someone could give me a pseudo code like description of what I'm trying to do so I know where to start my researching. In my program: -Users will register a username, password, and weblink to their account. -There will be restrictions …

Member Avatar for anuj_sharma
0
162
Member Avatar for SacredFootball

See Attachment. The instructor of my class gave us method names, variables, etc so i had to follow what he required. My question is this: How do I check if an area is occupied by an object or how to know an objects location in the grid? I've coded everything …

Member Avatar for SacredFootball
0
106
Member Avatar for coervivekmca

i have sms gateway but i dont know how to implement it. i have a usr path which i have to pass from browser without seeing to user..can u send me code and tell me how to implement and solve this problem

Member Avatar for coervivekmca
0
154

The End.