32,204 Topics

Member Avatar for
Member Avatar for trelek2

Hi! I'm writing a pool simulation and have an awful problem with my ball collisions (elastic collisions). The theory (in terms of vectors) is that when two balls collide you take the line between their centers and the velocity components which are perpendicular to this line are unaffected, while the …

Member Avatar for VernonDozier
0
170
Member Avatar for shahab.burki

Hi, I am implementing Linked List in Java. I am using three classes for this i.e Data Class, Node Class and Linked List Class. Now the problem is that a searchNode method in my linked List class doesn't work properly. I have tried to debug it it, but can't understand. …

Member Avatar for darkagn
0
92
Member Avatar for senthil12345

Hi all, Can any one tell me, how to find C: free space in windows using jdk 1.5 ?.Thanks in Advance.

Member Avatar for verruckt24
0
98
Member Avatar for bahr_alhalak

[COLOR="Green"][B]write a report on threads in operating systems such as [U][COLOR="Red"]Linux[/COLOR] [/U]and [U][COLOR="red"]windows XP [/COLOR][/U]? [/B][/COLOR]

Member Avatar for verruckt24
-3
190
Member Avatar for itslucky

Hi, Dear Friends i am working on my Project of Chatting... i want to chat with the Client having the specific ip address, so i just pass the ip address of my friend to the server and server will send my message to that ip address... on which a client …

Member Avatar for dickersonka
0
107
Member Avatar for Nrod520

Hi i am trying to create a keyboard input menu that displays the following. I am not quite sure how to go about doing this 1) Work with a circle 2) Work with a rectangle 3) Work with a triangle 4) Exit I am not quite sure how to go …

Member Avatar for verruckt24
0
112
Member Avatar for Grn Xtrm

Hello. I'm working on a class hierarchy that starts with an abstract class called GeometricObject. I want to use this class to create classes of different types of triangles. I want to these classes to inherit the perimeter method from the Triangle class. Here's what I have so far. abstract …

Member Avatar for Grn Xtrm
0
909
Member Avatar for Fionageo

Hello I am working with Jasper iReports, I call a method inside of one subreport created in Java when I run the application sends me the following error: Cannot cast from JasperReport to String value = (java.lang.String)(com.server.beans.GafJasperUtil.getReport(((java.lang.Object)parameter_SUBREPORT_GIS.getValue()), ((java.lang.String)parameter_SUBREPORT_DIR.getValue()) + "GIS-Report"));//$JR_EXPR_ID=45$ <----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> What should I modified? Thank you.

Member Avatar for Fionageo
0
986
Member Avatar for m_sam6

hi i ask about open source projects where i can learn & develop my programming experience to go forward in java programming really i need ur advice about this topic thanks in advance

Member Avatar for Ezzaral
0
57
Member Avatar for GeorgeDavid

Hello, I'm GeorgeDavid. I have noticed a workplace demand for Java consultants so I've signed up for programming classes. I notice this website handles questions fairly and without insulting those of us learning. I hope to also offer advice and assistance to those that may know less or as much …

Member Avatar for jbennet
0
45
Member Avatar for get2tk

hiya all,how can i transfer an array of strings from a client machine to a server machine ?how do i convert to from arrays of string to 1's and 0's on the client side and vice versa?

Member Avatar for verruckt24
0
182
Member Avatar for EJD

I need to display the original information from the input file (see below) as it is presented, compute and display each player's average score on his respective line. Input file: Smith 13 20 8 12 -1 Burch 21 18 16 -1 John -1 Mike 5 -1 (FYI) -1 is the …

Member Avatar for verruckt24
0
578
Member Avatar for abhi_elementx

Hello folks, I m tying to implement a Singleton pattern; Iwant connect to MySQL databaseusing only a single Connection object(Singleton). I have implemented the application using threads. I run 2 threads. The second thread should use the Connection object created by the first thread which is not happening. My code: …

Member Avatar for stephen84s
0
116
Member Avatar for jk_bscomp

hello everyone!!! I am currently working in socket programming in java and I am creating a simple chat application... To go directly to my question, ServerSocket server = new ServerSocket(1024); Socket socket = server.accept(); String hostname = socket.getInetAddress().getHostName(); System.out.println(hostname); If I will run my Server program, the output will be …

Member Avatar for JamesCherrill
0
172
Member Avatar for grebnesor88

i was given an assignment to read from a file and find out the statistics of all the letters in that file. considering it is part of an arrays lesson, i am assuming we need to use those. if someone could help me out, it would be greatly appreciated. thanks, …

Member Avatar for ithelp
0
105
Member Avatar for spec80

Hi, I have a couple of classes and I am trying to do the following: I have a main class that contains a boolean value called "display" that displays various messages throughout the class depending on true/false values. Main class example: [CODE]public static void main (String[] args) { boolean display; …

Member Avatar for spec80
0
1K
Member Avatar for Darkwater

Hey there. I'm using a JTable for the first time, and I've read through the Sun and other tutorials, but this simple concept is still confusing me. So I seek help! Basically; I'm creating a multiplayer (AI-controlled) mining game, which will display maps loaded from XML. I've parsed the XML …

Member Avatar for Ezzaral
0
159
Member Avatar for TheJackRabbit

hey guys, im new to the forum, but i read the rules already so i wanted to start getting help on this homework problem i have for the weekend. i have to determine output of a recursive array code as follows: [CODE]import java.io.File; import java.util.Scanner; import java.io.IOException; class RecArray{ private …

Member Avatar for verruckt24
0
87
Member Avatar for gcr007

Hi, I need a to create a java file dynamically .This file contains myown methods,variables and constructors.Any one please help me..

Member Avatar for masijade
0
131
Member Avatar for Tizzie

So I have to write a program which writes all even numbers between 0 and 50 INTO AN ARRAY and then display them on the screen.... My problem is how i am going to put it into an array I only did part of it but I can't continue doing …

Member Avatar for stultuske
0
147
Member Avatar for SSagar

Hi, I have a file system tree. I need to select a file and highlight it without selection. I am not able to build the TreePath for this. Plz let me know how to build the treepath. Thanks in advacne, Sagar

Member Avatar for SSagar
0
83
Member Avatar for kbullard516

Hello. My task is import data from a text file into an array, and then sort the array and print out the sorted array. Each element of the array represents a clothing item and has name,category,quantity, and price values. I have an Item class to represent a single clothing item, …

Member Avatar for kbullard516
0
153
Member Avatar for charlie81

I know I am missing somethings in my code not sure what I am supposed to put in. Here is what I have so far. import javax.swing.JOptionPane; public class Main_Class { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String firstNumber;//first number …

Member Avatar for verruckt24
0
164
Member Avatar for ceyesuma

[i] Name: The name of this question is: carbon_copy [/i] [icode] Hello and Thank you in advance for any assistance. [/icode] [u] [b] Purpose: [/b] [/u] [b] The purpose of this code is create a desktop app and web app. The web app has the destop apps library. Create a …

0
56
Member Avatar for saraalaee

hello!! is there any body to answer my question : is "General List" a data structure(like ArrayList for example) in java language??if it is, plz tell me what it exactly is??I have searched but i didnt find anything about it!!

Member Avatar for jasimp
0
89
Member Avatar for rayda

[ICODE]public class fermi { private int[] guess; private int[] random; private int total; private int win; private int lose; public fermi(int[] gs, int[] rn) { guess=new int[gs.length]; for(int i=0;i<gs.length;i++) guess[i]=gs[i]; random=new int[rn.length]; for(int j=0;j<rn.length;j++) guess[j]=gs[j]; } public fermi() { total=0; win=0; lose=0; } public int totalPlay() { return total+=1; } …

Member Avatar for verruckt24
0
99
Member Avatar for zeropulse

I'm planning to develop a bluetooth positioning project but i have no idea where to start. I know that we can track a bluetooth device by identifing it's mac address. What i want to know is that can i actually use a bluetooth dongle to retrieve any device near by …

Member Avatar for peter_budo
0
88
Member Avatar for blackcloud72

Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output". Then i have to display the contents of "output" to the console. I am able to display the reversed text to console but only from …

Member Avatar for jasimp
0
111
Member Avatar for etc123

I want to code a java app that uses the JDBC-ODBC driver. However, i have a problem with this driver. I have no idea where to look for it, I also don't know how use it, install etc. Help please.

Member Avatar for JamesCherrill
0
70
Member Avatar for sawant_nitesh

I m having many dataobjects (*.java)(having getters and setters) My requirement is that, I want to write a generic Method, which will accept argument as Object and will call all getters of that Object. Basically I want to write a log file with all dataobjects which are going to be …

Member Avatar for masijade
0
110

The End.