32,199 Topics
| |
Hi, I am getting this error and just can not figure out what is causing it. I have looked at code from 2 different books. I have google searched. Here is part of my program that contains the code giving me problems. I posted the program from the beginning to … | |
Hi everybody; I am a beginner in the BPEL development. I need tutorials that can help me to implement the parsing of a BPEL process into graph under netbeans 6.7 (the API that should be installed etc ( I have installed the JDOM API). I will be grateful if you … | |
Hello, I've been working on this chat program which has a gui. Basically for now im just pressing start then connect to get a connection. Start is for the server window and if you press connect that will be the client window. I can send messages from the client to … | |
Based on my understanding, both are doing the same way which also kind of override the methods. Abstract method is, both childclasses are having the same methods, but different execution code. Interface is, whenever the class implement the interface class, the class must write the execution of all the methods … | |
I have a Task class (superclass) which inherited PracticeTest class(childclass). I'd faced question regarding my pass year question. In fact, we are allowed to declared like this Task aTask = new PracticeTest(); But i wonder why we are doing this way? Thanks for advance explanation. | |
I want to get all the vertices from an ARC. I have all the data (for ex : start point, end point, start angle, end angle, radius) which will used to draw an arc but my need is I have to generate all the vertices from the arc data. I … | |
I keep getting this error message when I try to run ----jGRASP exec: java DomParserExample Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:615) at DomParserExample.getIntValue(DomParserExample.java:152) at DomParserExample.getAlbum(DomParserExample.java:111) at DomParserExample.parseDocument(DomParserExample.java:89) at DomParserExample.runExample(DomParserExample.java:35) at DomParserExample.main(DomParserExample.java:177) ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. Here is my code that I … | |
Hi! So yesterday when trying to run a program that previously ran perfectly, I received the error shown in the title and I've no idea why. Nothing that could have caused such error was changed, so I've absolutely no idea what the problem could be. Here's the code the error … | |
Hi I'm new to this forum and to java, I have some work to do which requires that I have to write a program that reads in a list of whole numbers and that only even numbers in the range 1-100 are accepted and both 'N' and 'n' terminate the … | |
Hi every one, i have been given an assignment, and i need your help in making the programme. The question is Write a program to simulate a lottery game where a set of the lottery numbers includes 6 different numbers from 1 to 49. A possible run may look e … | |
Hi I'm not even sure what you call this kind of thing but I believe 'InDesign' by adobe does this to some extent. I'm looking for a HTML/CSS/Javascript editor all in one. Basically I want to be able to type my HTML/CSS/Javascript code in one screen and see the results … | |
I am trying to implement meeting scheduling algorithm. I want to randomly generate meetings and store it in a file. Then read this file in another code, create different agents who will try to schedule these meetings. My input meeting file is as follows: 1 20 25 [1 2 3 … | |
Hi, so I've got this multithreaded server which correctly waits for clients and assigns them to a worker thread. From there, the client is sent an object `Packet` which contains variables `Player` and `Round` (simplified, it contains more data but these are the most important). I'm building a simple top … | |
write a java program that reads integers only from a text file"myData.txt", square the integers and then ends the result to an output file "output.txt".the program should be able to skip text characters in the file and square only integers | |
hi ! Anyone can tell me how can i get the value of dynamic textbox on jsp page. If i'll use request.getParameter("elementName"); here as text box will be generated dynamically i can't assign name of the text box . Pleeeeeeeeeeeeeeeeeeeeeeez help !!! Thanks :) | |
hello everybody ^^ I have to make a calander ,and to let the user to insert any event ! the calander it self is working <<but I don't know how can I write the code to give the user the ability to enter a new event by entering some fields … | |
I have to draw an image using Graphics and Graphics2D. The image is Monstercat How would you guys suggest I do the parts that have several curves to them? Do I use multiple QuadCurve2D or is there a way to do it in one method? ![monstercat_logo_vector_by_lmw_ybc-d63hlvv.png](/attachments/large/4/d4b5cb7925e7eff4a402233b59be737f.png "align-center") On a side … | |
Hello Everyone. I am wondering if anyone has any experience working with Korean characters. I attempted to find out how to split them up, but I have had no success thus far. What I was thinking is having a character like "안" and having it split up into "ㅇ", "ㅏ"and … | |
Hi. I'm using 3 classes: the Character class, the Scanner class, and the Test class. This is the Character class: public class Character { private char cargo = '\u0007'; private String sourceText = ""; private int sourceIndex = 0; private int lineIndex = 0; private int columnIndex = 0; public … | |
hi everyone i am building this java command line game. it is called counting numbers game. here is the detail descripbing of the game This game consists of 10 questions which are broken down into 3 game rounds. See below for rules regarding the game rounds: Round 1 This round … | |
I'm attempting to make a small program that when a user inputs a string, it counts all the letters. Here's what I've got so far: import java.util.Map; import java.util.HashMap; import java.util.Set; import java.util.TreeSet; import java.util.Scanner; public class LetterTypeCount { public static void main(String[] args) { // create HashMap to store … | |
So I'm building this pretty simple top trumps card game as part of an assignment. I have the game logic built, the swing GUI is in place and I plan to do all the calculation on the server app and have it update the client up with the game's state, … | |
I am working on an assignment for my object oriented programming class, it is a very simple program, but it has raised a question. My assignment is to create a rectangle class where I just assign points. The thing is we write our programs with notepad and run them through … | |
** I was building a program that is supposed to paint an image in a JPanel. I should be able to select an image (such as a JPEG) from the Open item in the File drop down menu and then it should be visible in a new window. However, the … | |
Hi! Basically I am trying to add the graph inside the Jpanel which already exists. I am getting the erorr "adding a window to a container" Here is my code public void displayGraph(){ try{ String sql = "Select pressure, ventilage from statstbl"; DBCon conn = new DBCon(); JDBCCategoryDataset dataset = … | |
import java.util.*; import Jama.Matrix; import java.util.*; import Jama.Matrix; public class Suceses { public static void main(String[] args) { System.out.println("회전할 각도를 입력하시오 :"); Scanner a = new Scanner(System.in); int kakdo = a.nextInt(); System.out.println(a); double rad = (kakdo*Math.PI)/180; int x= 50; int y= 30; Matrix A = new Matrix(new double[][] { {Math.cos(rad),Math.sin(rad)}, … | |
I am new to OOP, i am not sure if this is the correct approach or not. Need some insight. Assignment 3 Write a class named CreditCard that has (at least) the following member variables: name. A String that holds the card holder’s name. cardNumber. A field that holds the … | |
Implementation of ADT Tree (array) to perform the following operations on an ordered general tree a. create a tree (which is initially empty) ... max of 2 levels only b. leftmost child (n, T) - returns the leftmost node in the tree T c. right_sibling(n,T) - returns the right sibling … | |
When launching exe file, I am getting the following error, 'The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted. The system cannot find the path specified'. No issues with Environment settings. Can you please help on this. This is really very urgent issue. Kindly … | |
I'm trying to make a program that removes all occurences of a specified string from a text file. I'm having trouble with tying in everything to make it work, so that the user is prompted to enter a string. This is what I've got: import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; … |
The End.