32,204 Topics
| |
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 … | |
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. … | |
Hi all, Can any one tell me, how to find C: free space in windows using jdk 1.5 ?.Thanks in Advance. | |
[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] | |
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 … | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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? | |
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 … | |
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: … | |
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 … | |
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, … | |
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; … | |
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 … | |
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 … | |
Hi, I need a to create a java file dynamically .This file contains myown methods,variables and constructors.Any one please help me.. | |
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 … | |
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 | |
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, … | |
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 … | |
[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 … | |
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!! | |
[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; } … | |
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 … | |
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 … | |
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. | |
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 … |
The End.