Home Tutorialhelp Comment pl. solve my problem

 
 

Comment

mehul
pl. solve my problem,
April 20, 2008 at 5:46 AM

i am new with java
can any one solve my problem

Write a program called LineCensor that asks the user for a word to replace in some text, and the word to replace it with. The program then reads a line of text from the user and echoes the line back to screen replacing all occurrences of the first word with the second word. It only replaces the word being censored when it occurs independently in a line (i.e. not as a part of another word).
Enter word to censor: cat
Enter word to replace it: xxxxx
Enter line of text to censor:
The cat was curious about the other cat’s string
The xxxxx was curious about the other cat’s string


View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
JSP Servlet Questions

Solve this problem plzzz
Solve this problem plzzz  Prashant.jsp (this is my JSP file) <... kindly help me and check all those files and solve my problem as soon as possible... Prashant /Prashant.jsp i want my jsp file should ask for 2 

JSP Servlet Questions

Simple problem to solve - JSP-Servlet
Simple problem to solve  Respected Sir/Madam, I am... earlier. Its working in a fantastic way. My heartiest solute to Roseindia team. But in that I am facing a very very minute problem. The alert boxes are displayed 

JSP Servlet Questions

Simple problem to solve - JSP-Servlet
Simple problem to solve  Respected Sir/Madam, I am... earlier. Its working in a fantastic way. My heartiest solute to Roseindia team. But in that I am facing a very very minute problem. The alert boxes are displayed 

PHP Questions

Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok... With B Team when A Team Play With B Team Again Then Generate Error. I Am Solve This Problem With If...Else If...Else Statement But When the More Team 

Java Beginners

how to solve an internet connection problem
how to solve an internet connection problem  when i run my application it give me this error: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not yet implemented the problem is that i don`t know 

JDBC Questions

Small Bug How to solve in my code
Small Bug How to solve in my code  String season=""; pst...") + ","; it shows bug in findbugs tool.. but it executes successfully how to solve the problem 

Programming Tutorials

index
Flash Tutorials JSP Tutorials Perl Tutorials 

JSP Servlet Questions

solve this problem
solve this problem  I typed this program and compiled.The program is compiled but when i eneterd url in tomcat server. Its not giving error but only... in table please tell me the solution for thid problem import java.io.*; import 

JSP Servlet Questions

jsp problem
jsp problem  Hi every one plz give me answer for below question ASAP I created one JSP(used pre defined javascript in jsp to get rtf format in browser) which creats RTF Format in browser to enter data. MY question is after i 

JavaScript Questions

plz solve my query?
plz solve my query?  how to remove all the options from select control in html using java script?   JavaScript remove all items <html> <script language="javascript" > function removeAllItems(selectbox 

JDBC Questions

Solve my code
Solve my code  import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.io.*; public class ChangeDetails extends HttpServlet{ public void doPost(HttpServletRequest request,HttpServletResponse 

JavaScript Questions

solve my question shortly
solve my question shortly  <html> <head> <script> function checkphoneNumber(number){ if(/[^\d ]/.test(number)){ alert('It should contain numbers [0-9] only!'); document.getElementById 

Development process Questions

Problem in my code - Development process
Problem in my code  Plz go thru this code. I want to check login and pwd with database. Backend MsAccess , Table name : Reg , Dsn Name: JJ While... Friend, It seems that the jsp file you are executing or you are calling 

Java Beginners

help me to solve this problem..
help me to solve this problem..  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //book‚??s title double price; //book‚??s price 

Applet Questions

plz anyone can solve my
plz anyone can solve my  creat an applet prog which accepts the details of 10 customers like name , address , city , ect. and display it   import java.awt.*; import javax.swing.*; import java.awt.event.*; import 

JSP Servlet Questions

Jsp problem
Jsp problem  Hello friends.I want to share my jsp problem.I want to show all of my database(mysql) tables except two(user,manufacturer) in a jsp page.plssss help me 

Java Beginners

can interface solve this problem in java
can interface solve this problem in java  I have a JDialog which displays the calendar [from 2010-2020], i created this in a different class... this calander class. can interface solve this problem. If yes then how. pls 

Java Beginners

how to solve this problem for oracle connectivity
how to solve this problem for oracle connectivity  Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap ter could not establish the connection 

JSP Servlet Questions

Problem in record viewing in jsp - JSP-Servlet
it but when i rewrite that link one time it is working. this is my code in jsp page... please help me how to solve this problem i am not getting any error...Problem in record viewing in jsp  hai i have developed 

Java Beginners

how do i solve this problem?
how do i solve this problem?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access 

Java Interview Questions

help me about to solve my qustion
help me about to solve my qustion   An employee receives 15 SR per hour for the first 8 hours of week. After 8 hours (overtime) his rate becomes 20 SR per hour . Write a java class that ask a user to enter the number of hours he 

JavaScript Questions

i need help to solve this problem
i need help to solve this problem  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order. and Show step by step what queue will look like 

JSP Servlet Questions

pl z provide code for below question in javascripr or jsp - JSP-Servlet
pl z provide code for below question in javascripr or jsp  Once the parallel request happened, the user will not be able to continue his work, until the first request ends by itself and back to the home page   Hi 

JDBC Questions

Getting the Records in PL/SQl between Date Ranges - JDBC
Getting the Records in PL/SQl between Date Ranges  Getting the records Between the Dates in PL/SQL Database by using JDBC and display through JSP 

JSP Servlet Questions

Currency Symbol problem
Currency Symbol problem  Hi All, My Server side code... numberFormat.setCurrency(currency); int num = 12345; I want to print this in a JSP Page... to show this like RM 12345. How to solve this? Any help or idea is greatly 

HTML Questions

JSP - Problem of displaying result at webpage
JSP - Problem of displaying result at webpage  Can anyone please help to solve my problem below. My webpage has problem in displaying result position. The result should be display below my title. How do i solve it? Thank you so 

JSP Servlet Questions

how to solve this kind of error in Eclipse IDE?
how to solve this kind of error in Eclipse IDE?   i'm creating the Simple CRUD Using Jsp, Servlet and MySQL program and i'm using the eclipse, and i... are installed. but i'm getting exactly this error, any one out of this problem 

JSP Servlet Questions

JSP Problem - JSP-Servlet
JSP Problem  Hi, I have problem,this is my senario I have one jsp,this jsp having the 3 fields.let me take 3fields userName,emailAddress... on submit button).here my porblem is where i can store my data before clicking 

JSP Servlet Questions

jsp problem - JSP-Servlet
working but my problem is size of image. so can u just help?? code...jsp problem  here is a code for Retrieving image from mysql database through jsp. but i cann't set size of image when it was display so what should 

JSP Servlet Questions

jsp problem - JSP-Servlet
working but my problem is size of image. so can u just help?? code...jsp problem  here is a code for Retrieving image from mysql database through jsp. but i cann't set size of image when it was display so what should 

Java Server Faces Questions

Problem to print from my properties file - Java Server Faces Questions
Problem to print from my properties file  Hi, I am a new user of this site. It is very interesting. So this is my problem: I have a jsp file where i try to print some messages from my properties file but when i execute 

Java Server Faces Questions

Problem to print from my properties file - Java Server Faces Questions
Problem to print from my properties file  Hi, I am a new user of this site. It is very interesting. So this is my problem: I have a jsp file where i try to print some messages from my properties file but when i execute 

JSP Servlet Questions

displaying images and records problem - JSP-Servlet
to my question. The code you sent to me last week is not working. it doesn't display any record and image. I posted my question and since then no replay. Please, kindly help me to solve the problem urgently. Or in any other way to do 

HTML Questions

z-index always on top
z-index always on top  Hi, How to make my div always on top using the z-index property? Thanks   Hi, You can use the following code: .mydiv { z-index:9999; } Thanks 

JSP Servlet Questions

Facing Problem to insert Multiple Array values in database - JSP-Servlet
Facing Problem to insert Multiple Array values in database  Hai friend , Iam beginner in jsp and creating the project in shopping cart but ihave facing the problem while inserting the data in database. iam using the MsAccess 

JSP Servlet Questions

display records with images problem - JSP-Servlet
with a unique id. Also i wrote i jsp that link to servlet in order to display...). can anybody help me please, urgent. below is my codes: servlet...); int index=readImg.read(rb, 0, len); System.out.println("index 

Java Beginners

How to solve button problem - Java Beginners
to solve this problem. Thank you Sir, Yours truly, T.Ramesh Puttaparthy...How to solve button problem  I have created button (Open File Dialog... Open Dialog Box and from that displaying image files. But problem is I‚??ve used 

JSP Servlet Questions

DOM paring problem
DOM paring problem  Hi My code always show arrayindexoutofbound here is my code i am using arraylist to display and DOM parser to retrieve XML.... org.apache.jasper.JasperException: An exception occurred processing JSP page 

JSP Servlet Questions

DOM paring problem
DOM paring problem  Hi My code always show arrayindexoutofbound here is my code i am using arraylist to display and DOM parser to retrieve XML.... org.apache.jasper.JasperException: An exception occurred processing JSP page 

JSP Servlet Questions

displaying both image and records problem in jsp and servlet - JSP-Servlet
displaying both image and records problem in jsp and servlet  hello... friend, Code to help solve the problem. Download Images..., pictures in my database. i want the application to display all the fields 

JSP Servlet Questions

Session Problem in JSP - JSP-Servlet
Session Problem in JSP  I have developed a online feedback form in JSP platform. I have created normal session in JSP page. It is running in my... normally from Remote machine by only writing JSP code.  Hi friend 

JSP Servlet Questions

Simple problem Very Urgent - JSP-Servlet
Simple problem Very Urgent  Respected SDir/Madam, I am R.ragavendran.. Thanks for your superb reply. I got the coding. But I find a simple problem which i hava tried my level best to solve. A pop up window is opening 

JSP Servlet Questions

Jsp Code Problem - JSP-Servlet
Jsp Code Problem  I use DocType in my Jsp Page. The Links are not functioned after Applying the DocType. Could you tell me any way to activate the link. Thank You.   Hi Friend, Please send your code. Thanks 

Java Beginners

solve it - Java Beginners
solve it  Hi friend, I want to use switch case in jsp please let me know how to call page in jsp using include tag i want call this file using include tag please help me use switch statement in jsp 

JSP Servlet Questions

logout problem.. - JSP-Servlet
logout problem..  hi... first of all thanks for ur... but their is some problem with the the logout,i m not able to logout when that application runs . i m using eclipse with my sql as a back end.basically but i have 

Java Beginners

I have problem in my Project
I have problem in my Project  Dear Sir, i have problem in my project about Jtable i have EDIT JButton whenevery i was click on edit he is display all data from database but i want to select any row 

Java Beginners

Solve it - Java Beginners
is write here. no information display in the jsp file please solve it and let me...Solve it  Hi Friends, Thanks for continue reply.. I have...(); } this is the jsp file user.jsp Untitled Document 

Java Beginners

Solve it
Solve it  How to calculate the value which contains oparator and operand both using command line argument 

JSP Servlet Questions

Jsp ,Servlet Problem - JSP-Servlet
Jsp ,Servlet Problem  hi, m new to jsp n Servlet. i really find ur tricks very effective.Last time u had helped me to connect my java program with oracle. it worked wonders. now i m starting jsp n servlet learning.. pls 

Struts Questions

My Eclipse deployed problem. - Struts
My Eclipse deployed problem.  Dear All, I am facing a problem. When First time I am deploying a web project in eclipse in jboss its fine but, when I am changing the project name by pressing 'f2' and then deploying 

Framework Questions

Jsp include page problem
Jsp include page problem  I have included footer.jsp in all my pages. It is working in all pages except search.jsp. In search.jsp (Old footer.jsp content is displayed ) How can I rectify this?   Hi, You have to delete 

Java Beginners

how to send my system.out.println in a class file to a jsp in Struts2
how to send my system.out.println in a class file to a jsp in Struts2 ... + " at line " + hm1.keySet() + " and index "+ hm1.values() ); I want to sent this to a JSP page 

Java Beginners

I couldn't solve it
I couldn't solve it  *A customer who wants to apply for getting a car license should provide information about the brand of the car... the brand (his index in the array of employees). The second one is the turn 

JSP Servlet Questions

JSP code problem - JSP-Servlet
JSP code problem  Hi friends, I used the following code...: <% //to get the content type information from JSP..., contentType.length()); int pos; //extracting the index of file pos 

JSP Servlet Questions

Tooltip problem - JSP-Servlet
Tooltip problem  In my project i used google map...I want show tooltip on marker when marker created not on marker event like mouseover,click 

JSP Servlet Questions

java validation problem - JSP-Servlet
to do this? Can anyone gives the answer for this problem? Thanks in advance   Hi Friend, Please visit the following link to solve your problem. Here is the link http://www.roseindia.net/jsp/user-registration-form 

Java Beginners

solve this
solve this   Create a student class. The student object should have studentid, studentname, subject and marks as properties. Also generate the getter and setter methods. Create 5 objects of this class and populate values 

JSP Servlet Questions

Array problem - JSP-Servlet
.. Bur my problem is that if the pop up window contains only 1 record 

Struts Questions

Radio Button Problem in jsp.
Radio Button Problem in jsp.  I have a small doubt in my application, my requirement is to get a "single selectible row", I generated a radio button... clear my doubt.and disabled all previous values. myjsp is like that < 

JSP Servlet Questions

PROBLEM IN ACCESSING JSTL - JSP-Servlet
PROBLEM IN ACCESSING JSTL   hii i m vikram ... i am using jsp application with tomcat 4.1 .and i want to use JSTL in my jsp page ...so how can i use JSTL in my page .. and i install jakaerta-taglibs-standard-1.1.2 in directory 

JSP Servlet Questions

pagination problem - JSP-Servlet
(),my problem is that where i have to put & how to do pagination? my code 

JSP Servlet Questions

pagination problem - JSP-Servlet
(),my problem is that where i have to put & how to do pagination? my code 

Blog

Site map Index
Tutorial  | J2ME Tutorial | JSP Tutorial | Core Java Tutorial...; | Java Servlets Tutorial | Jsp Tutorials | Java Swing Tutorials 

Java Beginners

jsp and bean problem
jsp and bean problem  Hi i have the following jsp code... Can you plz help me in separating the code to bean? I'm new to bean and need it for my project...Plz help...Its quite urgent... Regards Priya <%@ page import 

Java Beginners

What's wrong with my pagination code in JSP?
What's wrong with my pagination code in JSP?  Dear experts, I've...; print("code sample");   JSP Pagination The given code retrieves...()){ totalRows=rs2.getInt("cnt"); } %> <html><h3>Pagination of JSP 

JSP Servlet Questions

arraylist problem - JSP-Servlet
arraylist problem  hello thanx a lot for ur reply. i m sending u my code once again only in which i m facing the problem. /* * To change this template, choose Tools | Templates * and open the template in the editor 

JSP Servlet Questions

arraylist problem - JSP-Servlet
arraylist problem  in my following code i have used a condition "if". the else part is giving desired result. but the if part is giving the output.... It would be good for me to provide you the solution if problem is clear. Thanks 

Java Beginners

Solve
 

Mobile Applications Questions

My screen EPAD is broken ...please help
My screen EPAD is broken ...please help   iam in iraq and my screen EPAD is broken ,.please help..can tel me a place to join it to solve this problem ?..Sory 

Java Beginners

HttpSession problem :(
HttpSession problem :(  i want to ask that do i need to define httpsession in every servlet or jsp in my web application? if yes, then on which servlet? the very first one like my welcome page which comes after login page 

XML Questions

creating index for xml files - XML
cases, more than one file may have same name. So, my index file would be like...creating index for xml files  I would like to create an index file for xml files which exist in some directory. Say, my xml file is like below 

JSP Servlet Questions

how to point my jsp form action to servlet? - JSP-Servlet
how to point my jsp form action to servlet?  I am currently using... was trying to point my jsp action to my servlet.(f.action="../fyp.servletLogin";) fyp is the folder that stores my servlet. Here is my function code in jsp, when user 

JSP Servlet Questions

problem without session tracking - JSP-Servlet
tracking   Hi friend, Please Give in Details to solve the problem...; Hi friend, Please Give in Details to solve the problem. For read...problem without session tracking  i want to see the code in which 

JSP Servlet Questions

Capturing JSP Content Within My Strut Action Servlet - JSP-Servlet
Capturing JSP Content Within My Strut Action Servlet  My end goal is to be able to grab the content from the JSP from within the calling servlet... a dispatch to the JSP and is some how able to hold onto the response so as to be able 

Java Beginners

database problem
database problem  I did connect my jsp page to database and it showed the result on another jsp page but i want to show the data of that field on which i click to mouse from the jsp page where all the data field has been showed 

Java Beginners

database problem
database problem  I did connect my jsp page to database and it showed the result on another jsp page but i want to show the data of that field on which i click to mouse from the jsp page where all the data field has been showed 

Struts Questions

Pls review my code - Struts
Pls review my code  Hello friends, this is my code in struts action class this page contains checkboxes and radiobuttons also. when i enter the submit it shows me blank page. can anybody solve my problem its urgent. help me 

JSP Servlet Questions

Tomcat installation problem - JSP-Servlet
Tomcat installation problem   Hello I have installed Tomcat and my startup and shutdown programs are working but the problem is i couldnt open tomcat homepage "http://localhost:8000/"..I am awaiting for response..Thanks 

Java Beginners

Problem
(); stdIn.close(); echoSocket.close(); } } this is my code, compiled 

Java Beginners

Problem
(); echoSocket.close(); } } this is my code, compiled with no errors, but when running giving 

Development process Questions

menu problem
menu problem  Hi to all , I am inserting a menu in my jsp... the index.html file according to my need then i convert it into index.jsp ,I deployed it to the tomcat and when i run my application , an extra link appears on my header 

Java Beginners

including index in java regular expression
including index in java regular expression  Hi, I am using java... in between. My pattern works fine if the match is found in the middle of the input..." the using my patterns i get result as "OnRioAmazonas". Whant i want to know 

JSP Servlet Questions

problem in record viewing in jsp - JSP-Servlet
and servlet and back end mysql actually what is my problem is i have to everytime... for my problem. i have to finish it today. i dont know what is the problem...problem in record viewing in jsp  hai i send the code can you please 

JSP Servlet Questions

javascript code problem - JSP-Servlet
u send is not my actual requirement.first look this code. Subject...; "> in above code which is jsp and struts form bean... in each row and submit the form.now my query is when i submit the form,the whole 

Java Beginners

Servlet problem
problem from last three month and now i hope rose india developers will definitely help me. I built a web application using jsp, servlets . My web application... connectivity code it works but problem is with servlet page. My servlet code 

SQL Question

PL/SQL tables
PL/SQL tables   hii, Describe the use of PL/SQL tables ?   hello, PL/SQL tables are scalar arrays that can be referenced by a binary integer. They can be used to hold values for use in later queries or calculations 

JSP Servlet Questions

problem connect jsp and mysql - JSP-Servlet
problem connect jsp and mysql  hello, im getting an error while connecting jsp and mysql. I have downloaded the driver mysql-connector...\WEB-INF\lib. I have also added the driver to my classpath C:\Program Files\Apache 

JSP Servlet Questions

uploading problem
(); } } } } %> my problem...: firstly...uploading problem  i use glassfish server.. using netbeans for jsp.... then problem solved... bt real problem is when i upload files fusing mozilla 

JDBC Questions

Insert option does not work in my jstl... - JDBC
Insert option does not work in my jstl...  I have problem with this jstl code... This will extract and displays details from xml... But i cant able to store that values in a database... Pls solve my problem...... Joe 

JSP Servlet Questions

how should i can solve
how should i can solve  Web based program - Input - Person's contact details with Passport Number as Unique Key. Save data in to oracle / MySQL. Output - List of Persons saved in the database. Technology to be used - JSP 

JSP Servlet Questions

servlet code problem - JSP-Servlet
servlet code problem  This is my JSP code index.jsp Sync Data Sync Data Please use the following input box to upload file or enter the user id in input box directly. Upload File: Enter UserId 

JSP Servlet Questions

servlet code problem - JSP-Servlet
servlet code problem  This is my JSP code index.jsp Sync Data Sync Data Please use the following input box to upload file or enter the user id in input box directly. Upload File: Enter UserId 

JSP Servlet Questions

apache tomcat problem - JSP-Servlet
\;"; i installed my apache tomcat in c: whats wrong with this   

Ajax Questions

ajax code please help to solve this........
ajax code please help to solve this.  in this i am trying to get data...="tiles" %> <jsp:directive.page import="p.form.BirthForm"/> <jsp:directive.page import="java.util.ArrayList"/> <!DOCTYPE html 

Ajax Questions

problem getting servlet:xmlHTTP.status=404 - Ajax
object.The problem is my script is unable to get the servlet in which i have written the query to get the response. If i use a jsp in the "url" instead...problem getting servlet:xmlHTTP.status=404   hi, ihave a text field 

JSP Interview Questions

jsp - JSP-Interview Questions
jsp  hai this is jagadhish my questuion is in my p.c,When ever i open my jsp page in IE, it will not open related form.It will open only the code..., Plz give full details with source code to solve the problem. For more 

JSP Servlet Questions

problem of static in jsp page by multiple user access
problem of static in jsp page by multiple user access  hi , i am continuing my online exam project,but i have a Singleton class which i am invoking from my jsp page , ths page can access by more number of users .every user 

JSP Servlet Questions

jsp problem
jsp problem  Hello Friends, I want to show one page for 5 seconds and after that i want to redirect the page to another URL 

Java Beginners

doubt in my program code - Java Beginners
doubt in my program code  i have developed a web browser... the name on that button.can u please help me out to solve this problem.if u need.... It would be good for me to provide you the solution if problem is clear. Plz send code 

JSP Servlet Questions

Problem in jsp.
Problem in jsp.  hello friends, I have a problem in jsp.I want to insert data, which is given by user through a html page into a table.And the table..." action="http://localhost:8080/examples/jsp/insertdata.jsp"> <table> < 

Advertisements Advertisements
 

 

 

DMCA.com