32,199 Topics
| |
I am working on this for hours..Your help is highly appreciated. The client will send 32 integers to the server. These 32 integers will be read from a file called DataInput.txt that is the same directory as the source of the client. I am trying to implement this delivery using … | |
Hi, I'm trying to make an online compiler for java using ASP.NET C# Process p=new Process(); p.StartInfo.FileName = "C:\\Program files\\Java\\bin\\javac.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.Arguments = "C:\\Hello.java"; p.StartInfo.RedirectStandardInput = true; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.CreateNoWindow = true; p.Start(); p.StandardOutput.ReadToEnd(); p.WaitForExit(); I run javac.exe to compile Hello.java, but the process … | |
Hiya, I wasn't really sure if this goes under Java or Game Development forums, so I decided to post it here. I'm making a simple "Scrabble" game, which checks letters placed on the table and tries to find if they form proper nouns. I have a list of words, and … | |
| This is a mess. What I want to do is make 1 program with the 3 loops in it do something different and produce an output of what each loop does. Do loop: print out every other character For loop: print out the string reversed While loop: print out in … |
Hello, I am creating a basic Java program that will store music. musicID Track Name Track Artist I have chosen to do this through a text file, to store and view my data. My text file output currently looks like this: [CODE] 1 TrackName1 Artist1 2 TrackName2 Artist2 3 TrackName3 … | |
Hey so I dont want someone to just show me the code, but I've been struggling to get this to work for hours. I need to write a program that finds all the words with consecutive vowels in them... this is what I have so far... -we are given a … | |
Does anyone have an example or a starting point for this? I have written a program that checks for palindromes but I am lost with this. Any help would be great, thank you! [COLOR=#000000][/COLOR] [COLOR=#000000]Create a class that models a palindrome. The program should have getter and setter methods for … | |
Plz help me in writing a prog that coverts a integer values to respective hexa value and store it to a file eg: in file i need like this 15 0xf(0x mandatory), 255 0xff 254 0xfe | |
So I have an assignment due tomorrow and I've been trying to get this program to work, but it's quite difficult for me to do. I need help in taking the user's input and placing it on the grid and checking for all the matches to see if one of … | |
Hello, I have a project to complete where I need to create a system that stores Clients, Stock and Invoice data through a GUI. I need to be able to store multiple unique records of 'Client' in an array that allows me to edit, delete & navigate through them one … | |
I Want to develop an application from which user can login into the particular website which sends SMSs, so ultimately we can send SMSs using application without opening website.. i dont know how do i code for that, can anybode help me ?? thanks in advance | |
Here is my assignment: In Chapter 5, you created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30 inclusive. Allow the user to choose six check boxes to play the game. [B][U](Do not allow the user … | |
I have a class called "Vindu" and a class called "Innlegg". I am adding a object from "Innlegg" into an ArrayList called al. But when i try to get the text out from al i only get text like this: "Innlegg@5de9ac4" Is this the memory address or something? How can … | |
Im making a program that has to call on a method when space is pressed,note it is the first time I'm doing a keylistener To do this i did [CODE]public void keyPressed (KeyEvent e) { int key =e.getKeyCode (); int space = 32; if (key==space) { } } [/CODE] and … | |
Hi! I'm having some problems with my build files while running junit tests via ant. The build worked fine until a couple of days ago when I got a "process fork failed" error message. Further down in the stack trace i got: Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_25\jre\bin\java.exe" … | |
I am making an app similar to the CMD in windows, or Terminal in Linux. My problem is, after calling the method the user has selected, I want them to be able to select another. Instead, it closes. Main class (jDOS.class) [CODE]package jdos; /** *jDOS Cross-Platform Java Console *Luke Pattinson … | |
HOw can i read from a socket and display message from socket in Textarea of Chatpanel even if there is no any focus in Chatpanel.I mean when i create two chatpanel instance then after clicking the send button in 1st chatpanel the message from socket should be displayed in Textarea … | |
I'm writing a program that compare two objects'distance. I already implements the comparable class to my distance. I also override the compareTo() method. So far it does not give me a compiler error, but I have a logic error. I have been try to search where my error occur, but … | |
I spent about 4 hours trying to make PMD being able to validate my Java code but XPath proved to be very painful to work with when developing fairly original custom rules. My rule requires me to apply them only to methods without 'get' as part of their name. In … | |
I hope someone can help me.. I'm taking a course in programming with java and I have an assignment which is just killing me. I've been visiting the Blackboard page for the class and looking at other questions asked for help from other students in the class having similar issues, … | |
hello, can any one answer me is java the router's programming language, or at least the mostly used in it? thank you in advance for any kind of help best regards | |
HI ALL, well i am writing a program for quick sort but with some changes. The following code sorts the integers but i need it to show the sorting process in each steps.i.e. for example: Initial List: 5 -> 9 -> 2 -> 9 -> 7 -> null Level 0: … | |
Hey guys, I'm here to ask you a question. I have a constructor to get the highest ID (first int) from my Employee data file (int string string string int double), but I have no idea on how to actually display it within my JTextField, with a +1, so I … | |
I have to find out how many times the [CODE]createPerson()[/CODE] function is called This is my Main.java file [CODE]import java.io.IOException; public class Main { public static void main(String[] args) throws IOException{ int i; Student[] totalStudents = new Student[10]; Student.create3Persons(); Student.create2Persons(); } } [/CODE] this is my student.java file [CODE]import java.io.*; … | |
Hi people, well i am a computer science student and my dissertation title is "An Agent Based Tutoring System" and i am using JADE to do it and MySQL for the database. Can any one help me in doing it?? I want you people propose me some ideas so as … | |
Hello everyone on daniweb!:) I'm trying to make a programme which will move a picture to the sides when pressing the right or left arrowkeys. I did successfully put a picture in and I was able to change the side coordinates(called "side" in the programme) to make the picture move. … | |
Hi I am writing one simple program for upgrading my knowlegde from C# to Java but I am failed to attach ActionListener to JComboBox which is added to a cell of JTable at run time. Actually I want to perform update operation and delete operation on selecting Update or Delete … | |
Hello there. I am trying to create a loop, which will move an objects position to a certain spot, based on a random number generator. Here is the code I have so far; [CODE]public void left() { if (this.getColour().equals(OUColour.WHITE)){ while(this.getPosition() !== this.setPosition(this.getPosition() - getRandomGenerator().nextInt(5) + 1)){ super.left(); } } }[/CODE] … | |
can you help me to clear the error? [CODE]import java.util.*; class Node{ protected Object data; protected static ArrayList child; protected Node next; public Node(){ next = null; data = null; child=new ArrayList(); } public Node(Object d,Node n){ data = d; next = n; n.child=new ArrayList(); } } public class Tree{ … | |
I need help in my Connect Four program. Specifically in placing the user's input on the gameboard & also checking horizonallty, vertically, etc. [CODE]/* * ConnectFour program */ import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; public class ConnectFour implements ActionListener { JFrame frame; JPanel contentPane; JButton displayMessage; public ConnectFour() … |
The End.