36,051 Topics
![]() | |
I'm having major issues trying to do the following: Write a program that reads in a line of text and then outputs that line of text first in all uppercase letters and then in all lowercase letters. If anyone can help me with that I'd greatly apprciate it. | |
Hi im trying to write a program that sorts an array in alphabetical order and then into phone book order, Eg input: Jane Pascal 364756 Bob Smith 364758 Joe Bloggs 253647 The output should be: Bloggs, Joe 253647 Pascal, Jane 364756 Smith, Bob 364758 The plan is to have each … | |
Hello, I have been working recently on an assignment which requires me to build a web application using JSP. After a few weeks grafting code I became frustrated with JSP, it just wasn't 'fun' and while I welcome the (almost) enforced MVC pattern it's hard to work passionately about something … | |
hi every1 .. i'm bsy doin project which has facility of markin attendance... i'm using JSP for that.. and by using session i hv employee's " empID". I hv made a dynamic calendar..which can move to previous and next months....resp. and displayed using <table> My idea is to mark employee … | |
I need to get information about the time taken by tomcat server to get restarted and also when i paste some war file inside Webapps folder i dont observe anything on the startup.bbat file............I mean it should register with that file I think there must be some property file with … | |
how to retrive the value from database and print browser using jsp and usebean, servlet i need code urgently help me | |
Hi all, I am new member in this community.I am a software developer in java/j2ee platform. Recently i have develop a web site in jsp. I use Tomact 4.1,Mysql data base . Now its working fine inside my LAN .Every one can access with my IP address in my LAN. … | |
Hi Guys! Can any one help me out... I just want to know how to create webservice in java or jsp? | |
i have OS sever2003 i have create four servlet files and one html file when i type URL of html file it execute but after that i click on submit buttto the firstservlet is not displayed an Error massage display that is "cannot display this page cannot find server or … | |
hi friends this is ram, i need java tutorials plz tell me online tutorial sites | |
I have 2 applets One applet adds in some labeled text fields and reads in some user variables. The second Applet Starts a simple pong game. As you may have already guessed I'm trying to get the pong game to start up with the values I've read in. (the values … | |
I am trying to acess Bean thorugh JSP using useBean tag ,but its giving me ClassNotfoundExcetption i think i am missing somewhere in structure of JSP program Can anyone tell me where shall i place this Bean class so it can be read Currently i have putted it inside WEB-INF … | |
Hi I am having problem compiling a java file Main.java which uses an object of another class, named Pet I am using Netbeans 5.5 and I don't know where to put the class file Pet.class. I don't have Pet.java No matter where I keep it the error message I get … | |
i m using window xp and jdk1.6.0. i set environment variables as follow user variables i creat new and in variable name "classpath" and in variable value .;C:\Program Files\Java\jdk1.6.0\bin;.;C:\World after that i edit system variable as follow i edit variable "path" in variable value I append "C:\Program Files\Java\jdk1.6.0\bin" right side … | |
anyone can explain to me what is the concept of inheritance and access modifier. actually, i can't understand how it be used in java program | |
hey guys im trying to write a simple caclculator. i have written the code and the functions for it but the the main when i try to use the Scanner function to get user input and to put it all together it does not work. the code is below i … ![]() | |
[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B] | |
i am using internet explorer using a form to save the results to a file but when i submit the form, a page comes up saying page can not be found with the error. "HTTP 405 - Resource not allowed Internet Information Services" any Ideas how to resolve this. | |
Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks. | |
I am new to JNDI, JTA, javax.sql though I am familiar with java.sql I want to access a database (a Derby database) using JNDI lookup and UserTransaction (as I want to learn about Distributed DB Transactions). I am using [b]Sun Java Application Server(SJAS) 8.2[/b] Database: [b]Derby[/b] Directory Services of : … | |
hey guys im supposed to write a simple calculator in java. Not in applet. Stack class has already been given and i was supposed to tokenize the input, have a function convert to take it from infix to postfix notation and eval to evaluate it. i have written the code … ![]() | |
In my JApplet, I am able to change the background color of the panel but not the currentSurface which is an instance of PaintSurface extends JComponent. Could someone please help me out? Many thanks [code] import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; public class Tanks extends JApplet … | |
Hello! Please help me! I display the data from the arrylist xx in the table. But the program shows the table several times. I did not notice that before. Now whenever I click the menu, it shows the table 26 times. What is the problem? I am in trouble. Please … | |
<code> <%@ page import="javax.portlet.RenderResponse,javax.portlet.RenderRequest,javax.portlet.PortletURL, javax.portlet.WindowState,java.util.*"%> <% System.out.println("Inside addCategory.jsp"); RenderResponse renderResponse = (RenderResponse)request.getAttribute("javax.portlet.response"); if (renderResponse == null) { out.println ("unable to get RenderResponse object"); return; } RenderRequest renderRequest = (RenderRequest) request.getAttribute ("javax.portlet.request"); if (renderRequest == null) { out.println ("unable to get RenderRequest object"); return; } PortletURL actionURL = renderResponse.createActionURL(); %> <% … | |
[INDENT]Hi, All I am new to servlets, i wrote one servlet file, it is compiling well.but if i try to run this servlet. Its giving Error like: "Exception in thread "main" java.lang.NoSuchMethodError: main". is their any problem with classpath, already i set servlet.jar file as a classpath.So let me know … | |
Hey everyone. I have a problem. I can't find why my code won't convert Fehrenheit to Celsius. :sad: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CTemp extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { CTemp frame = new CTemp(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); … | |
I can't find this typing error. Somewhere on Line 44. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Weight extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Weight frame = new Weight(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void createGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); Container window … | |
I get a tip of $8.0 when I want $8.4. What am I missing here? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tip extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Tip frame = new Tip(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void … | |
Background: > An n x n matrix that is filled with the numbers 1, 2, 3, ... n squared is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a program that reads in … ![]() | |
I am currently making a game were jam jars are mixed up and they must be placed in the correct numerical order. One pot must be picked up and swapped with wich ever one the user wants. I have the program working that they can dragged a jam jar to … ![]() | |
Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks. | |
Hi all , I developed Entity Bean(BMP) and i created Deployment Descriptor in NetBeans 5.5. I'm getting following error . Error: === [code] XML validation started. Checking file:/G:/my_prgs/Xml/learning/Store_Data/build/jar/META-INF/jonas-ejb-jar.xml... Referenced entity at "[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd[/URL]". schema_reference.4: Failed to read schema document '[URL]http://www.objectweb.org/jonas/ns/jonas-ejb-jar_4_0.xsd'[/URL], because 1) could not find the document; 2) the document could … | |
Hi I'm coding a game of towers in java. I'm having trouble moving a stack from one button to another. I have eventlisteners for buttons A and B. If Button A is clicked and then button B is clicked, the value at button A must be added to the value … | |
Hello. I'm using a JOptionPane to display some application information when the user selects the Help-About menu option. If the about option has been selected and you click on an alternative application (e.g. a browser) when you return to the application the JOptionPane is lost and the application can't continue. … | |
I am learning JSP can anyone tell me how shall i proceed with JSP I mean what should be sequence of things that will make learning convinent for me Please do suggest me which kinda aaplication i should make in JSP........some ideas I have done core java and servlets | |
anyone can help me.. i have a task to coplete below is the question : create class called Arithmetic for performing arithmetic process. use two integer variables to represent the private data of the class. provide a constructor function that enables an object of this class to be initialized when … | |
Hai friends please help me printing the file through Parallell port, iam doing project in comm ports, i want to print a particular file or string through parallel ports...thanks in advance. | |
I am taking a Java Beginner class, which I have explained in an earlier thread. I read the chapters and do understand them to an extent, but when it comes to doing the homework, I am at total loss. I have put in for a tutor, and hopefully one comes … | |
Hi all , I'm new to EJB Programming. I need your suggestion of which type of Entity bean i can use for my task . Here's the task i need to accomplish : ============================ I have data in XML now i need to store in SQL SERVER tables which i … | |
Hi All I m a C++ programmer and now I want to study Java... Can somebody tell me from where I can get a free download for the book Java Complete Reference Or Some other beginner level book... Thanks... | |
i'm currently in the middle of a Java programming assignment, and having quite a spot of bother! for some reason, when i run my code (which has no visible errors), a small window appears with the words Swing Example in blue italics. anyone got any idea what coud be causing … | |
write java to access classes that are saved in different files. write java code to read following string as input from user. "JaVa-Is-A-pRoGrAmMiNg-LaNgUaGe" Display and convert it into the following format. "Java is a programming Language" | |
HI everyone, i need to enter all those values and add them up. but have some trouble storing numbers to a array list. plz help~~! [import java.util.*; public class array { public static void main (String []args) { Scanner sc= new Scanner (System.in); int value; System.out.print("How many values are in … | |
hello everyone.i have just started programming in EJB.i am tring to make an application for online banking system.During the compilation, i am getting the error of missing return statement in all functions where retrun type is String.i am trying to get the output in a JSP page....here is one of … | |
I am new to JSP and was trying a very simple program that adds/Divide/multiply/Subtract 2 numbers I am taking two numbers from a web page and as per the button pressed performing the action on JSP page. I have kept a vraiable c for output If i write int c=0 … | |
Does any of you can recomend some usefull resorces on native compilers? | |
Hey guys, i jsut got this assignment and i have 1 week to implement it but i have no idea where to start. The link to the question is [URL="http://www.cs.sfu.ca/%7Emitchell/cmpt-126/a2/a2.pdf"]http://www.cs.sfu.ca/~mitchell/cmpt-126/a2/a2.pdf[/URL] and i have also attached it as a pdf. the Stack class refered to in the assignment is [code] class … | |
![]() | Hi, I am trying to store details in a Vector and then recall them using different search categories. I'm getting no errors but the details I enter are either not being stored or not being recalled. I don't know what one it is. I attached the code rather than copy … ![]() |
![]() | Hi, I cannot for the life of me figure out why I keep getting the error message, "cannot find symbol method methodname()" when I try to call methods from another method. I have tried changing the main method so its not static but it makes no difference. Anyone who could … ![]() |
The End.