Is there any free library which can be used to generate Graphs in J2EE environment?
I am using JSP with Springframework, and i have to generate Graphs ( Bar , Pie ... ). Is there any free library/api which can be used to achieve this? ...
I am using JSP with Springframework, and i have to generate Graphs ( Bar , Pie ... ). Is there any free library/api which can be used to achieve this? ...
Hello. I'm working on a compiler design project in Java. Lexical analysis is done (using jflex) and I'm wondering which yacc-like tool would be best(most efficient, easiest to use, etc.) for doing syntactical analysis and why. ...
OK, basically the question was Accessor and Mutator Methods Suppose that the class Pet has a variable/field called name that is of type String> Write an accessor method getName() that returns the value of name Enter your answer in this box and I wrote the code as following: public getName(String name) { return...
I have developed a Web Service using JAX-WS (v2.1.3 - Sun JDK 1.6.0_05) deployed on WebLogic 10.3 that works just fine when I use a Java client or SoapUI or other Web Services testing tools. I need to consume this service using 2005 Microsoft SQL Server Reporting Services and I get the following error Couldn't create SOAP message due...
Hi, was wondering where im going wrong, any ideas? Modifying variable value from method Implement a method empty() in the TicketMachine class that simulates the effect of removing all money from the machine It should have a void return type and the body should simply set the total variable/field to zero. Does this method need any pa...
When passing a final object (A String in the code below) it shows up as null when printed from the anonymous inner class. However, when a final value type or straight final String is passed in, its value is correctly displayed. What does final really mean in context of the anonymous inner class and why is the object passed null? publi...
For content type "text/plain" which of the following is more efficient if I have to send huge data. ServletOutputStream sos = response.getOutputStream(); sos.write(byte[]) //or sos.println("") Thanks ...
When deploying a large Java webapp (>100 MB .war) I'm currently use the following deployment process: The application .war file is expanded locally on the development machine. The expanded application is rsync:ed from the development machine to the live environment. The app server in the live environment is restarted after the rsync. T...
Revision of mutator method definition Write a mutator method setAge() that takes a single parameter of type int and sets the value of variable age Paste your answer in here: public int setAge(int age) { return age; } Comments: * Test 1 (0.0 out of 1) The compilation was successful The output should have been: ...
I need to read a large XML document from the network and split it up into smaller XML documents. In particular the stream I read from the network looks something like this: <a> <b> ... </b> <b> ... </b> <b> ... </b> <b> ... </b> .... </a> I need to break this up into chunks of <a> <b> ... </b> <a> (I only actually need the <b> ......
how come this java switch statement keeps telling me my statements are not statements public void setConstant(float inNumGrade) { this.yourNumberGrade = inNumGrade; switch (this.yourLetterGrade) { case 'A': this.yourNumberGrade >= 0.90; break; case 'B': this.yourNumberGra...
Hi, I have a wicket web application with Page mounted to bookmarkable alias. The page contains a form object with submit action. The problem is that though the form belongs to the page the action url doesn't contain page alias, but rather created in cryptic form of wicket action. Is there a way to adjust that behavior, so link will b...
Mutator returning a value Add a new method emptyMachine() to the TicketMachine class that is designed to simulate emptying the machine of money It should both return the value in total and reset the value of total to zero. Paste the whole method into the space below public int emptyMachine() { System.out.println("# " + tota...
Correct the following erroneous definition of method getAge() public void getAge() { return age; } Paste your answer in here: public int getAge(int age) { return age; } Mark: 0 out of 1 Comments: * Test 1 (0.0 out of 1) Person.java:15: getAge(int) in Person cannot be applied to () String s = (p.getAge(...
I am working on a java project and I need to pull some values out of a database and turn them into variables the program will then use to make a billing statement. I can get the program to connect to the database just fine, and the mySQL statement to call the data I need is easy enough. I just can't seem to figure out how to then have ...
Is there any reason to favor Python or Java over the other for developing on Android phones, other than the usual Python v. Java issues? ...
I'm looking for a good open-source library that can find and read a barcode from an image (versus using a barcode scanner). From other questions on Stack Overflow, I've found that ZXing ("Zebra Crossing") is quite good. Though it is made for Java, there is a C# port - however, I believe that it might not be complete. Do you think it is r...
I am using Spring MVC and in my controller, I want to be able to automatically bind incoming parameters to my Java object. It seems like this should be pretty easy to do. The only wrinkle is that the incoming parameter names (e.g. "username") may not match up exactly with the field name in the java object (e.g. "name"). From the Spring ...
I recently came across a piece of Java code with WeakReferences - I had never seen them deployed although I'd come across them when they were introduced. Is this something that should be routinely used or only when one runs into memory problems? If the latter, can they be easily retrofitted or does the code need serious refactoring? Can ...
Ok, I am very confused. Yesterday it worked just fine. Today suddenly I start getting an error. The main frame opens just fine and the first few buttons work. Just the last three suddenly do not work. I get the following error when I try to click those buttons (which should open new windows) Exception in thread "AWT-EventQueue-0...