32,204 Topics

Member Avatar for
Member Avatar for vuquanghoang

I have done almost all things in my project. I think file SlList.java in my project has something wrong( in insert function). When I insert something in the middle of link list, I rest disappear although I link the rest to the next of the node I want to insert. …

Member Avatar for Philippe.Lahaie
-1
254
Member Avatar for divsok

please anybody can give me the access code for "Introduction to Java Programming, Comprehensive, 8/e" book if you've..

Member Avatar for StephNicolaou
0
112
Member Avatar for luskbo

Okay, been working on Android program and since its JAVA based, I figured this might be a place to get some good advice. I have been writing this program to run tcpdump, but for some reason it freezes and crashes. I am able to execute the shell commands, but after …

Member Avatar for luskbo
0
275
Member Avatar for artemis_f

Hello all, I am new to this forum. I think this will be an excellent place for learning things and I am looking forward to gaining more java knowledge. My current predicament is the ArrayIndexOutOfBoundsException I am getting on a program I have written. I haven't been able to figure …

Member Avatar for stultuske
0
1K
Member Avatar for adil_bashir
Member Avatar for TIM_M_91

Hi guys well what I want to do is play a video clip when my program starts. My menu has been set up to how I want it to look. I've researched how to do this but I cannot seem to find anything that I want. All I find is …

Member Avatar for TIM_M_91
0
472
Member Avatar for Hitman Mania

So I'm doing this simple draw program where I let the user click a button, i.e. Rectangle, and then click any desired place on the JFrame to draw it. Now, I want the user to first click on the JButton, then click anywhere on the JFrame (so that I get …

Member Avatar for JamesCherrill
0
166
Member Avatar for Samwal

Hey there guys, this is my first post here. Really pretty website I must say. I guess you'd expect a programming website to be well built. Haha. But anyways, I've been having some problems recently with a JFrame. I'm a beginner, but I usually do pretty well with resolving errors. …

Member Avatar for JamesCherrill
0
214
Member Avatar for mehnihma

I have problems with choosing a line and to find a number or times specifif word repeats in that line? Can you help me with that? [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class DefectInspector { private JFrame frame = new JFrame(); private JPanel p1,p2,p3,p4; private JMenuBar jmb; private JMenu …

Member Avatar for stultuske
0
113
Member Avatar for adil_bashir

hello, i have written the below piece of code for calculating the power function, but when i run the program, it shows the wrong result and i verified it by calculating manually. so please help me to get the correct result. [CODE] public class powerFunction { public static void main(String …

Member Avatar for dantinkakkar
0
166
Member Avatar for freedomflyer

Hello y'all. I am in the midst of an exciting project, and I've hit a little bump. I'm trying to do a 'deep copy' of a TreeMap<String, State> [B]so that I can work with one (delete, insert, etc...) and preserve the other for later.[/B] Instead of having to code up …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for igotaquestion

How to implement a DHT in Java? Basically I need to know how to implement a lookup algorithm for DHT. The idea is to grasp java RMI and lookup algorithm of DHT.

Member Avatar for dantinkakkar
0
154
Member Avatar for Mxlfa

Ok you guys are my last hope, i've tried searching what i need and i cant find it. i really tried searching.... but i just don't know exactly what i'm really searching for... i have to do the following project in c# (wrong post haha) but if you could help …

Member Avatar for ztini
0
282
Member Avatar for miss_lovely

Having some difficulties getting this assignment to work. What, I'm having trouble completing is creating an conditional statement that calculates interest for the amount of years entered by the user at the interest rate they enter and displays it in a message box. This is my code so far: [CODE]import …

Member Avatar for ztini
0
183
Member Avatar for riahc3

Hey I have this code [code] FileUtils.forceDelete(new File(nombreprograma+".zip"); FileUtils.forceDelete(new File(nombreprograma+"/"+nombrebmp+".bmp")); [/code] Deleting the zip inside of the root works perfect but for some reason the BMP inside of a folder, doesnt. The error it gives is that it cannot delete the file, nothing else. Any tips?

Member Avatar for dantinkakkar
0
279
Member Avatar for Sonny101

Hi, I am currently doing a JDBC project where I am manipulating data in a Access DB on a table named empDetail and one of my tasks has got me stumped, considering I only started learning about JDBC yesterday. I hope somebody can give me a bit of direction as …

Member Avatar for dantinkakkar
0
130
Member Avatar for shean1488

Hi everybody Help me please to figure out what's wrong with my code When I try to compile it it gives me an error ClassNotFoundException I have never had such an error befoure, so I don't know what to do.... [CODE]import java.util.LinkedList; import java.util.List; import java.util.ListIterator; public class Example { …

Member Avatar for thines01
0
224
Member Avatar for hatebin

Hello. My code describes Color classes: [CODE] abstract class Color{ private final int H=45; private int V; private int S; Color(int V,int S){ this.V=V; this.S=S; } public int getV(){ return V; } public int getS(){ return S; } public void setV(int V){ this.V=V; } abstract void print(); } class Black …

Member Avatar for hatebin
0
81
Member Avatar for vivin.bharathi

Hi, I am a java learner, i have installed netbeans 7.0 and i have also installed the glassfish server, but there is no database options available , please provide me help how to install the java database in netbeans Regards, Bharathi

Member Avatar for dantinkakkar
0
85
Member Avatar for reen

import java.util.Scanner; public class sfera { public static void main(String[] args) { //Langkah 1:Baca input dari pengguna System.out.print("Masukkan nilai jejari: "); Scanner input = new Scanner(System.in); final double PI = 3.14159; double jejari = input.nextDouble(); double luas; double isipadu; //Langkah 2: kira luas luas = 4 * PI * jejari …

Member Avatar for nandosss
0
214
Member Avatar for javaprog200

Hello, When I run the following program, the applet window displays nothing. I will be grateful for any help. [CODE] import javax.swing.*; import java.awt.*; public class BoxPanel extends JPanel { private JTextField label1, label2; public BoxPanel() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); label1 = new JTextField(20); label2 = new JTextField(20); add(label1); add(label2); …

Member Avatar for NormR1
0
140
Member Avatar for MrHardRock

Hey I have an assignment to get a number from the user and print it as a string with commas in the correct space. For example if the number is 13904 it should read 13,904 or 1005 should read 1,005. I have to do this recursively. Working on my pseudo-code …

Member Avatar for dantinkakkar
0
2K
Member Avatar for Glass_Joe

[ATTACH=RIGHT]16645[/ATTACH]Oracle announced Thursday evening (August 12) that they would be filing a lawsuit against Google, claiming that their Android phone software infringes upon patents and copyrights of their Java software, which they acquired when they purchased Sun Microsystems in January for $7.4 billion. "In developing Android, Google knowingly, directly and …

Member Avatar for dantinkakkar
5
410
Member Avatar for xcrypted1

Evening all, My assignment is as follows: Consider a program that administers multiple-choice quizzes. The student needs to provide a response such as A or D. Your job will be to check for input errors in the student response string. Check that the string has length 1, and that it …

Member Avatar for stultuske
0
197
Member Avatar for jackbauer24

My ten year old has learnt quite a lot of java and wants a few BEGINNER projects. Any ideas?

Member Avatar for zeroliken
0
306
Member Avatar for ForceStr

I want to add a progressBar (just to show that something is happening) when the database rows are fed into a table. First I tried to create a frame, where I added progressBar. I called frame.visible in the while loop which populates the table with database datas. But the frame …

Member Avatar for dantinkakkar
0
1K
Member Avatar for mcz2012

I have a simple program with a potential complicated output (see below). I am asked to make a simple for loop that displays results in GUI. Can I do this without with showmessagedialog instead of doing a JTextbox/label ect? I need this: sample gui output: After year 1 $11000 After …

Member Avatar for dantinkakkar
0
125
Member Avatar for bhallarahul

i want to use use javamail Api and i am not able to understand which server i use or is there is any other api available which is better then javamail Api.please suggest me

Member Avatar for bhallarahul
0
144
Member Avatar for lbgladson

I have the following code which allows a user to play Rock, Paper, Scissors with the computer. The code allows for 10 rounds and counts the number of wins and ties. I need to allow for user misspelling by allowing the input to be accepted if the user types the …

Member Avatar for stultuske
0
187
Member Avatar for frivolous

ASALAM-O-ALIKUM i want to read a mp3 file in java and shows the data on console output. i can read header data but i dont need it. i want a ACCURATE DATA FROM WHICH I CAN EXTRACT SUCH A FEATURE which tells the mood of song i.e sad, happy, romantic …

Member Avatar for dantinkakkar
0
80

The End.