Forum: Java Oct 8th, 2009 |
| Replies: 2 Views: 304 You will need a package called Filezilla.
Google it. |
Forum: Java Oct 5th, 2009 |
| Replies: 10 Views: 276 Well if your parser or whatever, requires it to be a String then convert it to a String. If not, you're good to go. |
Forum: Java May 28th, 2009 |
| Replies: 6 Views: 602 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 May 12th, 2009 |
| Replies: 13 Views: 841 Yeah, I've read stuff to do with Vernon's idea and creating hash tables etc. It probably has a better time complexity however, my idea is really really simple, and you've seen it doesn't take long at... |
Forum: Java May 11th, 2009 |
| Replies: 13 Views: 841 Not sure how quick Vernon's method would be but I know mine to be pretty fast.
Basically, you sort your scrambled word into alphabetical order.
For example "lorac" would be "aclor". We then... |
Forum: Java May 10th, 2009 |
| Replies: 14 Views: 835 OK you should have posted it using
package diningphilosophers;
class DiningPhilosophers
{
static Philosopher philosopher[];
static Forks forks; |
Forum: Java May 10th, 2009 |
| Replies: 13 Views: 841 I disagree, no matter how many enhancements you make, going down the permutation road isn't going to yeild satisfactory results.
Think letter frequency comparisons.
... |
Forum: Java Feb 4th, 2009 |
| Replies: 5 Views: 329 And what happens if he NEEDS to, then why not perform some error checking before conversion? |
Forum: Java Jan 15th, 2009 |
| Replies: 4 Views: 1,128 Delete it.
Also consider formatting your code properly:
package employee_pay;
import java.util.Scanner;
public class pay |
Forum: Java Nov 5th, 2008 |
| Replies: 10 Views: 787 I voted help me out because I thought the poll was about my mental health. |
Forum: Java Aug 29th, 2008 |
| Replies: 8 Views: 1,544 Google java rpn,
or shunting yard algorithm |
Forum: Java Feb 3rd, 2008 |
| Replies: 1 Views: 1,720 Why are you using a 2d array?
A class would be perfect here. |
Forum: Java Jan 28th, 2008 |
| Replies: 3 Views: 1,168 Is your file in the same directory as where you applet is? |
Forum: Java Jan 21st, 2008 |
| Replies: 8 Views: 1,085 Or you could just use an abstract data structure, such as a stack which is ideal for this, like Ezzaral suggested in post #6 |
Forum: Java Jan 13th, 2008 |
| Replies: 5 Views: 2,995 I'm sorry, but where is any mention of a mobile phone by the original poster? |
Forum: Java Jan 10th, 2008 |
| Replies: 19 Views: 1,739 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 Jan 9th, 2008 |
| Replies: 9 Views: 2,225 I used to use netbeans, but now I use eclipse. |
Forum: Java Jan 9th, 2008 |
| Replies: 5 Views: 1,807 You learn by your mistakes. |
Forum: Java Dec 30th, 2007 |
| Replies: 3 Views: 874 I would do it as such. Assuming you want the floating number to be displayed to only 2dp.
I would first, generate an integer between 1-9, then divide it by 10.
Then I would have a second... |
Forum: Java Dec 19th, 2007 |
| Replies: 3 Views: 678 No one is going to look at that without tags
And you need to pinpoint a specific issue you are having, not just post your entire code
If anyone else wants to look...
import... |
Forum: Java Dec 17th, 2007 |
| Replies: 6 Views: 1,015 So is your class file in the same directory as your htm file? |
Forum: Java Dec 9th, 2007 |
| Replies: 10 Views: 2,301 Nope, it proposed installing the java vitual machine, I proposed using the java virtual machine. :) |
Forum: Java Dec 9th, 2007 |
| Replies: 10 Views: 2,301 Yes you can, just install the java virtual machine. |
Forum: Java Dec 9th, 2007 |
| Replies: 14 Views: 6,353 Why can't you just prompt for user input within the for loop? |
Forum: Java Dec 3rd, 2007 |
| Replies: 4 Views: 1,387 Come up with some pseudo code... |
Forum: Java Dec 2nd, 2007 |
| Replies: 5 Views: 947 Yes, and the entire point of using public forums is so that others can peruse the code to catch any mistakes/bugs somebody might have have missed.
If you are worried someone else will steal your... |
Forum: Java Dec 2nd, 2007 |
| Replies: 9 Views: 1,257 > I dont know who that was who sent that.
Maybe it was your boyfriend, after all why else would he sign it off with Love northumbria university. :) |
Forum: Java Nov 24th, 2007 |
| Replies: 7 Views: 4,215 >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 19th, 2007 |
| Replies: 6 Views: 888 Yes it can work with both windows and linux, but like all things you still have to be careful.
You can still write code that is non-portable. |
Forum: Java Nov 18th, 2007 |
| Replies: 7 Views: 1,295 which one are you trying to do the Sierpinski Triangle? |
Forum: Java Nov 18th, 2007 |
| Replies: 5 Views: 5,349 >Is there a way to make a seperate ArrayList class that would call upon the Students
Just call it as something.idNum() or whatever... |
Forum: Java Nov 17th, 2007 |
| Replies: 10 Views: 1,374 No, = = didn't work at school or home. It was always wrong...
Next time listen to the experts, (i.e. us) and your problems will be solved more quickly. |
Forum: Java Nov 16th, 2007 |
| Replies: 10 Views: 1,374 Hmm I make it:
/**
* Brandon
* November 14, 2007
* TDEE
*/
import java.util.Scanner;
public class TDEE
{ |
Forum: Java Nov 16th, 2007 |
| Replies: 10 Views: 1,374 do you have a space between the equals signs? |
Forum: Java Nov 16th, 2007 |
| Replies: 2 Views: 2,822 Don't put conditions in for loops... Personally, I don't like how they read. It can be non-intuitive sometimes. |
Forum: Java Nov 16th, 2007 |
| Replies: 5 Views: 5,349 import java.io.*;
import java.util.*;
public class reader
{
public static void main ( String []args )
{
String[][] quizScores = new String[40][6];
{
try |
Forum: Java Nov 16th, 2007 |
| Replies: 5 Views: 5,349 No they are not.
Hint:
You don't need a nested for loop. |
Forum: Java Nov 10th, 2007 |
| Replies: 15 Views: 1,839 >is reassembled and bugged as below
Shouldn't you try and debug it then? |
Forum: Java Nov 8th, 2007 |
| Replies: 1 Views: 2,465 I would follow the outline of a good book.
There some good online tutorials too, but they're never the same as a well coordinated book. |
Forum: Java Oct 30th, 2007 |
| Replies: 4 Views: 1,083 I am unsure if this question belongs in this forum. Maybe you should also ask it in the troubleshooting forums. |