32,204 Topics

Member Avatar for
Member Avatar for skoon

I am new to programming, so please accept my apologies if this question is simple. I'm creating a program that generates a random maze depending on the starting point you enter. I did every thing but when I execute the program, it doesn't show the path to get out from …

Member Avatar for skoon
0
403
Member Avatar for agrzesiak

Hello so the code i need to write needs to read a text file and print as many random names as a user tells it to. so i have everything but cant figure out how assign a line of the file a number so i can just come up with …

Member Avatar for thines01
0
169
Member Avatar for nickliutw

I'm running a problem with install the junit to the computer. I already download the junit to my computer. But how do I install it? I try to google it, but I don't understand their instructions. I remember in the class, my teacher do a lot of copy and paste …

Member Avatar for nickliutw
0
84
Member Avatar for sugir1987

hi all i have to implement arraylist<node> base tree(one parent may have more than two children). i did not work with node can you help me to create the tree

Member Avatar for NormR1
0
170
Member Avatar for mehnihma

I need to check whether the entered numbers are valid, if not output a message. this needs to be done with using exception handles. i have tried the following but does not work. i get the error : cannot invoke hasNextInt() on the primitive type int [CODE]input = in.nextInt(); if …

Member Avatar for zeroliken
0
280
Member Avatar for 47pirates

I want to write some text to JtextArea of class1 from class2 . How can i do that? Thanx in advance for any suggestion

Member Avatar for 47pirates
0
139
Member Avatar for rushi3311

I am developing a dynamic page in that some text and images should be displayed together...! But before that i had tried to get nevigation page for whole application. In that i am getting same problem, Image is not displayed...! What i should write in src=" ????? " I have …

Member Avatar for rushi3311
0
363
Member Avatar for Majestics

I hope u havnt taken it filter in java :-), i want to create a filter for internet which do content filtering on some keyword, but dont know how to start , any body just an hint please..... Thank you

Member Avatar for Majestics
0
78
Member Avatar for jade_91

For the program I have the user entering their current distance and bearing from specified point with the programme then returning the nearest station and bearing/distance to this station. However I also want to include what line the station is situated so I know the code will be something along …

Member Avatar for jade_91
0
121
Member Avatar for emmas4impact

Hello, I'm working on a Moving Ball project and on the moving ball there are random number so i need to use the keyboard or the mouse to click on the number printed on the moving but i dont know how to go about it. here is the code below: …

Member Avatar for emmas4impact
1
2K
Member Avatar for mhd_arif123

I am learning java through a book. After finishing each chapter, i work out problems given at end of each chapter . when i tried to solve a problem , i could not frame the logic exactly. Please help to solve following exercise : Write a program to find the …

Member Avatar for JamesCherrill
0
213
Member Avatar for rotten69

Hi everyone, I'm trying to do exercise from the book I'm reading at the moment. But, I don't seem to have understood the last part of the question. I'd greatly appreciate anyone explaining the question to me. I have done all parts of the question except the last one which …

Member Avatar for Philippe.Lahaie
0
251
Member Avatar for de.ICeman

Can anyone suggest book for beginner In EJB 3.0 Like Head first (there is Head first Ejb but its 2.0). Any suggestions would be appreciated.

Member Avatar for peter_budo
0
187
Member Avatar for freakybeavis

Admittedly I am only a beginner at playing with java but I'm pulling my hair out trying to understand something I thought would be easy, and it probably is. Trying to write code that randomly selects from 3 preloaded arrays and spits out the results. Mechanically the code seems to …

Member Avatar for javaAddict
0
157
Member Avatar for LogicalOutlier

This program determines the grade average, raised grade average, of individual students and all students. The program takes scanner input. In the scanner, the number of students, the number of grades for each student, and the grades of each student are entered. Ultimately, I need to print out each student's …

Member Avatar for hiddepolen
0
2K
Member Avatar for bhallarahul

hello everyone i was writing a program which is used to convert pdf to text.it is work fine when i am convertin a simple paragraph or table into text but it gives error while convert another file which is send by other and contains 1000 's of pages can you …

Member Avatar for bhallarahul
0
543
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Member Avatar for rotten69
0
313
Member Avatar for scheppy

I have a grid of 225 JButtons in a 2d array of 15 x 15 I was windering do i need 225 if (event.equals (Grid[0][1])) { } or is their a loops or something, thanks in advance

Member Avatar for scheppy
0
368
Member Avatar for janfritz

hi. i'm trying to make a program that will connect two points that i click in my JPanel. i'm trying to connect the two points with a line. i displayed the values of my (x1, y1) and (x2,y2) coordinates whenever i click using the mouse and there is no error …

Member Avatar for hiddepolen
0
231
Member Avatar for scheppy

Ok, so I've imported import java.util.Random; and im trying to get a random number between 1 and 2, 1 and 4,and also 1 and 15, how would i acomplish this, i know how to generate random numbers, but not between 2 certain numbers?, how can this be accomplished?

Member Avatar for scheppy
0
161
Member Avatar for dhija22

Hi, I wonder of you can help me please, I'm new here and looking for an answer to a problem with my Java files. 'Problem' is: When I try to open the 'Java' icon on the 'controll panel' page, it says 'Application not found' !? I have tried re-installing Java …

Member Avatar for dmanw100
0
165
Member Avatar for slasherpunk

So, I wrote the following program to connect to my local mysql server and create a table in the existing "test" database. The program compiled without any errors, but I got the following run-time error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on …

Member Avatar for slasherpunk
0
15K
Member Avatar for sagy26.1991

hello everyone, I am new to java programming and i am currently studying inheritance. I have following program and i am getting error [COLOR="Red"]"cannot find symbol"[/COLOR] .Please help me.Thanks in advance. [CODE]class Box { double width; double height; double depth; Box() { //default constructor width = 0; height = 0; …

Member Avatar for sagy26.1991
0
1K
Member Avatar for raj26061990

eg. 14 and 15 Find all the factors of 14 and 15. 1,2,7,14 are factors of 14 1,3,5,15 are factors of 15 Sum all the factors of two numbers and if sum of factors of two numbers taken are respectively equal they are Amicable numbers.

Member Avatar for cms271828
0
480
Member Avatar for cms271828

Hi I've made a cube in Javafx 2.0, see [URL="http://www.colin-java.co.uk/pics/ftcfx.png"]http://www.colin-java.co.uk/pics/ftcfx.png[/URL] But as everyone can see, the edges of the shapes / image are horrendous. This is even with smooth set to true, but it appears to do nothing. Setting it to false seems to make no difference. I've tried googling …

0
54
Member Avatar for cadamsjr

Hi everyone, I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting. In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, …

Member Avatar for cadamsjr
0
191
Member Avatar for friknos

hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need …

Member Avatar for friknos
0
136
Member Avatar for lordsurya08

I'm using Swing's GeneralPath to create complex shapes and fill them. Usually I do this, and it creates a nice hexagon for me: [CODE] path.moveTo(100, 100); path.lineTo(150, 100); path.lineTo(180, 150); path.lineTo(150, 200); path.lineTo(100, 200); path.lineTo(70, 150); path.lineTo(100, 100); g2.draw(path);[/CODE] Suppose I wanted to create a donut-shaped GeneralPath, and do this: …

Member Avatar for JamesCherrill
0
356
Member Avatar for onosan

Hi, first of all, sorry for my english, but I´m having a problem and I can´t resolve it. This is part of my jsp code: [CODE]<% if( session.getAttribute("usuario") == null ) response.sendRedirect("index.jsp"); ArrayList pacientes = new ArrayList(); String mensaje=""; String dni="", nombre="", apellido="", email="", sexo="", telefono="", fechanacimiento="", obrasocial="", codigo=""; String …

Member Avatar for javaAddict
0
1K
Member Avatar for seredi

i) My Table contains no of columns and a jcheckbox i the last column. ii) I am using a combobox to select certain value. iii) based on the value of combo box the jbutton loads the data into the table. iv) when i [B]reload[/B] the data into the table, the …

Member Avatar for itexamstube
0
779

The End.