Forum: Java Nov 9th, 2006 |
| Replies: 1 Views: 1,101 Can you clarify what you are asking?
Thanks |
Forum: Java Oct 31st, 2006 |
| Replies: 7 Views: 2,537 No I think you're mistaken, no one is gonna give you an idea, you have to come up with one on your own. |
Forum: Java Oct 16th, 2006 |
| Replies: 2 Views: 1,979 Isn't most of swing built on top of AWT, so essentially if you use swing you're using both. |
Forum: Java Oct 13th, 2006 |
| Replies: 3 Views: 1,569 What are the errors you are recieving if any, or is it just not doing what you want it to do. |
Forum: Java Oct 2nd, 2006 |
| Replies: 2 Views: 3,445 what exactly are you having problems with? |
Forum: Java Sep 21st, 2006 |
| Replies: 5 Views: 2,146 look at what I said, . Note keywords might, and glanced over it quickly. Just trying to help out the google impaired. TY |
Forum: Java Sep 20th, 2006 |
| Replies: 5 Views: 2,146 this might be good, didn't really read it just glanced quickly at it http://www.javaworld.com/jw-03-2000/jw-03-xmlsax.html .
But for more information try this.... |
Forum: Java Sep 20th, 2006 |
| Replies: 7 Views: 2,723 There is a string method charAt that you can use to do it without arrays.
So:
for(int i = s.length(); i >=0; i--){
System.out.print(s.charAt(i);
}
System.out.println(); |
Forum: Java Sep 20th, 2006 |
| Replies: 6 Views: 5,251 Well it should be the way you format the output string, so someone enters a 4 and it prints out a triangle with a height of 4, so for the top you would print out System.out.print 3 times (n-1) (which... |
Forum: Java Sep 18th, 2006 |
| Replies: 1 Views: 941 Have no modifiers, so basically it's just a class that holds values (i'm guessing) and you can use them, also you can use the final keyword on the variables so they can't be changed, hope that helps. |
Forum: Java Jul 25th, 2006 |
| Replies: 1 Views: 957 |
Forum: Java Jul 21st, 2006 |
| Replies: 3 Views: 2,292 You should look into Killer Game Programming in Java, it is good:
http://www.amazon.com/gp/product/0596007302/102-1076836-1048938?v=glance&n=283155 |
Forum: Java May 22nd, 2006 |
| Replies: 9 Views: 1,645 Once you read in the data, go string by string and use StringTokenizer to get each element of the line, and depending on which token it is test it with the right data (meaning the data for the... |
Forum: Java May 22nd, 2006 |
| Replies: 4 Views: 1,027 I would have went with B because actionlistener is listening for events during an execution like button clicks etc...
WindowListener listens for changes to the window like size and stuff:... |
Forum: Java May 11th, 2006 |
| Replies: 3 Views: 4,214 Here is a way that you can do it:
public class Decifrac{
public static void main(String[] args){
int a = 9;
int b = 8;
double c = ((a * 1.0)/b) ;
System.out.println("You... |
Forum: Java May 8th, 2006 |
| Replies: 3 Views: 5,173 |
Forum: Java May 8th, 2006 |
| Replies: 3 Views: 5,173 Hello,
I was wondering if there was a way to find how many lines there are in a text file, and if so can you find out how many lines in the text file start with a particular word (an identifier).... |
Forum: Java May 3rd, 2006 |
| Replies: 4 Views: 1,574 |
Forum: Java Apr 18th, 2006 |
| Replies: 5 Views: 1,721 Well I did try to use javadoc through using the command line in Dos, and it gave me the same error, not really an issue of eclipse, something wrong with javadoc. And after unistalling everything and... |
Forum: Java Apr 17th, 2006 |
| Replies: 6 Views: 19,230 Ok, yeah, so it is kind of like a permutation of the numbers.
So, think of the base case and recursive case. So the base case is when there is 1 value left, and the recursive case takes out one of... |
Forum: Java Apr 17th, 2006 |
| Replies: 6 Views: 19,230 You want to use a StringTokenizer. So and them together.
So:
String head = "47 23 2 5 98";
String returnHead = "";
StringTokenizer s = new StringTokenizer(head, " ");
while(s.hasNextToken()){... |
Forum: Java Apr 17th, 2006 |
| Replies: 5 Views: 1,721 Well apparently this happens to some people, and no one seems to have an answer except to install Java 1.4.2_11 SDK and use its javadoc, which should work. I did that and it javadoc works fine for me... |
Forum: Java Apr 14th, 2006 |
| Replies: 2 Views: 1,142 I dont know if this is the right place for you to be posting this. But search google for a cell modding forum, I know there is one somewhere, that might have more information on what you are trying... |
Forum: Java Apr 12th, 2006 |
| Replies: 5 Views: 1,721 this is the error report from eclipse:
Loading source file C:\Documents and Settings\myname\workspace\text Scrambling Meme\Disk.java...
Constructing Javadoc information...
Standard Doclet... |
Forum: Java Apr 12th, 2006 |
| Replies: 5 Views: 1,721 Hello everyone,
I am having trouble getting my Javadoc to work. It runs but it doesn't show anything in the HTML file that it creates. BTW I am using java 1.5.0_6 and I am using the latest... |
Forum: Java Apr 9th, 2006 |
| Replies: 3 Views: 4,681 I actually found a better way to do this problem, less chaotic as the way I was doing it.
Here is the source for it:
public class StringPerm {
private int count = -1;
private int... |
Forum: Java Apr 7th, 2006 |
| Replies: 2 Views: 1,251 What are you trying to do exactly. Are you doing a console app with JOption pane that will write to the console or do you want it to show up on like a GUI?, both are pretty simple. If you are just... |
Forum: Java Mar 29th, 2006 |
| Replies: 4 Views: 2,830 |
Forum: Java Mar 29th, 2006 |
| Replies: 9 Views: 8,533 these two pages from the Java API should help you figure out how to change the cursor. Just make a mouselistener for the area that you want the cursor to change and change the attributes of the... |
Forum: Java Mar 29th, 2006 |
| Replies: 4 Views: 2,830 first, you have a lot of if/else statemets that go on for more then 1 line so you need brackets. I ususual bracket no matter what just to be on the safe side. Another thing with the return... |
Forum: Java Mar 29th, 2006 |
| Replies: 2 Views: 4,854 o yeah, you can also look at the java api, it's very useful to figure out how to make objects work.
Here is the one for the listbox:
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/List.html |
Forum: Java Mar 29th, 2006 |
| Replies: 2 Views: 4,854 Have to add an eventListener to your code so you can use it.
Take a look at my calc app i made for a project, I used a listbox. |
Forum: Java Mar 29th, 2006 |
| Replies: 3 Views: 4,681 Hi, i was writing a program to make permutations of strings, but I ran into a snag and can't figure out what's wrong. It prints out the permutated strings, but some of them are duplicates.
I... |
Forum: Java Jan 6th, 2006 |
| Replies: 3 Views: 1,819 |
Forum: Java Jan 5th, 2006 |
| Replies: 3 Views: 1,819 I was wondering if it would be possible to access the contacts list for a particular user over a pop server. Does anybody know if this is possible?
Thanks |
Forum: Java Dec 8th, 2005 |
| Replies: 1 Views: 13,643 Is there a way to convert a double to string. I tried to do it like this x.toString() and it didnt work as well as implicitly converting it. |
Forum: Java Oct 13th, 2005 |
| Replies: 4 Views: 1,527 yeah that's what i did but not wat i was having a problem with, but it was a stupid error and i thought it was with the if statement. |
Forum: Java Oct 5th, 2005 |
| Replies: 4 Views: 1,527 Ok, problem solved, it wasn't the if statement, I was actually incrementing the years twice so it was giving me some funky data, and the second incrementation was done in a weird place so I didn't... |
Forum: Java Oct 4th, 2005 |
| Replies: 4 Views: 1,527 Hello,
I am having a problem with %. I am trying to find all the years from 1628 to 2005 that are divisible by 15, so I did this:
if((year % 15 == 0) || (year % 100 == 0) || (year == 2005)){... |
Forum: Java Sep 15th, 2005 |
| Replies: 8 Views: 4,306 OK i got it, in the internet controls, where you can check off the options there was a check box for it that was un checked. |