-
Replied To a Post in Converting Standard Form Quadratic to Vertex or Opposite
> If someone gives me a hand with doing standard to vertex, I should be able to do vertex to standard. This engaged my curiosity, and I found that vertx … -
Gave Reputation to wallet123 in Servlet program error
What u need is an organize code :) In establishing a connection with you database i think this is a more better way. The code below shows how to connect … -
Replied To a Post in Running class file from outside package directory structure
Yes, I think it should be a semicolon as well -
Replied To a Post in Running class file from outside package directory structure
Why is there a colon in the middle of theclasspath - is that legal? -
Replied To a Post in how to search for a value exists or not int vector
vecA is a Vector of A objects, so there's no way it can contain a String. contains(...) just searches the Vector's elements for an equals() match, it does not search … -
Replied To a Post in gridlayout label java sql
None, now. stresstedout got too stressed, turned abusive, and got banned. This thread is dead. J -
Replied To a Post in Converting Standard Form Quadratic to Vertex or Opposite
Sorry I can't help with that kind of advanced algebra, I'm just a menial coder. ;) -
Replied To a Post in Build GUI with complex GridBagLayout
No, in Java method and constructor call parameters are all mandatory (except for the a last parameter marked ...). Personally I like GridBagConstraints like that. It makes me think about … -
Replied To a Post in Converting Standard Form Quadratic to Vertex or Opposite
> For something as basic as this, where it will only be called once every run, you don't need to have methods for it. Only if it could be called … -
Replied To a Post in Exception handling(Doubt)
The3 Java Language Spec documents all this stuff definitively. For throw it says > 14.18 The throw Statement > ... > A throw statement causes an exception (ยง11) to be … -
Gave Reputation to stultuske in gridlayout label java sql
considering every reply on one of his threads got downvoted, ... pretty obvious. chances of someone else going to all the trouble of searching out one persons threads and downvoting … -
Replied To a Post in gridlayout label java sql
stultuske: downvotes without a comment are, by design, anonymous, so beware of assuming you know who voted. However, stressedout overstepped the mark by re-posting the same question, then posting two … -
Replied To a Post in PLEASE HELP HOW TO DO THIS
No problem, they are initialised in both constructors. (edit) ... but anyway the language guarantees that instance variables are initialised (to 0, 0.0, false, or null as appropriate) anyway. See … -
Replied To a Post in Java File Handling Tutorial for the beginners
It's admirable that you have taken the time to create this tutorial to try to help others. But it's really not something I could recommend for a number of reasons... … -
Replied To a Post in Textpad
Try compiling using javac at the command prompt - that will give you proper error messages -
Replied To a Post in PostFix Evaluator
When parsing the infix you can parse for parens, operators and numbers like you do now, but also parse for alphabetic tokens ie variable names (looks like you can assume … -
Replied To a Post in gridlayout label java sql
This is just http://www.daniweb.com/software-development/java/threads/472200/java-retrieve-images again. I think we're wasting our time. -
Replied To a Post in Print Each Calculation in a Quadratic Equation
Apart from storing some of the results that are used repeatedly (eg Math.pow(b, 2) etc) I can't see any obvious improvements. If the next exercise is to do the same … -
Replied To a Post in Add em up project
On line 15 you test for a sign of "+" and if you find it, you add the next number using += on line 17. Testing for "-" and subtracting … -
Replied To a Post in Text Based Menu System
KeyListeners are for Swing GUIs. What are you using to display the list? -
Replied To a Post in Print Each Calculation in a Quadratic Equation
> But how does Java interpret the equation? Does it do proper BEDMAS Yes Java Language Spec: > 15.7.3 Evaluation Respects Parentheses and Precedence > The Java programming language respects … -
Replied To a Post in Sorting three integers
1. This is a bit late 2. He's specifically sorting three nunbers. A general discussion of sort algorithms and their speed isn't relevant. -
Replied To a Post in Java Mail API problem
Hi milil. 1. This thread is 9 months old 2. It isn't about android Java Your posts are welcome, but please ensure they are relevant and timely. -
Replied To a Post in Build GUI with complex GridBagLayout
Ooops yes, sorry. my typo. -
Replied To a Post in Space between words
OK. The link I gave you explains that and how to fix it. -
Replied To a Post in Space between words
Once again: what was the exact exception stack trace? -
Replied To a Post in Space between words
Oh, did you say before this android? My answers were valid for Windows/Mac/Linux, I don't use android at all, but the same code should work as long as it compiles! … -
Replied To a Post in Build GUI with complex GridBagLayout
OK, in that case use a GridBagLayout for the JPanel as well. But don't get your grids confused. The frame will have a grid for the label and jpanels, then … -
Replied To a Post in Space between words
Your getByName doesn't contain a valid name. It's just "www.google.com" or "google.com" (see my example code). You'll see from the stack trace that this is the Exception, not an IOException. -
Replied To a Post in Space between words
Can you be more explicit - exactly what code are you using and exactly what is the output? -
Replied To a Post in Build GUI with complex GridBagLayout
I have always specified the constraints right in the add statement, eg add(comboBox, new GridBagConstraints(0, 0, 3, 1, 0.0, 0.0, CENTER, BOTH, new Insets(0, 6, 0, 6), 0, 0)); I … -
Replied To a Post in Build GUI with complex GridBagLayout
You are setting GridBag constraints for your printer label, but that's a child of the JFrame (flow layout!), so they will be ignored. Personally, I never use the shared constraints … -
Replied To a Post in Space between words
(Ignore previous version of this post - it doesn't work) Sites may or may not respond to pings, so the only reliable way is to check a public service that … -
Replied To a Post in Build GUI with complex GridBagLayout
Every container (JFrame, JPanel etc) has a layout manager. That manager lays out (positions and sizes) the components that are direct children of that container. So the JFrame's manager lays … -
Replied To a Post in How to retrive image to database using mvc in java
Is this sample code for our enlightenment, or is there a question you wanted to ask about it? -
Replied To a Post in Build GUI with complex GridBagLayout
I didn't have time to read all the code, but at first sight it looks like you have a FlowLayout inside each of your panels, so within the panels the … -
Replied To a Post in Grading system
5: which requirements did he fail? 6. did he fail both? One way would be to have a couple of booleans,one for each condition, showing whether that condition was met … -
Replied To a Post in Build GUI with complex GridBagLayout
You didn't initialise the helpButton variable, so it's null. -
Replied To a Post in Grading system
That's the output I would expect from line 13/14. Did you enter 3 values for examscore, assessment, fees? Followed by a carriage return? It's clearer for everybody if you prompt … -
Replied To a Post in Grading system
One step at a a time... It's a bad idea to try to code the whole application before you start testing. Experienced programmers try to code in small pieces, compiling … -
Replied To a Post in Grading system
You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others … -
Replied To a Post in Text Based Menu System
You need to add them to some kind of array or List so you can process them after creating them - eg to display them all. You can override `toString` … -
Replied To a Post in Any shortening of codings?
Current versions of Java will infer the type of the new from the variable's declaration, so you can write `List<Student> list = new ArrayList<>();` -
Replied To a Post in Any shortening of codings?
That Student class is a very standard kind of code, you'll find millions like it in real life. Tools like NetBeans give you ways to write it faster, but the … -
Edited unexspected and unrecoverable error
textpad 5 generated an "unexspected and unrecoverable error" with a large data file of mine and at first i though it was due to length. (1280 lines, 188kb) but there … -
Replied To a Post in reading arabic data from Oracle database in java
So, maybe move on to b)? You could look at the UniCode values of your Strings to see if those are the correct UniCode that you expect (get the first … -
Replied To a Post in reading arabic data from Oracle database in java
I'm no expert on this, but because nobody else seems to be around right now, I'll have a try... It coulld be that a) the 8 bit AL32UTF8 data isn't … -
Replied To a Post in unexspected and unrecoverable error
Please understand that I'm not trying to be difficult here. DaniWeb is, and must be seen to be, fully compliant will all applicable law. TextPad is **NOT** "demoware" - here's … -
Replied To a Post in Comparing the datas in .csv file
OK. Each row represents one student, with various data ablout that student. So the obvious thing to do is to define a Student class with sNo, name, department, and marks … -
Replied To a Post in Comparing the datas in .csv file
What do you mean by "compare"? Are you looking for duplicates, trying to sort the rows, or what?
The End.