Forum: Java May 28th, 2009 |
| Replies: 6 Views: 676 It all depends, if you want a numerical analysis approach it is a piece of ****. i.e using the trapezium rule for integration.
Something more than that, such as mathematica's engine would be a lot... |
Forum: Java Jan 15th, 2009 |
| Replies: 4 Views: 1,184 Delete it.
Also consider formatting your code properly:
package employee_pay;
import java.util.Scanner;
public class pay |
Forum: Java Feb 3rd, 2008 |
| Replies: 1 Views: 1,763 Why are you using a 2d array?
A class would be perfect here. |
Forum: Java Jan 10th, 2008 |
| Replies: 19 Views: 1,751 So print a single space instead of a 'O'. You know how to do that right?
import java.util.*;
public class Crap
{
public static void main ( String[] args )
{
String[][] matrix =
... |
Forum: Java Dec 17th, 2007 |
| Replies: 6 Views: 1,025 So is your class file in the same directory as your htm file? |
Forum: Java Dec 9th, 2007 |
| Replies: 10 Views: 2,331 Nope, it proposed installing the java vitual machine, I proposed using the java virtual machine. :) |
Forum: Java Dec 9th, 2007 |
| Replies: 10 Views: 2,331 Yes you can, just install the java virtual machine. |
Forum: Java Dec 9th, 2007 |
| Replies: 14 Views: 6,550 Why can't you just prompt for user input within the for loop? |
Forum: Java Nov 24th, 2007 |
| Replies: 7 Views: 4,385 >Now, my problem starts when I ask for the town to look for, since there are two-word towns (e.g. San Juan).
It's pretty simple. Read in the file as lines.
Take that line, assign it to a... |
Forum: Java Nov 18th, 2007 |
| Replies: 7 Views: 1,310 which one are you trying to do the Sierpinski Triangle? |
Forum: Java Nov 16th, 2007 |
| Replies: 2 Views: 2,931 Don't put conditions in for loops... Personally, I don't like how they read. It can be non-intuitive sometimes. |
Forum: Java Nov 10th, 2007 |
| Replies: 15 Views: 1,867 >is reassembled and bugged as below
Shouldn't you try and debug it then? |
Forum: Java Oct 27th, 2007 |
| Replies: 3 Views: 914 >How do i convert the following code to C++?
With ease if you are me. |
Forum: Java Oct 26th, 2007 |
| Replies: 7 Views: 1,407 You talking about tiger on the mac?
That looks cheesy. I would laugh if someone used that in their university project. |
Forum: Java Oct 24th, 2007 |
| Replies: 7 Views: 1,407 Add this to your code:
http://www.iam.ubc.ca/guides/javatut99/uiswing/misc/plaf.html
I know it works because I've used it myself with netbeans. |
Forum: Java Oct 5th, 2007 |
| Replies: 5 Views: 721 google multiplication table java
http://www.cs.utsa.edu/~wagner/CS1713/mult/mult.html |
Forum: Java Oct 5th, 2007 |
| Replies: 5 Views: 721 You will need a nested for loop. Which one inside the other. |
Forum: Java Sep 30th, 2007 |
| Replies: 4 Views: 7,148 Using an array isn't needed here. It unnecessarily adds to the space complexity problem. |
Forum: Java Sep 30th, 2007 |
| Replies: 2 Views: 636 What? Is that your entire code? |
Forum: Java Sep 29th, 2007 |
| Replies: 4 Views: 7,148 |
Forum: Java Sep 23rd, 2007 |
| Replies: 22 Views: 2,303 >Is there any other way where I can edit a table?
I don't think so...
You probably need to pipe out all the information from the table to an array or text file then delete that table then add... |
Forum: Java Sep 20th, 2007 |
| Replies: 7 Views: 1,013 Erm maybe because 08765 isn't an integer? |
Forum: Java Sep 14th, 2007 |
| Replies: 5 Views: 9,021 Why are you reading it as bytes.Read and write it as strings you hear me! |
Forum: Java Sep 10th, 2007 |
| Replies: 9 Views: 3,974 Oppsie, I misunderstood you, I thought you was asking how to get your button to show text, i.e create an event handler. :D |
Forum: Java Sep 10th, 2007 |
| Replies: 9 Views: 3,974 A good book is a good reference though, and you can always use that with help forums as well. |
Forum: Java Sep 10th, 2007 |
| Replies: 9 Views: 3,974 > where do I fit that code into my code iamthewee?
You need to create an event handler for the button. Maybe if I point you to a few tutorials kimmie.... |
Forum: Java Sep 10th, 2007 |
| Replies: 9 Views: 3,974 maybe?
http://examples.oreilly.com/jswing2/code/ch05/FancyButton.java |
Forum: Java Sep 10th, 2007 |
| Replies: 9 Views: 3,974 I don't think you would use buttons if you want to do that? |
Forum: Java Sep 10th, 2007 |
| Replies: 6 Views: 1,954 |
Forum: Java Sep 9th, 2007 |
| Replies: 6 Views: 1,954 >return Math.max(n1,Math.max(n2,n3));
What happens if you break that down.
int one = 0;
int two = 0;
one = Math.max(n2,n3);
two = Math.max(n1,one); |
Forum: Java Sep 9th, 2007 |
| Replies: 6 Views: 1,954 > the commented part is working perfectly (Line 19, 26), it can return the highest value...
Is it? If I remember correctly, finding the maximum of three numbers using only if statements is quite... |
Forum: Java Sep 4th, 2007 |
| Replies: 3 Views: 1,021 Why should we download a zip file that may contain anything from someone with only one post?
Try posting your source codes... |
Forum: Java Aug 18th, 2007 |
| Replies: 10 Views: 4,276 What don't you understand. Be more specific. |
Forum: Java Aug 11th, 2007 |
| Replies: 2 Views: 6,679 http://www.jguru.com/faq/view.jsp?EID=422110
http://www.rgagnon.com/javadetails/java-0114.html |
Forum: Java Aug 5th, 2007 |
| Replies: 3 Views: 688 Do you not have your class notes to read? |
Forum: Java Jul 24th, 2007 |
| Replies: 37 Views: 3,958 I would just use eclipse to make a GUI it is easier and more reliable. |
Forum: Java Jul 15th, 2007 |
| Replies: 8 Views: 1,068 What are you trying to do your code makes little sense? |
Forum: Java Jul 15th, 2007 |
| Replies: 37 Views: 4,772 Another point worth considering, is that you can interface your existing classes with the ArrayList.
That should afford greater flexibility in regards to adding, removing and storing custom... |
Forum: Java Jul 13th, 2007 |
| Replies: 37 Views: 4,772 >but I cannot find any examples of such a beast for me to learn and build off
There are so many, are you sure you have looked hard enough? |
Forum: Java Jul 12th, 2007 |
| Replies: 37 Views: 4,772 hint:is that how you declare an array in java? Or is it an array
String cdName[]; |