Hey actually it did work out...sorry the first time I tested it my program had problem in another part that I didn't notice...but now I figured out what the problem was, it works just fine :)
thanks...
Type: Posts; User: ashl7
Hey actually it did work out...sorry the first time I tested it my program had problem in another part that I didn't notice...but now I figured out what the problem was, it works just fine :)
thanks...
yeah
but I'm looking for a way to display all the elements of the array on JTextField
like this:
a1jTextArea.setText(a[1].toString + " " + a[2].toString+ " " +.........a[10].toString)
which...
tnx, but didn't quite get that: you mean like this: a1jTextArea.setText(a[1].toString);
any idea about the other questions?
I guess I need your help again!
this is the code for my Rational class that I asked in the first post, which is perfectly fine :>
public class Rational{
private long numerator;
...
hmm, thanks much...got it!
now why does it have to be "public static" and not just public?
no wasn't trying to implement Comparable interface...I deleted that part from my program....just want to make a regular method to compare two rationals!
hmmm, tnx
I'm not finished with this one yet! I will add those methods later, but it won't give me a compile error, or run error later if I don't add them right?
also, I made this method for...
Hi...been a while, but I was working on my code, and learned some new stuff!!
I've wrote this code so far:
public class Rational extends Number implements Comparable<Rational>{
...
um I know why it's not a value, cuz it's a reference variable! that's not what my question is about, I'm more asking for a solution to get a rational number by calling a constructor Rational!
I have...
Hi, although by now I know enough about making methods and constructors, they're definition...I don't know why I have problem with this exercise of my teacher...now I don't want anyone to write the...