-
Replied To a Post in Object-Oriented Design Concepts
I had a quick Google, and was struck by how most links were just to stuff about inheritence, polymorphism etc. For me the OO design *process* is about use cases, … -
Replied To a Post in please think
You need to explain exactly what help you need. -
Replied To a Post in Following the flow of nested loops in Java
No, that's not what it outputs. The actual output is i=1 , j=0 i=2 , j=0 i=2 , j=1 (all you needed to do is to run it) Just step … -
Replied To a Post in Pizza Calculator GUI Application
It would help if yu posted the actual code. Line 115 you call a method `TopCost`, but you haven't defined any such method. Many of your methods are confusing because … -
Replied To a Post in payroll
There are a few variables that never get any sensible values (eg hours worked, pay rate). It looks like you may have missed the part of the assignment where you … -
Replied To a Post in if statement
`char` in Java is a 16 bit integer value, used to encode characters in UniCode. So 0 is a prefcetly good value, as is 99, or 'e' because 'e' is … -
Replied To a Post in if statement
So, if diff is 0 it won't be equal to 'e' or 'E', so the if test (line 8) fails, and you don't issue the prompt. If you always want … -
Replied To a Post in Video staganography
Is this homework? You should know the DaniWeb rules by now. -
Replied To a Post in need help with p5
Well yes, like it says, you can only use `break` insode a switch or loop. What did you intend to do with your `break`? -
Replied To a Post in need help with p5
"i keep getting an error" tells us nothing. If you have a compiler or runtime error message post the complete message plus the actual code it refers to. If your … -
Replied To a Post in how do i populate jtable from database??
... and you didn't think it was worth mentioning that at the beginning? Is there any other essential information that you want to share with us? Have you looked at … -
Replied To a Post in how do i populate jtable from database??
There are loads of tutorials and examples on the web. Nobody here has the time to write another one just for you. Start [here](http://bit.ly/1zHvRH2) -
Replied To a Post in Draw a rectangle field
Just draw those 12 lines one a time. Tedious, but not difficult. -
Replied To a Post in Draw a rectangle field
That's a good start. You will need to draw the pairs of boxes at the top and the bottom separately -
Replied To a Post in Show error message dialog.
Yes (and don't forget exactly 0 or 1 minus signs!). Although in general Exceptions are not recommended for user error handling, this is one of those exceptions to the rule. … -
Replied To a Post in Unable to call constructor from an other class
Yes, that's a lot better. The variables you declare in one class are different from the ones declared in a different class, even if their names are the same. That's … -
Replied To a Post in Unable to call constructor from an other class
Is that all the code? Does the GymMember class have variables for id and weight? Do you set them in the constructor? Is MemberWeight really an inner class of GymMember? … -
Replied To a Post in JOptionPane question
Just FYI - you can also chose what text to show on the buttons, which will make things clearer for the user, eg Object[] options = { "Right Answer", "Wrong … -
Replied To a Post in OOP in Java
stultuske & I usually agree, but maybe not this time. In my opinion, real projects end up with a lot of code, and structuring that is the single most important … -
Replied To a Post in OOP in Java
What you are describing is a large and complex area, so you will need multiple projects to make real progress. My advice is to start with small simple steps. Pick … -
Replied To a Post in gui vendingmachine program doesn't work
That message says it all. Why did you think that your vmpr object would be a JFrame? -
Replied To a Post in need help for project 10
You must explain what help you need. -
Replied To a Post in console input console help
I think the constructor is private because the Console object is created when the JVM starts, and you just need to get that instance. Thnaks for the hug J :) -
Replied To a Post in console input console help
That's a public method in the System class - you can't declare it! You just call it, and it gives you a Console object, eg Console input = System.console(); -
Replied To a Post in console input console help
Yes, the constructor is private to stop you using it. The API doc fpr Scanner says: "If this virtual machine has a console then it is represented by a unique … -
Replied To a Post in how do I convert hext to binary
We are getting nowhere. I am trying to understand your problem, but you don't answer my questions. Until you can explain exactly what you want as the result of the … -
Replied To a Post in how do I convert hext to binary
I don't understand. That thing you just posted, that begins 24244..., is a string. It would be helpful if you answer my previous question. You start with a String whose … -
Replied To a Post in is something wrong with my
One small thing I noticed: line 23 - you return the wrong variable. And just before that the totalsales code makes no sense. -
Replied To a Post in Returning a 2 dimensional collection
A good place to start would be to declare a suitable "2 dimensional collection". Once you know what looks like you can think about how to populate it. -
Replied To a Post in Help me w/ my codes please
OK. Yes, I understand that. The box2 if tests seem confused. Did you start by copying the box1 code and trying to edit it? I would start again, following the … -
Replied To a Post in Help me w/ my codes please
It's not obvious to me what this code is supposed to be doing. Can you describe in English what these two boxes should do? -
Replied To a Post in Help me w/ my codes please
Just comparing box2 with box1, box1 has `y0 > 0`, but box2 has `y1 < 0`. Is that right? -
Replied To a Post in Help with Payroll Project
You can skip to a new line any time by using a \n (newline) character. eg System.out.println("\nHello"); will print a newline followed by Hello Your loop's `end == false` test … -
Replied To a Post in Can someone fix this for me! Please?
OK!!! Next time, please be more careful with how you describe your problem. The more accurate and complete it is, the quicker you will get the right answer. -
Replied To a Post in Can someone fix this for me! Please?
I ran your program. It does work OK. It does exactly what you just said it should do. There's something wrong with how you are using it in NetBeans. The … -
Replied To a Post in Can someone fix this for me! Please?
I just ran your code in NetBeans and it worked just fine. You just told stultuske that your output was "enter 10 numbers", and told me that you did not … -
Replied To a Post in Can someone fix this for me! Please?
Netbeans is good. Dd you see the prompt for "enter 10 numbers"? -
Replied To a Post in Can someone fix this for me! Please?
Does it compile without errors? Can you run it without getting an error message? If you can run it, what data did you enter? ps: You will do a lot … -
Replied To a Post in Can someone fix this for me! Please?
I'll help you to fix it. What exacetly does the compiler error message say? -
Replied To a Post in String
Java has 8 primitive types: byte, short, int, long, float, double, boolean, char. These just have a value - they are not Objects. Their values are primitive values. Strings are … -
Replied To a Post in Need an idea as to how to get the row if a specific position is given
Hi Slavi The solutions you link to are all a bit clunky - either a double-loop search or mis-using the button's `name` attribute. I would recommend setting the row & … -
Replied To a Post in help in string combinations
He has posted eaxctly the same question in the C and C++ forums, where the inevitable downvotes have already started coming in. Not only does he want someone to do … -
Gave Reputation to Amit_25 in help in string combinations
hii I have a list having m1 m2 m3........ m922 and in each there are a1 a2 a3 a4 are there like m1=a1 a2 a3 a4 a5 a6 m2=a1 a2 … -
Replied To a Post in Display output text times a variable
There's no need for an extra `if` Have another look at Slavi's post. If it's still not clear come back here, because there's something you haven't got right yet. -
Replied To a Post in Cannot find symbol - method
use a `for` loop -
Replied To a Post in Cannot find symbol - method
OK. If you look at your code you will see: the setAlpha method just sets that variable. It does not do anything to update the sum. You are still missing … -
Replied To a Post in Cannot find symbol - method
Code Pane ICMA42 pete = new ICMA42(); pete.sumArgs(); <<<<<<<<<<<<<<<<<<< recognises "pete" this.setAlpha(42); <<< if you use pete here "it" will recognise it -
Replied To a Post in Cannot find symbol - method
I get the idea. Your test code creates an instance of ICMA42 and uses that to call ICMA's sumArgs method. That method is nonsense, but the way you call it … -
Replied To a Post in Cannot find symbol - method
The way you called sumArgs is the correct way to do it. -
Replied To a Post in Cannot find symbol - method
setAlpha is an instance method of the ICMA42 class. To call it you need an instance of ICMA42. In your `this.setAlpha` the `this` refers to the current instance of whatever …
The End.