Search:

Type: Posts; User: bdennin

Search: Search took 0.26 seconds.

  1. Replies
    5
    Views
    371

    Re: How to make an executable .jar file?

    It does not have a GUI. Is there a way to make it open automatically on double click for a console app?
  2. Replies
    5
    Views
    371

    Re: How to make an executable .jar file?

    Oh. I can run it from console fine.
  3. Replies
    5
    Views
    371

    How to make an executable .jar file?

    I have my manifest file, I've used eclipse to export my .jar as an executeable, but when i double click it, it does nothing. I've tried making javaw.exe my default program to run the file. I've...
  4. Re: I need to retreive data from my constructor that does not have its own variable

    Basically nothing, except googling for hours with no result. I have no idea how to access the object without using inheritance, or setting another variable like private MyObject x; and then defining...
  5. Re: I need to retreive data from my constructor that does not have its own variable

    MyObject is a parameter of MyComposition. I didn't write the toString() method in this mock code, but it would look something like

    public String toString
    {
    return String.format( "%d, %d",...
  6. Re: I need to retreive data from my constructor that does not have its own variable

    Error
  7. Re: I need to retreive data from my constructor that does not have its own variable

    This is my problem. I want the getMethod to return the overrided toString() of MyObject.
  8. Re: I need to retreive data from my constructor that does not have its own variable

    Okay. Check it. I want the getMyObject() method to work without adding any new fields. I can do anything as long as it doesn't implement a new field.



    public class MyObject
    {
    ...
  9. Re: I need to retreive data from my constructor that does not have its own variable

    help
  10. Re: I need to retreive data from my constructor that does not have its own variable

    I want to get the input parameter ( my object which HAS A relationship ) by calling a get method.

    It's an assignment.

    I realize it would be incredibly easy to just define some variable......
  11. Replies
    3
    Views
    205

    Re: very noob question

    The above should not give a compile error.
  12. Thread: Method problem

    by bdennin
    Replies
    3
    Views
    223

    Re: Method problem

    Your squiggly braces are in disarray... always keep them nice and lined up so you can see where everything ends and begins. Something is wrong with your braces. They should look like this and your...
  13. I need to retreive data from my constructor that does not have its own variable

    I created a new object, and it is a parameter for a new constuctor. I can't define a value in the new constructors class for it to have a spot to save the information to, and for me to thus easily...
  14. [SOLVED] Re: How can I access my secondary interface method in my for loop?

    I just extended Shapes with Printable. Problem solved.
  15. [SOLVED] Re: How to make Math.round() round to the nearest .1?

    String.format("%.1f", hypotenuse);


    Ahhh, so easy. I can't believe I didn't think of that. Thank you, as always.
  16. [SOLVED] How to make Math.round() round to the nearest .1?

    I want round to round to the nearest 10th instead of the nearest integer... Any ideas?


    public class Triangle
    {
    private final int leg;
    private final double hypotenuse;

    ...
  17. Replies
    4
    Views
    230

    Re: Javadoc questions

    yes :), I just wanted to see what someone thought about my comments, if it looked right, or if there was anything they would critique.
  18. Replies
    4
    Views
    230

    Javadoc questions

    My teacher covered javadoc for less than 5 seconds and I've never done it. Would anyone mind looking at this to see if I did it okay? I'm not sure really what I'm exactly supposed to say for...
  19. How do you feel about my javadoc comments?

    Is there anything I'm missing, or anything I should add? Do I need to comment non public/private variables, such as the instance of random called, or my main method variables? My teacher is super...
  20. Replies
    1
    Views
    263

    [SOLVED] review questions

    Um nevermind
  21. Replies
    3
    Views
    251

    method always returns 0

    public static int Count( ArrayList<Student> studentList )
    {
    int j = 0;
    for( Student s : studentList )
    {
    j = j++;
    }
    return j;
    }
Results 1 to 21 of 23