Thanks to everyone that helped. Worked fine!
Type: Posts; User: jjd712
Thanks to everyone that helped. Worked fine!
Hey guys, in my journey through java i ran in to a bit of a problem.
How do i rearrange a array?
// Enter values to test here
String[] s = { "from", "first", "to", "last" };
...
import java.util.*;
import java.io.*;
public class TEster {
/**
* @param args
*/
public static void main(String[] args) {
int x;
char Guess;
yeah i caught myself with e and f. that is fixed now. removing the.java worked and the code ran without errors. Thanks a bunch!
Here is the code that is giving me problems. im trying to write code that will find the distence between two points. but i get the cannot find symbol error on lines 27-29(when i start doing math).
...
Ok, ill try and find one that works.
Thanks for the help.
Um i.. don't know. :confused:
This might help, its all i'm really given
1411
um, i did not add a import statement b/c i assumed the complier in eimacs already had that. I would need to use
import java.lang.Math; right?
// Enter a value to test here
double a =6.05000001 ;
double b;
// Enter your code here
b = Math.round(a,1);
After running this error occurs:
TC1.java:16: cannot find...
Some background... this is my second week in java and so far its going great in my comp sci class, but some of the eIMACS labs are killing me.
In the following code segment, a and b are...