Search Results

Showing results 1 to 25 of 25
Search took 0.01 seconds.
Search: Posts Made By: Iron_Cross ; Forum: Java and child forums
Forum: Java May 16th, 2005
Replies: 18
Views: 12,814
Posted By Iron_Cross
What is the code you're running. I think I might know what your problem is, but I have to see the code you're using to confirm my suspissions.
Forum: Java May 13th, 2005
Replies: 14
Views: 2,533
Posted By Iron_Cross
Strings are immutable. Meaning you can NEVER change them.
So if I do this:

String s1 = "Pig";
s1 += "Horse";

I've just made 3 permenant strings. I've made "Pig" "Horse" and "PigHorse". All...
Forum: Java Mar 10th, 2005
Replies: 26
Views: 8,208
Posted By Iron_Cross
jext.org was made in java...I believe netbeans.org was made in java. Those are not ones I made, but you'll see the capabilities of Java by looking at them.
Java is a very powerful language, just put...
Forum: Java Oct 14th, 2004
Replies: 9
Views: 4,485
Posted By Iron_Cross
So long as you have an instance of the second internal frame in the class with the listeners it shouldn't be that hard. If worste comes to worste make the instance of the second internal frame...
Forum: Java Oct 14th, 2004
Replies: 7
Views: 5,106
Posted By Iron_Cross
If you're having trouble try reading in the integers into an array. Or you could turn the string into an array with the CopyTo() method or ToArray() methods.
Forum: Java Sep 6th, 2004
Replies: 4
Views: 3,097
Posted By Iron_Cross
go to www.seclude.org it's an entire messaging system, like aim or msn or whatnot. It's written in Java, and it's fully open source and free to download. It also implements some very advanced...
Forum: Java Sep 6th, 2004
Replies: 5
Views: 3,955
Posted By Iron_Cross
No it's not. The closest thing you'll be able to do is to use a HashMap. Which is a list of key/value pairs. The string would be the key, and the object would be the value.


public class HashTest...
Forum: Java Aug 20th, 2004
Replies: 3
Views: 2,219
Posted By Iron_Cross
have you tried something like System.exec("fileName.exe");
Of course, from an applet you couldn't do this unless you were granted full permissions in security.
Forum: Java Aug 16th, 2004
Replies: 4
Views: 6,689
Posted By Iron_Cross
Yeah. I'd suggest using the 1.4.2 or 1.5.0 packages (which include the awt and swing packages). Unless you're building an applet, then I'd stick to the 1.1 packages.
Forum: Java Aug 16th, 2004
Replies: 4
Views: 17,092
Posted By Iron_Cross
Do you mean an engine? If that's what you mean, then just search google for a Java Game Engine you'll find tons of free ones. Otherwise, I'm not sure I know what you mean. :P
Forum: Java Aug 14th, 2004
Replies: 4
Views: 6,689
Posted By Iron_Cross
http://java.sun.com/
If you think I'm being stupid, just search there. I swear they have better tutorials there than anywhere else on the web.
Forum: Java Aug 14th, 2004
Replies: 2
Views: 4,478
Posted By Iron_Cross
Ok dude, first you need to use the [*code] and [/code] tags...

// import java.io package and utility packages
import java.io.*;
import java.util.*;

class Stopwatch{

//declared outside...
Forum: Java Aug 8th, 2004
Replies: 2
Views: 3,371
Posted By Iron_Cross
Yeah, I think it depends on which peice you're wanting to talk to.
Forum: Java Aug 5th, 2004
Replies: 1
Views: 2,723
Posted By Iron_Cross
Dude, put your code inside the [*code] and [/code] tags (remember to remove the *). And also, you can check in here for the modified code, no one is going to e-mail it to you. That's just rude of...
Forum: Java Aug 4th, 2004
Replies: 4
Views: 4,123
Posted By Iron_Cross
You need to add it to your system variables. It depends on what OS you're running as to how to do this. Or you could just type in the full path name like:

C:\Program...
Forum: Java Aug 4th, 2004
Replies: 3
Views: 3,603
Posted By Iron_Cross
rickste_r,
Don't give out homework for free! They're never going to learn anything if you do it for them. There is nothing wrong with helping them, but DON'T do it for them!
And also, use the...
Forum: Java Aug 4th, 2004
Replies: 1
Views: 5,293
Posted By Iron_Cross
A string tokenizer will separate that long string in an array of small strings.
I.e.
If you had the string "My@Name@Is@bobby@!" (that's not my name btw ;) ) and you set up a string tokenizer to...
Forum: Java Aug 4th, 2004
Replies: 2
Views: 7,777
Posted By Iron_Cross
Here's the modified code

import java.io.*;
public class Quiz
{
public static void main(String args[])
{
int correctCounter;
InputStreamReader reader;
BufferedReader buffer;
Forum: Java Aug 4th, 2004
Replies: 10
Views: 10,500
Posted By Iron_Cross
Dude, 2 things.
1. Put your code into the [*code] and [/code] tags (remove the * though)
2. Don't just give him the answer to his homework, what good will that do him. You can help him and give...
Forum: Java Aug 3rd, 2004
Replies: 1
Views: 4,788
Posted By Iron_Cross
Make MasterMind. Or choose a simple board game like Othelo. That should get you thinking.
Forum: Java Aug 3rd, 2004
Replies: 2
Views: 4,984
Posted By Iron_Cross
Not that I know of, unless you're using something like a factory that would programatically choose from a list of predefined choices...You're going to need something to start with.
Forum: Java Mar 31st, 2004
Replies: 2
Views: 6,221
Posted By Iron_Cross
It seems to me, you could use spaces as a tokenizer deliminator. Then just use substring searches to find out if a string containts : or stuff like that, then delete that character. Then it's just a...
Forum: Java Mar 31st, 2004
Replies: 1
Views: 4,867
Posted By Iron_Cross
Ok, this is an extremely stupid question, and I feel retarded for asking, considering how much I've been studying Java. But anyways, here goes.

Let's pretend I've created three classes, Class A,...
Forum: Java Oct 16th, 2003
Replies: 6
Views: 3,941
Posted By Iron_Cross
This might work. Have a different class for each "type" of enemy. Each "type" of enemy can pull random weapons, items, etc. But then make an array of classes, and whenever you want to make a new...
Forum: Java Oct 16th, 2003
Replies: 1
Views: 11,668
Posted By Iron_Cross
Couldn't you just do something like


if(artistName.equals("artistCD")){
//do something if it's true
}else{
//do something if it's false
}

where artistName is a variable for the...
Showing results 1 to 25 of 25

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC