Home Tutorialhelp Comment that the problem that the error i am getting

 
 

Comment

saba
that the problem that the error i am getting,
February 21, 2008 at 12:22 PM

import chn.util.*;
import apcslib.*;

public class PalindromeTester
{
public static void main(String[] args)
{
Palindrome pali = new Palindrome ();
pali.start();
char[] orignal = sentence.toCharArray();
char[] temp = new char[0];

for(int i=0,j=0;i< orignal.length;i++)
{
if(orignal[i]!=' ')
temp[j++]=orignal[i];
}
System.out.println (temp);
}
}
_____________________________________
--------------------Configuration: <Default>--------------------
G:\PalindromeTester.java:18: cannot find symbol
symbol : variable sentence
location: class PalindromeTester
char[] orignal = sentence.toCharArray();
^
1 error

Process completed.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
RMI Questions

:( I am not getting Problem (RMI)
I am not getting Problem (RMI)  When i am excuting RMI EXAMPLE 3,2 I am getting error daying nested exception and Connect Exception   

Struts Questions

i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
i am getting the problem when i am downloading the pdf file from oracle 10g database  if i created the pdf file from pdf machine,it is storing... but it is not downloading .Please help to me.i am getting the below error when downloading 

Swing AWT

i am getting an error in adding a menu item to a menu.
i am getting an error in adding a menu item to a menu.   i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way 

JavaMail Questions

problem getting password - JavaMail
problem getting password  hi i am trying to get password but igot following error Error sending mail:javax.mail.MessagingException: Could... is: java.net.ConnectException: Connection timed out: connect please help 

Struts Questions

i am Getting Some errors in Struts - Struts
i am Getting Some errors in Struts   I am Learning Struts Basics,I am Trying examples do in this Site Examples.i am getting lot of errors.Please Help me 

JSP Servlet Questions

i am getting multiple values in listbox
i am getting multiple values in listbox   hi sir, i am using... table group by stuname) order by a.name in a subquery multiple recdates i am getting its working fine, but in main query also i am getting multiple name 

JavaScript Questions

autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
autocomplete(): Spring mvc with jquery: I am not getting correct value... related birds whenever we give input in the text field. But i am getting the wrong... bird names , but whenever i selected any bird in the text filed the am getting 

Hibernate Questions

I am getting this exception
I am getting this exception   Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java 

Hibernate Questions

I am having problem with configuring Hibernate sessionfactory. Please Help
I am having problem with configuring Hibernate sessionfactory. Please Help  Sir, I am having problem with configuring Hibernate sessionfactory.. I was using the old version of Hibernate before now I am using Hibernate 4 

JDBC Questions

I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect 

PHP Questions

getting error in your login form code
getting error in your login form code  i tried your code for login form but i am getting an error.the error is undefined index userid and password.the code is $fuser=$POST["userid"];. how to solve this problem please help me 

JDBC Questions

data type used to store name.(getting an error)
data type used to store name.(getting an error)    Statement stm...); if(rs.next()) { ------- this is the code i have and i am getting an error like dis: "ename cannot be resolved to a variable" whats 

Development process Questions

Getting connect error in Jmeter - Development process
Getting connect error in Jmeter  Hi, Am trying to run a simple application in Jakarta Jmeter using HTTP request sampler. I am getting the below error. Please help me in viewing the results. Pl specify if there is any possible 

Spring Framework Questions

Getting an error :(
Getting an error :(  I implemented the same code as above.. But getting this error in console... Console Oct 5, 2012 10:18:14 AM...:SpringMVC' did not find a matching property. Oct 5, 2012 10:18:14 AM 

Java Beginners

Problem in getting file path in js
Problem in getting file path in js  hi, I am using ofbiz framework , How i can get the file path in javascript for input type = "file" and i am using only firefox not other browser. so please help me it is very important for me 

Development process Questions

getting a problem in execution - Development process
the whole file i am getting a problem like in server.properties file...getting a problem in execution  hi friends i have a problem in imcms.... at imcode.server.Imcms.start please check the error if necessary i will send 

JSP Servlet Questions

I am getting Undefined in Text Box Very Urgent - JSP-Servlet
I am getting Undefined in Text Box Very Urgent  Respected Sir/Madam, I am R.Ragavendran.. Thanks for your superb reply. I got the coding. But I find... and clicking select button, The pop up window gets closes. But, i am getting 

RMI Questions

using spring rmi+maven but i am getting this exception
using spring rmi+maven but i am getting this exception  D:\Nexustool... is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception... by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception 

Spring Framework Questions

I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined - Spring
I am getting error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'IS_AUTHENTICATED_ANONYMOUSLY' is defined  Hello, I am getting error 

JSP Servlet Questions

help me in solving this error
help me in solving this error  Hello, i have installed tomcat 6.0, i am getting following error while running application... that problem may be in your code. So please post your code. Thanks   Hello 

JavaMail Questions

when sending the mail from java I am getting the below error - JavaMail
when sending the mail from java I am getting the below error   when sending the mail from java I am getting the below error : Exception in thread "main" java.lang.NoClassDefFoundError: javax.mail.internet.MimeMessage 

Java Beginners

Begineer Help Help Please Thanks A million ) I am using Jcreator
Begineer Help Help Please Thanks A million ) I am using Jcreator  ...(Arrays.toString(Year)); The problem of this coding is that it will show null values before...: $ 1.00 Retained Earnings: $ 2.00 I don't know how to sort the array 

XML Questions

Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me 

Development process Questions

Getting Error - Development process
Getting Error   Hi , i am getting error while executing this code. I just want to store date in to database. Dont mistake me for repeated questions. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number 

Java Beginners

getting problem in storing & retrieving value in database
getting problem in storing & retrieving value in database  Hello everyone i am doing a project where my back end is ms access & i want to store...; if i saved it as double then i couldnt retrieve it so pls help me 

JSP Servlet Questions

please help me solve this problem when i am create database connection using servlecontext
please help me solve this problem when i am create database connection using servlecontext  hi... I have create a database connection using servletcontext . in this code when i login first time it will exceute sucessfully 

JSP Servlet Questions

Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.
Getting error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver.  I am doing project in JSP with database WampServer and glassfish as server .when i done database connection then i get an error 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

JSP Servlet Questions

Tomcat Error:
Tomcat Error:   Hi, I am not able to start the tomcat server. If I try to start it then I am getting the below error. "coyote connector has not been started" Could some body please help me to solve the problem??? Thanks a ton 

Java Beginners

getting an error when set classpath
getting an error when set classpath  Hello Everyone! i have used hssf model for reading excel sheet in my project & i have set classpath... run it, it gives an error "could not find or load main" please help me 

PHP Questions

Please Help To Solve My Problem
With B Team when A Team Play With B Team Again Then Generate Error. I Am Solve...Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok... Are There Then It's Large Codding So I Need To Help To Another Way To Do 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import... out and also execute the last portion of the code...and giving error i thought... is calling by a jsp..there is no problem,in this servlet the if condition always 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import... out and also execute the last portion of the code...and giving error i thought... is calling by a jsp..there is no problem,in this servlet the if condition always 

Java Beginners

I/O Program output error
file, but I am getting incorrect output. I have been successfull with part...I/O Program output error  Hello All, I am working on a program... in advance for any help. Here is the code I have come up with so far: print 

Struts Questions

Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am... function in JSP. It will get all details of image section from database. *I am... when I refresh the page.* Note: Header section is getting loaded always Could 

Framework Questions

facing problem plz help me out - Framework
Facing problem plz help me out  hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet 

Development process Questions

error for getting the data from an api using br.readLine - Development process
error for getting the data from an api using br.readLine  hi... can you help to solve this problem... executing the above while loop the application is hanging . i find 

Java Beginners

problem in getting mail exchange records(MX) using DNS in java
problem in getting mail exchange records(MX) using DNS in java  Hi...) at java.lang.Thread.run(Thread.java:619) Note : I am using glassfish v3. above code works fine......."+attributeMX); } catch(Exception e){ out.println("Error ****"+e 

JSP Servlet Questions

error
error  I am running a program insert into statement in sql using.../ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest 

JSP Servlet Questions

Getting an exception - JSP-Servlet
Getting an exception  Dear sir,while executing this code i am getting a following error ,i am sending my code also please help me sir... //following...) session.getAttribute("ArrayValue"); } for (int i = 0; i < arlValue.size(); i 

JSP Servlet Questions

Getting an exception - JSP-Servlet
Getting an exception  sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code . thanks in advance.. java.io.IOException: Invalid 

JSP Servlet Questions

Getting an exception - JSP-Servlet
Getting an exception  sir i used u r code for sending a mass email by reading an excel sheet,but i am getting a following error so please help me if any changes in code . thanks in advance.. java.io.IOException: Invalid 

JavaScript Questions

Getting NumberFormatException
Getting NumberFormatException  Thanks for the reply. Its works well... garbage value. I dont have the idea what is going wrong. Please give me some idea to solve this problem. I'm giving you the code below. Code: `print("<% String 

Java Beginners

hello there i need help
transaction? thats the problem. I dont know how to start this program because i am a beginner, and aside from that i am really eager to learn java please help...hello there i need help  : i need to do a program like 

JSP Servlet Questions

Getting NumberFormatException
help me out of this problem. CODE: <% String t2=request.getParameter...Getting NumberFormatException  Hello Sir, I'm using Integer.parseInt(String str) function which returns a NumberFormatException(Unknown source). I 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path..."); } catch(Exception e) { System.out.println(e); } %> when i compiled it i got error java.io.filenotfoundexception....... please go through it and help me 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path..."); } catch(Exception e) { System.out.println(e); } %> when i compiled it i got error java.io.filenotfoundexception....... please go through it and help me 

SQL Question

sql syntax error help
sql syntax error help  this query show syntax error .. i am unable to figure it out insert into order (orderdate, dpname, paymethod, tamount...') where is the error ?   Please send the error details and the datatype 

JDBC Questions

i am inserting an image into database but it is showing relative path not absolute path
i am inserting an image into database but it is showing relative path...) { System.out.println(e); } %> </body> </html> when i compiled it i got error "java.io.filenotfoundexception" please go through it and help me 

JSP Servlet Questions

Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how 

JSP Servlet Questions

Getting File path error - JSP-Servlet
Getting File path error  I have a requirement where i need to get certain properties on application login page start itself. I an currently using... (request.getRealPath) is deprecated. Second problem is that when i create a war 

Java Beginners

can i know the error in this code... am unable to run this code
can i know the error in this code... am unable to run this code  ...}; int n=arr.lenght; System.out.println("length of array:"+n); for(int i=0;i System.out.println(arr[i]); } }   You have used incorrect symbol in your 

Java Beginners

Still getting the http 404 error - Java Beginners
Still getting the http 404 error  Dear experts, I refer to the last solution given to me. A few clarification:- 1. I must stress... is userid? Anyway, whatever I do, I still receive the http 404 error...saying 

Java Beginners

error
"+it); } } this is my program i am getting an error saying cannot find symbol class string 

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.... H and I join the queue h. G leaves the queue i. H and I leave the queue 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern 

Java Beginners

Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5 

JSP Servlet Questions

<%=request.getHeader("referer")%>,getting null in jsp - JSP-Servlet
,getting null in jsp  Hi, I am getting null in in jsp.Could you help on this regards. Thanks Ajay   Hi friend, Code to help in solving the problem : Thanks 

JavaScript Questions

this is my javascript code and i am not understanding the mistake in this,please help me?
this is my javascript code and i am not understanding the mistake in this,please help me?  <html> <h2>Form Validation</h2> <script language = "Javascript"> function checkEmail 

Struts Questions

Struts2 Filter not getting initialised in WAS 8.0
Struts2 Filter not getting initialised in WAS 8.0  Hi All, Am facing a problem in the Struts2 initialisation part. My application is developed in Tomcat 5.5 and deployed in WAS 8.0 When its being launched, am getting the error 

JSP Servlet Questions

Logic error? HELP PLEASE! :(
Logic error? HELP PLEASE! :(  Hello Guys! i have a huge problem. What I want to do is there is a retrieve jsp page. In the retrieve jsp page... in the email. then use the email to get the date and populate into the dropdown list. I 

JDBC Questions

error in driver
error in driver  i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error 

JSP Servlet Questions

why i'm getting this error?The import javax.servlet.http cannot be resolved
why i'm getting this error?The import javax.servlet.http cannot be resolved  hey buddy's i had one problem in servlet in jsp program. Exactly i'm getting this error, why i'm getting this error and how to solve this error., Have 

Ant Questions

getting files from VSS
getting files from VSS  I am not able to get the files from VSS.I am using following code. and just let me know is localpath attribute is for our local project path? I am getting the problem in this line failed 

JDBC Questions

runtime error
runtime error  still i am getting runtime error as:the specified dsn...;Hi, This error is related to some OS related problem. "dsn contains an architecture mismatch between the driver and application" To solve this problem you 

Java Beginners

error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME 

Java3D Questions

Error in JfreeChart
Error in JfreeChart  I am getting an error when i am using jfreechart for graph generation, that is: D:\my\linechart.java:5: package org.jfree.chart... solution to the problem.   Hi Friend, Please go through the following 

Java3D Questions

Error in JfreeChart
Error in JfreeChart  I am getting an error when i am using jfreechart for graph generation, that is: D:\my\linechart.java:5: package org.jfree.chart... solution to the problem.   Hello Friend, Please visit the following link 

Spring Framework Questions

Getting HTTP 404 error in Spring web MVC with Hibernate Integration
Getting HTTP 404 error in Spring web MVC with Hibernate Integration   Hi, i am Getting HTTP 404 error in Spring web MVC with Hibernate Integration after click on submit button. so provide me a better solution.    

WebSevices Questions

I am from .net background, I want to learn SOA.
I am from .net background, I want to learn SOA.  Hi I am from .net background, I want to learn SOA. Could it possible for me to learn SOA, I suppose SOA includes Java. I dont have knowledge of java. Please help Thanks   

Java Beginners

Jcommon error
........... I am not able to solve this problem, why is this giving me exception. plz...Jcommon error  hi................. what u had said i have downloaded the jar file the latest one then also its giving me same error can u tel me why 

Java Beginners

Compilatation problem - Java Beginners
Compilatation problem  Hi All, I had uninstalled Java1.5 and installed java1.4 for some reasons. Before i was able to compile and execute the code but after installing 1.4 and setting up the classpath also i am getting 

Java Beginners

Some error find whats the problem
code i unable to understand that what's the problem in above code because output...Some error find whats the problem  import java.io.*; public class...=br.readline(); String str=" "; String st=" "; for(int i=0;i<=s.lenth();i 

Java Beginners

connectivity problem
connectivity problem  i am facing error in Class.for name statement please help me correct it the error is ""java.lang.ClassNotFoundException... connectivity still i am facing this error* ================================oracle 

Security Questions

BCMWLTRY.EXE error
BCMWLTRY.EXE error  Yesterday I did system restore after it I am getting two problems. 1. showing an error message An unhandled exception... program which I uninstalled. But It is not working and its not uninstalling 

Hibernate Questions

Database Error - Hibernate
by multiple/single users I am getting the following errors. Lock wait timeout...Database Error  Hi, I am working with Struts 1.2---- AJAX...;Hi I am sending u a link where u can find lots of example which helps to solve 

Java Beginners

Getting Computer Date in java
Getting Computer Date in java  Hi , I want to get the PC Date... but this.. String strDate = new Date(); I get this server error, "The type Date is ambiguous". I've also tried Date date = new Date(); ... but it get's the same error 

Ajax Questions

Nested Ajax--not getting output
any answer..... So, i have stuck this problem please, help me out.   ...Nested Ajax--not getting output  Hi everyone... I have two.jsp page from that , with the help of ajax i have called three.jsp. So, i have used DIV 

Hibernate Questions

hibernate problem
:12) i am getting this prob while running my hibernate program in Eclips please...hibernate problem  please help me.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please 

Struts Questions

getting db in action class
getting db in action class  hi, Am usin struts in ma application... n i need to interact with the db .. so i used.. getDataSource(request) but it gives me an error.. java.lang.NoSuchMethodError: LoginAction.getDataSource(Ljavax 

PHP Questions

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem?  I am trying to assign... the problem 

PHP Questions

I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what?s the problem?  I am trying to assign... the problem 

Java Beginners

problem in getting mail exchange records(MX) using DNS (glassfish(struts2))
problem in getting mail exchange records(MX) using DNS (glassfish(struts2...); } catch(Exception e){ out.println("Error eee..."+e); e.printStackTrace();; } %> Error is : SEVERE: javax.naming.NotContextException 

JSP Servlet Questions

Tomcat Error: coyote connector has not been started
Tomcat Error: coyote connector has not been started  Hi, I am not able to start the tomcat server. If I try to start it then I am getting the below error. "coyote connector has not been started" Could some body please help me 

Hibernate Questions

getting following error org.hibernate.AnnotationException: No identifier specified for entity: inheritance_tutorial17.TwoWheeler
getting following error org.hibernate.AnnotationException: No identifier specified for entity: inheritance_tutorial17.TwoWheeler  when i am running following code i am getting following error... package inheritance_tutorial17 

JDBC Questions

i have installed oracle 10g (both ee and xe) editions... while am installing i found port num as 1521 for ee, 1522 for xe
i have installed oracle 10g (both ee and xe) editions... while am installing i... 10g (both ee and xe) editions... while am installing i found port num as 1521... run this prog.... i got error like driver is registered 

JSP Servlet Questions

Not getting the logic - JSP-Servlet
Not getting the logic  there is one sub module in my project.In... i need to send those information to another page to send mail to those candidates about there interview details. the problem is, my contains one action 

Java Beginners

i am confused here on what to write can some 1 help out here - Java Beginners
i am confused here on what to write can some 1 help out here  i don't quite understand how to code it so can some one help out 

Swing AWT

problem in swing-awt
problem in swing-awt  I am doing project in core java and i am facing one problem. I have to add command prompt(terminal) to the fream at bottom but not getting the solution. So please help me. thanks and regards, Aakash 

Java Beginners

Option onclick am not getting the value ..
Option onclick am not getting the value ..    function get_val( tot_val ) { document.getElementById('TextBox1').value = tot_val; } <tr> <td><textarea id="TextBox1" name=textarea1 readonly="readonly 

JSP Servlet Questions

Getting an exception - JSP-Servlet
Getting an exception   sir i am Getting following exception when.../apache/poi/poifs/filesystem/POIFSFileSystem I have used ur code import... dataHolder) { for (int i = 0; i < dataHolder.size(); i++) { Vector 

JSP Servlet Questions

problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me 

JSP Servlet Questions

JSP Error - JSP-Servlet
JSP Error  When i am running my registration.jsp getting following error. HTTP Status 500...("Exception in Query"+e.getMessage()); } return i; } } Please help 

JSP Servlet Questions

Having problem with image upload....
Having problem with image upload....  I am uploading profile pictures in my site.But after uploading when I visit my home page where it is supposed... caching problems.Please help me.I am using JSP.   1)page.jsp: < 

JSP Servlet Questions

javax.servlet not found error
javax.servlet not found error  why iam getting javax.servlet error while running my servlet program...after setting the classpath also i am finding that problem 

JSP Servlet Questions

page is not getting loaded when refreshing???
page is not getting loaded when refreshing???  I am loading an image.... It will get all details of image section from database. I am getting header section always but page is not getting loaded after the header section when I 

Java Beginners

JFREE error again
is the error which i am getting plz help to solve this error plz help.... but then also its giving me error i am able to compile the code but now when i am running the code i am getting expection that: Exception in thread "main 

Advertisements Advertisements
 

 

 

DMCA.com