It does not have a GUI. Is there a way to make it open automatically on double click for a console app?
Type: Posts; User: bdennin
It does not have a GUI. Is there a way to make it open automatically on double click for a console app?
Oh. I can run it from console fine.
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...
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...
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",...
This is my problem. I want the getMethod to return the overrided toString() of MyObject.
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
{
...
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......
The above should not give a compile error.
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...
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...
I just extended Shapes with Printable. Problem solved.
String.format("%.1f", hypotenuse);
Ahhh, so easy. I can't believe I didn't think of that. Thank you, as always.
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;
...
yes :), I just wanted to see what someone thought about my comments, if it looked right, or if there was anything they would critique.
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...
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...
Um nevermind
public static int Count( ArrayList<Student> studentList )
{
int j = 0;
for( Student s : studentList )
{
j = j++;
}
return j;
}