-
Replied To a Post in Multiplication method for multiplying two polynomials
Let me just add the usual health warning to the previous post. anand.khatik is a first-time poster; we have no information, good or bad, about his skills or credibility. Nobody … -
Replied To a Post in JavaFX
That tutorial looks good, but surely if anyone is learning JavaFX now they should be using the [Java 8 version](http://code.makery.ch/java/javafx-8-tutorial-intro/) of it. There are very significant improvements, eg Properties, that … -
Replied To a Post in Inheritance problem #2
OK, so you have the data the other way round from how the constructor is defined! -
Replied To a Post in Inheritance problem #2
Your subclass overrides the superclass's toString() so that doesn't get executed. You could do something like public String toString() { return super.toString() + "\n Country name: " + countryName + … -
Replied To a Post in run jar file
Your classpath needs to contain an entry that refers to the jar or folder that contains the missing class (in a folder structure that matches the package names) -
Gave Reputation to Doogledude123 in JavaFX
Hey Slavi, glad to see some interest in Java FX. I definitely think Java FX is excelling now and will soon become a primary over swing. If you're looking into … -
Replied To a Post in JavaFX
ps Forgot to mention media support. At last we can bury the old Java media framework in the dungheap of history where it belongs. I use FX's MP3 player even … -
Replied To a Post in Server split message and save data on a text file
The Oracle tutorial had bugs? I doubt it. What you are trying to do isn't so simple, so you will need to understand everything in that tutorial, no matter how … -
Replied To a Post in JavaFX
You don't need an IDE, but if you are going to use one NetBeans seems to have integrated it better. JavaFX comes with a drag'n'drop GUI builder called SceneBuilder that … -
Replied To a Post in Inheritance problem
The question to ask is "which variables MUST be set for the instance to be in a valid state?" Eg Maybe every Emplyee MUST have a name, but maybe a … -
Replied To a Post in how to display top 10 students results based on marks and percentage
Start by defining a Student class that has instance variables for name. marks etc. Input the raw data, create the instances of Student and add them to a List like … -
Replied To a Post in Inheritance vending machine problem
> This is what i have so far. Please don't think we are fools. We know where you copied that from, and so will your teacher after 15 seconds with … -
Replied To a Post in Vending machine trouble
The interesting question is whether **you** will ever complete it. Copying someone else's answers is likely to get you an automatic fail of your course, and possibly being thrown out … -
Gave Reputation to astrid.deliz in Inheritance vending machine problem
This is what i have so far. -
Replied To a Post in Child overloaded constructor access Parent constructor
Well yes, I guess the exact equivalent would just be public class Child extends Parent { public Child(String a, String b) { super(c); } } -
Replied To a Post in Child overloaded constructor access Parent constructor
Is this what you mean? class A { public A(int i) { ... // constructor ... } class B extends A { public B(int i) { super(i); // calls superclass's … -
Replied To a Post in Input == null! ERROR?
It can't read the image file. Possibly because the file is invalid, but much more likely it's looking for it in the wrong place. Java's default folders are often a … -
Gave Reputation to Akansha Jain in whats wrong with this code
you have to write all else if(grade>=80 && grade<=89), and why are you using for loop just remove it. -
Gave Reputation to Akansha Jain in exception Message is not showing
write System.out.println(e.getMessage(); -
Replied To a Post in increase/decrease text size
TextSize inherits pack() from JFrame, so you can simply call that from within an inner class of TextSize, eg textField.setFont( newFontSize); pack(); -
Replied To a Post in whats wrong with this code
Why do you think anything is wrong with it? If you have an error, or incorrect results, then share that info with us, don't expect us to guess! -
Replied To a Post in Java Memory Clarification
Holding a ref to an object that's in a list won't affect the list's reference count because the object does not have a reference to the list. Either you have … -
Replied To a Post in some questions about this code
Since when did I become your servant? Get off your *** and look it up for yourself. -
Gave Reputation to moaz.amin.37 in some questions about this code
send me the link of API doc for details -
Replied To a Post in Reading ASCII Encoding and Output
Everything is better over here, except for Indian take-aways. Been here 15 years and I'm not going back. -
Replied To a Post in Java star pattern loop
Read his thread. If you still habe a question start your own thread. -
Replied To a Post in some questions about this code
PrintWriter and PrintStream both implement a println method. Read their API doc for details. ps: Your last three posts are still not "Solved". What's the problem? -
Replied To a Post in Replacing multiple words with Regex
I had a quick Google, and it seems there is a way, but it's far beyond my regex skills to understand it. Just search on "regex multiple replacements" or somesuch. -
Replied To a Post in Reading ASCII Encoding and Output
France! -
Replied To a Post in JPanel not displaying on JFrame
You don't seem to put anything in your scroll pane? `setLocationRelativeTo(null);` works OK. If it's centering the TL corner then it sounds like swing thinks your JFrame is empty when … -
Replied To a Post in Intermediate Projects
RMI's not easy the first time. There's a lot of pieces that you have to get right. Second time round you know what they are, so it's a lot easier. … -
Replied To a Post in Intermediate Projects
I was thinking of starting with a completely asynchronous application - whatever the users want to do, whenever they want to do it. You can always add constraints later, but … -
Replied To a Post in Intermediate Projects
Yes. There's lots of stuff you can incorporate that make it a more advanced project - eg jmDNS to allow the clients to find the server, real-time collaborative drawing on … -
Replied To a Post in Replacing multiple words with Regex
Yes, I think so. -
Replied To a Post in Intermediate Projects
How about thy multi-user chat/picture sharing thing? (Client/server, threads etc.) You can build that into something quite large & complex if you keep adding features. Start by designing a generic … -
Replied To a Post in A fun navigation program
OK - you should have posted that with your very first post - it explains everything. Here's what it means... `Exception...` something went wrong `... null pointer ...` you tried … -
Replied To a Post in A fun navigation program
I just tried your code and it runs, but throws an exception before it can display anything. What *exactly* do you mean by "not running"? Does your command prompt hang? … -
Replied To a Post in A fun navigation program
What do you mean by "can't run it"? - YOu don't know how to, you try to run it but nothing happens, you run it and you get an error … -
Replied To a Post in Reading ASCII Encoding and Output
No, no genius, just been doing it a long time... (I started using Java when I still lived in Woodham myself - in the last century) -
Replied To a Post in Reading ASCII Encoding and Output
If you have an em-dash then the file is not ASCII encoded! ASCII is a 7-bit code that includes only the english alphbet, numbers and a handfull of puctuation (not … -
Replied To a Post in Replacing multiple words with Regex
I'm no regex expert, but my guess is that you can't, or, if you can, it's ludicrously complex. The real question is: why? Why not just run two simple replace … -
Replied To a Post in increase/decrease text size
yes, if you wnat your component sizes/posiitons to be updated -
Replied To a Post in How to get all member varible values in bean class
Do you mean the order in which they are declared in the source code? No, I don't know any way to do that. -
Replied To a Post in Java heap space error when calling mouseListener
If this was a console app you would have a loop to control that, but for a Swing event-driven app you don't have that loop at all. Just add the … -
Replied To a Post in java custom exception
What exectly do you mean by " how two exception handle"? As soon as your code throws an exception, the rest of the block stops executing, so you cannot throw … -
Replied To a Post in Java heap space error when calling mouseListener
The loop at line 26 keeps calling selectJLabel. selectJLabel creates a new instance of the LabelListener class each time it's called. So you keep creating new instances until you run … -
Gave Reputation to basiljose69 in Java star pattern loop
* *** ***** *** * in java??? -
Replied To a Post in exception Message is not showing
No. Throwing an exception doesn't show any message. An Exception is an object that contains information about a problem. When you find a problem you create an Exception object to … -
Replied To a Post in Java interface
Congratulations on a really interesting question! I think the answer is that the load() method (line 9) satisfies both the requirements of the interface and the abstract superclass, so that's … -
Replied To a Post in exception Message is not showing
Line 21 you create an Exception object with that message. There's no printing there. Line 26 you just print "wrong". You can change line 26 to print the actual exception, …
The End.