Search Results

Showing results 1 to 40 of 123
Search took 0.01 seconds.
Search: Posts Made By: verruckt24 ; Forum: Java and child forums
Forum: Java May 25th, 2009
Replies: 12
Views: 823
Posted By verruckt24
While compiling you need to specify the .java file, you are right on that part, but while running the file through the java command you cannot specify the .java file, such a file won't simply run,...
Forum: Java May 24th, 2009
Replies: 5
Views: 846
Posted By verruckt24
Thats because you haven't have implemented the toString method for your objects Address and Name. You need to implement them to define the behaviour of the toString method for your object. For e.g:...
Forum: Java May 22nd, 2009
Replies: 5
Views: 245
Posted By verruckt24
http://lmgtfy.com/?q=static+and+nested+inner+classes+java
Forum: Java May 19th, 2009
Replies: 5
Solved: Stacks
Views: 357
Posted By verruckt24
As hardik.rajani mentions there's is little programming "tradition" to this.

The concept of the Top of Stack is that the Top should always point to the uppermost/topmost element in the Stack.
...
Forum: Java Mar 22nd, 2009
Replies: 1
Views: 379
Posted By verruckt24
Read this (http://www.daniweb.com/forums/thread182326.html) thread.
Forum: Java Mar 22nd, 2009
Replies: 2
Views: 463
Posted By verruckt24
If you want to replace all the occurrences of the word take a look at the replaceAll method, else if you would just want to replace the first occurrence of it, use the replaceFirst method. If you...
Forum: Java Mar 21st, 2009
Replies: 7
Views: 427
Posted By verruckt24
You need to put the two abstract methods eat and move in the Animal class like :

public abstract void eat();
public abstract void move();


This is part of the "contract" of being an "Animal"....
Forum: Java Mar 21st, 2009
Replies: 7
Views: 427
Posted By verruckt24
@ClimaxBeetle: I appreciate your use of code tags in the very first post. But you haven't mentioned what your problem is, tell us why you have stuck.
Forum: Java Mar 19th, 2009
Replies: 6
Solved: Learning Swing
Views: 566
Posted By verruckt24
private JLabel celsiusLabel;
private JLabel fahrenheitLabel;
private JTextField tempTextField;
private JButton button1;

public static void main(String [] args){
new CelsiusConverterGUI();...
Forum: Java Mar 19th, 2009
Replies: 6
Solved: Learning Swing
Views: 566
Posted By verruckt24
> few different ways
And what were they ?

>how you would incorporate a main method into this program?
By writing:

public static void main(String [] args)
Forum: Java Mar 17th, 2009
Replies: 7
Views: 2,360
Posted By verruckt24
No I did not because I was short on time and used the short, regex, instead, see my previous post. ;)
Forum: Java Mar 17th, 2009
Replies: 7
Views: 2,360
Posted By verruckt24
What you could also do is read the file line by line, the same way as you are doing now and match a pattern in the read line using the String...
Forum: Java Mar 16th, 2009
Replies: 9
Views: 449
Posted By verruckt24
This is pretty straightforward. you just need to convert these conditions into langauge syntax. You would need an if construct over here and since you need to check both the numbers you need a...
Forum: Java Mar 15th, 2009
Replies: 9
Views: 449
Posted By verruckt24
>If both numbers entered are over 100, then subtract 100 from each
>If both numbers are negative then add 200 to their sum.

Isn't this what you want to put in in the loop ?
Forum: Java Mar 15th, 2009
Replies: 9
Views: 449
Posted By verruckt24
>I am getting an error for the last line it is saying the maxOutput and minOutput can't be resolved.

Thats quite accurate on the part of the compiler. The reason it says this is because of this :...
Forum: Java Mar 15th, 2009
Replies: 3
Solved: what's wrong?
Views: 294
Posted By verruckt24
>i create another constructor in d class and declare another statement outside the loop..

Are you creating another instance of 'fermi', I am not sure how that helps, but anyways if it solves your...
Forum: Java Mar 15th, 2009
Replies: 9
Views: 449
Posted By verruckt24
Instead of giving us th broad description of what you were supposed to do to start out with, where we have to figure out each and everything like the logic, methods, variables etc., give us directly...
Forum: Java Mar 15th, 2009
Replies: 3
Solved: what's wrong?
Views: 294
Posted By verruckt24
The problem is you declare 'give' inside this while loop while(quit !=-1) but then this loop ends at the '}' after give.totalPlay();, so that the 'give' variable goes out of scope and at this...
Forum: Java Mar 12th, 2009
Replies: 3
Views: 271
Posted By verruckt24
System.out.println("Enter the name of the lab this computer is located: \t"); }


Remove the '}' in this line that is what causes the previous while loop to terminate "prematurely" and on the next...
Forum: Java Mar 12th, 2009
Replies: 15
Views: 994
Posted By verruckt24
>I found the best book to be google
Yes but sometimes you need a flow to what you are reading which is hard to get given the fact that you are looking up different articles written by different...
Forum: Java Mar 11th, 2009
Replies: 15
Views: 994
Posted By verruckt24
>I hate how resource hungry some java programs can be
Thats the thing from the Ice age. Now Java can really be as fast and efficient as some of the native language code.

>I did some searching...
Forum: Java Mar 11th, 2009
Replies: 4
Views: 1,212
Posted By verruckt24
Mark the thread as solved if it is.
Forum: Java Mar 11th, 2009
Replies: 3
Views: 347
Posted By verruckt24
for (guesses=0; guesses <= ichances; guesses++);


The semi-colon [;] at the end of the for loop makes this happen, remove it.
Forum: Java Mar 11th, 2009
Replies: 8
Views: 884
Posted By verruckt24
There are three methods in MouseEvent which could be of particular help, getX() (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/MouseEvent.html#getX()), getY()...
Forum: Java Mar 10th, 2009
Replies: 4
Views: 1,212
Posted By verruckt24
If it is profiling that you need to do on your program/application and not only the overall time required for execution, I would suggest you to use the profiling tool accompanied with modern day IDEs...
Forum: Java Mar 9th, 2009
Replies: 9
Solved: java slide show
Views: 1,575
Posted By verruckt24
You can always restrict the size of the JLabel to disallow it to grow more than a specified size.

@OP : Mark the thread solve if it is.
Forum: Java Mar 9th, 2009
Replies: 9
Solved: java slide show
Views: 1,575
Posted By verruckt24
Whats wrong with that ?
Forum: Java Mar 9th, 2009
Replies: 9
Solved: java slide show
Views: 1,575
Posted By verruckt24
Well, thats what happens when you put yourself into a habit of "finding out code" instead of writing it yourself - you are stumped by the most basic and rudimentary things. As something I am...
Forum: Java Mar 6th, 2009
Replies: 10
Views: 489
Posted By verruckt24
imports should be declared before the public class definition. They should be the immediate statements after the package statements. To give a skeleton forthis:

// package declaration should be...
Forum: Java Mar 6th, 2009
Replies: 10
Views: 489
Posted By verruckt24
Both of these aren't required at all.
1. NULL does not need to be casted to anything.
2. If the int is within a string, it's acceptable.
Forum: Java Mar 6th, 2009
Replies: 10
Views: 489
Posted By verruckt24
Is this not exactly the same as what has been adviced in the previous post ? Whats the point of this then ?
Forum: Java Mar 6th, 2009
Replies: 13
Views: 567
Posted By verruckt24
Seems right. But why do you need my approval ? Submit it wherever you have to and check for yourself as also don't forget to mark the thread solved, if it is.
Forum: Java Mar 5th, 2009
Replies: 10
Views: 2,508
Posted By verruckt24
Has your query been solved, if yes then please mark the thread so, so people don't keep posting here for ages :)
Forum: Java Mar 5th, 2009
Replies: 13
Views: 567
Posted By verruckt24
Yes, again, there is nothing as essence software but essence of the software.
Forum: Java Mar 5th, 2009
Replies: 13
Views: 567
Posted By verruckt24
Let me tell you the meaning of the question as I understand and I assume it is that way because thats the only way it makes sense to me.

4. Consider the following advances. Decide whether each of...
Forum: Java Mar 5th, 2009
Replies: 13
Views: 567
Posted By verruckt24
You haven't even understood the question. So I suggest first spend your time understanding that.
Forum: Java Mar 5th, 2009
Replies: 13
Views: 567
Posted By verruckt24
And you did find a word written on either of them ?
Forum: Java Mar 5th, 2009
Replies: 13
Views: 567
Posted By verruckt24
Go surfing. Do some research on your own, then come back tell us what you feel and then maybe we;ll let you know what we feel.
Forum: Java Mar 5th, 2009
Replies: 5
Views: 1,283
Posted By verruckt24
@notuserfriendly : The logic for postfix evaluation is pretty straightforward. Move over the postfix string/expression and push any operands (numbers) into the stack, whenever you find an operator...
Forum: Java Mar 5th, 2009
Replies: 10
Views: 2,508
Posted By verruckt24
Why is that, that you believe he copied the code ?

@OP : Read my prvious post I've underlined the problem there.
Showing results 1 to 40 of 123

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC