31,001 Topics

Member Avatar for
Member Avatar for tenoran

Thanks for reading my post. I would like to make a maze of pacman game with Java. I just want to load the maze from txt file, "pacman.txt" ,into program and show it upon the screen with applet. Usually, maze part would not be made or read in my way, …

Member Avatar for Phaelax
0
119
Member Avatar for server_crash

I can't get this code to compile, and I'm really pissed....Someone please help: [Code] import java.io.*; import java.util.*; import static java.util.concurrent.TimeUnit.*; public class ScheduleTester { public static void main(String[] args) { /** Get a scheduler **/ ScheduledExecutorServer scheduler = Executors.newSingleThreadScheduledExecutor(); /** Get a handle, starting now, with a 10 second …

0
73
Member Avatar for stupidenator

Hey all, For sort of a final project, I want to build a program in Java (if it's possible) that works much like the GMail Notifier except I want to make it popup a notification if I receive a new email in my yahoo, hotmail, or google accounts. Does anybody …

Member Avatar for jwenting
0
223
Member Avatar for shak187

hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much apprieciated or can ne1 give me some complted java code to look at

Member Avatar for shak187
0
1K
Member Avatar for acee

Working on a problem which uses a main only to implement Selection Sort. You enter arbitrary amount of integers and when the program runs it spits out the integers in increasing order. So the output would be something like this: Enter Integers to sort: 3 > 1 > 8 > …

Member Avatar for shyammurarka
0
404
Member Avatar for sydneyrustle

hi just wondering if anyone can help me out. i need to create a loop to display 50 roll of two dice?? i keep getting an infinate loop and i don't know how to limit it to 50.....

Member Avatar for sydneyrustle
0
153
Member Avatar for sensi

hi, i have been asked to create a class, TestStudentContactDetails, which uses another classes method. the first class StudentContactDetails contains a method emailAddress(String RegNumber, String Course). This method takes the Course code supplied and opens a csv file stored at c:\UserFiles. It then searches the file for an entry corresponding …

Member Avatar for Phaelax
0
228
Member Avatar for paradox814

When I open a Java Program, I want a method which returns true if the program is already running, and false otherwise. Is there a way to check for this? For example, say we open our web browser, the first time we open it, i want the method to return …

Member Avatar for tonakai
0
178
Member Avatar for Ghost

Hi Everybody, I was wondering if anybody knew if you can controll hardware with Java (open the CD drive, etc.). Thank you in advanced, C++

Member Avatar for miri
0
136
Member Avatar for SSSBoy

Anyone know how to remove an object at a particular index from an array? Im doing a Noah's Ark project for my class and Im using an Array to hold the abstract animal class and once an animal dies, I have to remove it from the list. However I can't …

Member Avatar for miri
0
233
Member Avatar for vex

What development kit is the most widely used? Which is the easiest to use? Thanks in advance

Member Avatar for miri
0
254
Member Avatar for dakkar

1) I've a form that takes some input (various fields) I must use those fields as fields of a record of a simple XML database file. Mi xml file is like: <database> <record id="1"> ...my fields... </record> <record id="2"> ...my fields... </record> ... </database> I simply must add a "new …

Member Avatar for miri
0
168
Member Avatar for Lalli10

Thing is I want a small painted ball to travel from point A to Point B combined with a timer so I can see it move. I know the mathematical side of the problem and have come up with this: int abX = pointA.getX() - bointB.getX(); // abX is the …

0
100
Member Avatar for oberle1515

I need to find the square root of the following numbers 0,2,4,6,8,10,12,14,16,18,20 I know how to use the square root method I know how to use the loop function to find it for all numbers If I just wanted to print the numbers I can do this What I cant …

Member Avatar for oberle1515
0
140
Member Avatar for ultimate_fusion

i had an eariler problem and posted it here [url]http://www.daniweb.com/techtalkforums/thread22426.html[/url] I have to read a file in format char, int, string, string string(but i dont know how many strings(words are on the end). I can get the char and int(the code is on the link above) and one strings(word) but …

Member Avatar for paradox814
0
94
Member Avatar for Ghost

Hi Everybody, I was wondering if there was a way to take a string in a java project and put it in the username field (like the field on [url]http://www.inquiryBio.com/WEBPROTECT-job.htm[/url] ) of another program. I think you may have to access another class somewhere else.Just so you know... I'm doing …

Member Avatar for paradox814
0
230
Member Avatar for server_crash

This is kind of a weird senario. This question was at the java state championship I was at a few weeks ago. Here was the question: Which type of class cannot be instantiated: abstract static (choices I can't remember..they were wrong) Would both abstract and static be correct answers? I've …

Member Avatar for server_crash
0
1K
Member Avatar for dakkar

I've a problem with some code, this is the "core" of the code: [CODE] File xmldocFile = new File(xmlFile); File schemaFile = new File(xsdFile); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setValidating(true); SchemaFactory sf = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema"); Schema mySchema = sf.newSchema(schemaFile); dbf.setSchema(mySchema); DocumentBuilder db = dbf.newDocumentBuilder(); ErrorChecker errors = new ErrorChecker(); db.setErrorHandler(errors); …

-1
75
Member Avatar for stupidenator

I just have a quick, dumb question about interfaces... What are they? I mean my teacher has been trying to explain them and I didn't pick up on that and then I read about them in a Java book and on the internet, but it's still just not clicking. I …

Member Avatar for stupidenator
0
149
Member Avatar for Harvester

So there are test results in a txt file. (In this format: student id (int), First Name (String), Last Name (String), points (double). One student/line). I need to make an ArrayList<Student> using the txt file (Student has a student id, first name etc.), . I know how to read the …

Member Avatar for Harvester
0
150
Member Avatar for JGee

I am new to programming and I kind have got myself into a bet with a mate that i can create a basic program in three weeks. The program needs to be able to show a missile launching from country to country and exploding. It needs to miss about 40% …

Member Avatar for dakkar
0
196
Member Avatar for jengels

I have a text file that looks like this, John, 27, Kids, Married Jane, 22, No Kids, Single and so on... I have read in the text file as seen below, Scanner scan = new Scanner(System.in); System.out.print ("Enter the name of the input file: "); fileName = scan.nextLine(); fileScan = …

Member Avatar for paradox814
0
112
Member Avatar for bob901

hey all :) i locked some files using win rar and cant remember the pass lol, so heres my qu, can you make a password cracker in java for it, if so can someone tell me how stpe by step :).

Member Avatar for bob901
0
312
Member Avatar for nabil1983

Does ne one know how to answer this question? Discuss the truth or otherwise of the statement “Recursion and loops are the same thing".

Member Avatar for paradox814
0
282
Member Avatar for Phaelax
Member Avatar for dakkar
0
139
Member Avatar for phani.n

wat exactly servlets are? how r they used in java? wat r the real benefits by using java servlets? give a detailed theory and example for servlets in simpler words.

Member Avatar for dakkar
0
147
Member Avatar for nabil1983

Can someone explain this sort algorithm to me and how i can make a more efficient version, justifying the changes. for (int p = 0; p<n-1; p++) for (int counter = 0;counter < n-1; counter++) if (a[counter]> a[counter+1]) swap(a, counter, counter+1); Apreciate all help.

Member Avatar for jwenting
0
151
Member Avatar for phantomlady

Hi, newbie question, Im trying to get a thumbnail picture on a html page to open a seperate (sized browser window (about 300/300 or so)-view Large version of the thumbnail. I'd like to specify a background image (if possible), but just trying to get an image to open first of …

Member Avatar for phantomlady
0
142
Member Avatar for jmozzie

I have until Monday at 3:00 pm to get this chat client working. I have been at this for 2 weeks, now. I have finally given in to asking for help. I'm trying to convert the following specs into code: 1. In the launchFrame method, you need to make the …

Member Avatar for jmozzie
0
160
Member Avatar for ultimate_fusion

I have to read a file in format char, int string. I can easily do it in the form - int int, string e.g. 12 34 the cat sat on the mat(which is what I want to process and output) code below. [code] tokenType = inputStream.nextToken(); while (tokenType != StreamTokenizer.TT_EOF) …

Member Avatar for server_crash
0
597

The End.