35,618 Topics
![]() | |
Good Morning! I am trying to create a Book2 object and assign to Inventory_Program6a. When I try the following: Book2 newBookTitle = Book2(); I get the error message: C:\java>javac Inventory_Program6a.java Inventory_Program6a.java:325: cannot find symbol symbol : constructor Book2() location: class Book2 Book2 newBookTitle = new Book2(); ^ 1 error I … | |
Please help, I have the following problem: I have several domains and I used a short java script in order to refresh the index page in order to get rid of the advertisement that for ex register.com places there if you dont pay extra to remove it. ( the problem … | |
Hiya, I'm currently working on a little java program that will scan through a directory, reading php files and then dump out a list of function names for that particular file. Does any one know how I can modify my regex to exclude functions that are inside /* */ comments? … | |
Hi all. How do you get values from an appended url string using JSTL? For example: redirect.jsp?pageid=23 -how would i get that value? Thanks. | |
I really want to have an example of of this program in java but i cant find it in here.. >..pls response ASAP.. >thnx | |
see the attachment Prac11 on how to write GUI | |
Hi all , I tried one simple animation in Swing . Here's what the program has to do : when a button called "play" is clicked a circle should be moved from upper left corner down to the lower right corner. [code=java] import javax.swing.*; import java.awt.event.*; import java.awt.*; public class … | |
i am working on a cod of (attaxx game),and i have a problem with the buttons i can determine the co-ordinates (x,y) of the button and i want to change its background color but i do not have a reference of the jbutton object it self.is there is any way … | |
> Write a function that accepts an array of integers and returns the second largest integer in the array. Return -1 if there is no second largest. > The signature of the function is public class bc { public static void main(String[] args){ } int f(int[ ] a) { } … | |
Hai everyone, I need to find the Latitude and Longitude values for any one of the Particular location from the Google Maps, using pure java class. I know, it's done by using javascript, but i need to use pure java class not javascript. If we provide full address of the … | |
plz send me inventory management project in java immedietly | |
Says grade isn't initializing import java.util.*; public class Test { static Scanner console = new Scanner(System.in); public static void main(String[] args) { char grade; switch (56 / 10) { case 0: case 1: case 2: case 3: case 4: case 5: grade = 'F'; break; case 6: grade = 'D'; … | |
Okay so I'm supposed to read in grades from a file add them together and get the average the letter grade the minimum grade and the maximum...no setting variables to the read in...and the sentinel is -1 at the end of the sequence...I'm a bet messed up...this is what i … | |
Hi All, I am doing a project which is struts based. I have included following files in build path of eclipse. servlet-api.jar jasper-runtime.jar jsp-api.jar struts.jar antlr.jar commons-beanutils.jar commons-digester.jar commons-fileupload.jar commons-logging.jar commons-validator.jar still I am getting errors: the import javax.activation can not be resolved at line import javax.activation.*; the import javax.mail … | |
Hi everyone, I am new to java. I have a question? How can I store in to an array the values that the user enter, so later I can compare the two sets of array that the user enter. This is what I have: System.out.print("This program is going to find … | |
Hi Guys, This is probably a very basic query, but asnyways. I'm trying to write a jsp website involes doing some data calculations. However, I'm having problems trying to get my own java classes to be recognised by tomcat. So far I've tried :- 1. putting the classes in the … | |
How can I .getText(long) ????? I can not figure out how to get a string from a GUI and turn a String into a long . | |
[B]I'm new to java servlets ...I installed Sun java SDK which acts as an server for running servlets.I spents many hours first just to compile servlets and generate the class files but now I don't have any idea how to run servlets on SDK. I tried a lot on Apache … | |
hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards.... | |
/*This is a what I've written so far- see below.*/ /*The program is to ask a user to insert values into array, print those values showing both index # and corresponding value, return average, min, change value of 1 array element, delete 1 element, compact the array. ALL these MUST … | |
Hello Everyone, I feel like I'm going around in circles! I can't figure out why by JButtons won't perform their assigned functionality. I have a first, previous, next, last, and save button. I've created actionListeners and actionEvents for all butons, but they still produce nothing. Any insight is extremely appreciated!!!! … | |
hellow friends, how can i get server port number by using java. please give me exampls codes for this program. | |
Here it goes, we were told to make a Multiplication thingy that the user can [B]Input[/B] something like [I]5x5[/I] and then the [B]output[/B] will be the [I]answer[/I]. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach … | |
i face a problem here.. i am creating a compiler for java, the compilation part is done,and now i have a problem in the running the class compiled.. i use the runtime.getruntime().exec() method to run the class.. and what happen is, for example, i have a simple java file like … | |
okay I have been working on a little project of my own for a while. At the moment it prints out the chapters read and once 100% of the chapters read is greater than 100 it shows on the next line of my code the number of times the book … | |
pls help how to open a file in an application using jsp and it should not open in a browser if possible pls send ur code as soon as possible.. pls help pls help. | |
Can aanyone help me with my ApacheTomcat. I have never configured sever before. Its actually my first time. I just dont know how to run or even configure this ApacheTomcat. Where should I set the CATALINA_HOME variable? and what is it for? | |
Hi I am trying to create something like online shop with products and a shopping basket. User can see an html form and edit it. The form is represented by bean. After editing it, he should be able to create new, or submit all products he edited (add actual bean … | |
Hi all, I learned that "local static variable" with in a function is not allowed in JAVA as in C++. I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted … | |
I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use it as per the assignment, and that's because I used void … |
The End.