-
Replied To a Post in Netbeans Doesnt Run my "hello world" application !
I guarantee that nobody human can possibly tell you what's wrong with your code if you don't show us that code! -
Replied To a Post in how to append this javascript pattern to stringBuffer?
You can append any String to a StringBuffer by using its append method, eg StringBuffer sb = new StringBuffer("pattern is "); String pattern = "/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/"; // will need to escape … -
Edited how to append this javascript pattern to stringBuffer?
var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/; -
Edited how to append this javascript pattern to stringBuffer?
var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/; -
Replied To a Post in meaning of some icons in Netbeans
Where *exactly* did you see them? -
Replied To a Post in svn command line failed
Blue button "Mark Question Solved" about 12 cm straight down from the word "Blue" in this post :) -
Revoked Solved Status for svn command line failed
Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion.  -
Marked Solved Status for svn command line failed
Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion.  -
Replied To a Post in svn command line failed
If that solved yoyur question, please mark this "solved" for our knowledge base. Thanks -
Replied To a Post in How to know background and foreground color of image in java
You can read the image into an Image object, then use the PixelGrabber class to examine the individual pixels and get their colors, but after that it gets difficult - … -
Replied To a Post in java program
If that solved yoyur question, please mark this "solved" for our knowledge base. Thanks -
Replied To a Post in Displaying a jtable data into a jconbobox
Did you try printing add5 and add6 to confirm that they contain the expected values? -
Replied To a Post in Get value inputted in textfield from one Class to another
Making stuff static will solve this kind of problem in the special case where there is only one instance of the relevant classes, which is presumably the case here. Just … -
Replied To a Post in Get value inputted in textfield from one Class to another
Like I said - the Checkout needs a reference to the real Index so it can call its getVal() method. Normally that happens in the main code that opens all … -
Replied To a Post in Get value inputted in textfield from one Class to another
I think the eror handling exception is not the real problem here - it's addressing the symptom, not the cause. The String is null becuase of an error in the … -
Replied To a Post in Get value inputted in textfield from one Class to another
In Checkout you create a new Index then immediately get LCNum from it. At that point the user has had no chance to interact with that Index, so its value1 … -
Gave Reputation to <M/> in Proper Decimal Format?
Is this correct? I wrote a decimal format and it doesn't work. how do i correct this: return sum / myFormatter.format(Math.sqrt(x.length - 1)); I will submit the full code if … -
Replied To a Post in Counting Integers
Hi dev90 Before you put too much effort into this thread, you should be aware that <M/> has double-posted, and there is already a pretty full discussion of exactly the … -
Replied To a Post in Sorting three integers
Pseudo-code plus commentary is fine. Just remember that when a beginner asks for assistance we prefer to help them solve the problem themselves, and learn from the process. That will … -
Replied To a Post in java socket programming HTTP SERVER
If you want to analyze the first line after printing all the lines then you need to store that first line somewhere. In fact, why not store all the input? … -
Replied To a Post in Arrays: Finding max, min, and average values
Hello seneyseanbattambang, welcome to DaniWeb. Did you notice this thread was marked "solved" two years ago? Your suggestion is perfectky valid, but a little too late! -
Replied To a Post in Hangman Source Code: Java
It's an applet - you run it in a browser window. The tutorial starts here: http://docs.oracle.com/javase/tutorial/deployment/applet/index.html -
Replied To a Post in exe file running error only other computer
Sounds like you may have hard-coded a file or path in your app that isn't present/valid on the other machine? Or it may just be lunch4J mis-behaving. Do you really … -
Replied To a Post in Area of a Triangle
OK. Just FYI here's the simpler algorithm - I didn't encapsulate it in a method because it's only one line... System.out.print("Enter three points for a triangle: "); Scanner in = … -
Replied To a Post in Area of a Triangle
That's one way to do it. A more experienced programmer would probably separate the user interface from the calculation. The initialisations on line 7-9 are redundant because those values are … -
Replied To a Post in Sorting three integers
> I research, learn, try, and ask for help. That's what helped me increase my ability to code in Java. Yes, absolutely right. But how does this fit with your … -
Replied To a Post in Audio Level Meter
It's very simply... catch(Exception e) { e.printStackTrace(); } -
Replied To a Post in Audio Level Meter
If it's a csv file then you need commas to separate the values, not spaces. For importing to Excel you can also separate the values with tab characters \t ps … -
Edited Sorting three integers
Hi evryone! :) I'm a complete beginner in Java and today i'm found my self stack while trying to solve a problem. Basically what i have to do is to … -
Replied To a Post in Formattiing Texts on your jform
JLabels etc accept simple HTML code to control formatting, headings, font color etc, eg aLabel.setText("<HTML><H1> Hello</H1>" + "<FONT COLOR="RED"><CENTER>World" + "<FONT SIZE=-2 COLOR="GREEN"> and friends"); -
Replied To a Post in Deleting Entries in Phonebook
Three things 1. You can't test your Strings with == (are exactly the same object). You have to use String's equals method (have the same sequence of characters in them) … -
Replied To a Post in Deleting Entries in Phonebook
Thats `null`, not `NULL`, of course. -
Replied To a Post in Deleting Entries in Phonebook
What did you try? All you have shown is `return 0;` You just need a loop that goes through the array checking each entry to see if it matches the … -
Replied To a Post in Runtime.getRuntime().freeMemory() gives unexpected results
I tried this in NetBeans, latest Java 7. Just printed the allocation/1000. Ran it 100 times in a loop... I Got memory used by allocation (k):1958 memory used by allocation … -
Replied To a Post in Reverse Number
You also seem to be reversing the original number, whereas the "right" answer reverses the doubled value. -
Replied To a Post in Runtime.getRuntime().freeMemory() gives unexpected results
I believe that each and every instance has a minimum 8 byte fixed overhead and is aligned on an 8 byte boundary in the current Oracle JVMs (obviously this can … -
Replied To a Post in Similar Error As Before...
You are asking me what the requirements for this exercise are? I have no idea, but presumably your teacher gave you them. It would help if you shared them with … -
Replied To a Post in Runtime.getRuntime().freeMemory() gives unexpected results
Also note that Integer is a class, so you are creating 1000 new instances of that class. That's not the same as 1000 ints (primitives) that would be just 4 … -
Replied To a Post in Similar Error As Before...
YOu didn't post the requirements, but this line: System.out.println("The number of integers is " + num); implies that num should be a count of how many integers were entered, but … -
Replied To a Post in Frustrated with super simple code...
Changing the `println` on line 4 to a `print` will eliminate the newline that your automated test dislikes. I have no idea how you are expected to get the right … -
Replied To a Post in Frustrated with super simple code...
That is totally ridiculous. The "error" seems to be that your output is on 2 lines instead of one (although two lines is better IMHO). What is the celsius temp … -
Replied To a Post in please help me
Start by reading the tutorials: http://docs.oracle.com/javase/tutorial/essential/exceptions/index.html -
Gave Reputation to ncmathsadist in Java projects for learners
This is my second assignment in my Early Object Java class: http://www.ncssm.edu/~morrison/currentClasses/404/assess/specs/ColorCalculator.php Try it; it's lots of fun -
Replied To a Post in Frustrated with super simple code...
Please post the exact complete error message(s). -
Replied To a Post in Frustrated with super simple code...
In Java when you enter a floating point literal like 9.0 the compiler creates a double value, not a float. That's where ypur doubles are coming from. So when you … -
Replied To a Post in How do I place a folder name in a combobox?
Please explain what you are trying to do in more detail. -
Replied To a Post in Show output in gui
I want, I want... There are lots of things we all want, but life isn't like that. DaniWeb Member Rules (which you agreed to when you signed up) include: "Do … -
Replied To a Post in Frustrated with super simple code...
Did you read my previous post? I explained why you get precision-related errors, and how to fix them, but you seem to have ignored it. -
Replied To a Post in GUI Display JTextArea of code from program
To prompt the user and get input in a simple gui, use JOptionPane (Google it for details). Display stuff in your text area by calling its append(String str) method. But … -
Replied To a Post in Java 2d array problems
I also "just read the code", and it's a shambles, full of obvious mistakes. No need to compile it. Old Apache took the time to point out some of the …
The End.