output error

output error

this is my program

import java.io.*; public class separate { public static void main(String[] args)throws IOException { BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in)); String x; int ct=0; String str; System.out.println("Enter the string"); x=keyin.readLine(); int a=0; int len=x.length(); int k;int j=0; String l[]=new String[len]; for (k=0;k

        }


    }

if i enter "my name" as the input the output is only "my" what is the error.my actual out put should be"my name".
View Answers

December 15, 2010 at 2:22 PM

Hi Friend,

Let me know the purpose of this program.

Thanks

Ads









Related Tutorials/Questions & Answers:
output error
output error  this is my program import java.io.*; public class separate { public static void main(String[] args)throws IOException...]; for (k=0;k } } if i enter "my name" as the input the output
I/O Program output error
I/O Program output error  Hello All, I am working on a program that requries me to read and analyze a .txt file and output the results to a .txt file, but I am getting incorrect output. I have been successfull with part
Advertisements
output
output  Sir,I am experiencing some problems with the output of this program.I got some useful help this website,but the output of the program isn't producing what it should.let me explain the output below is what happen when
Error
state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower it shows me proper output. Please anybosy can give me remedy on that..... Thank you
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
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
error
error
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
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
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
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
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
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
output variable
output variable  if i want to print output of three variables when i wrote the code e.g SYStem.out.PRINTln(answer + answer1 + answer 2) only output of answer is getting printed out? can you help
What is the output if....
What is the output if....  Here is my code. what is the output...");   When we put 50 as a lower limit value, output comes: Entering... as a lower limit value, output comes: Entering the try block. Exiting the try block
output of the program
output of the program  public static int sum(List list) { int sum = 0; for ( Iterator iter = list.iterator(); iter.hasNext(); ) { int i = ((Integer)iter.next()).intValue(); sum += i; } return sum
input output
Input And Output       Introduction The Java I/O means Java Input/Output and is a part... used for writes byte to output stream. It implements a buffered output
xml output
xml output  generate an xml output in the following format <FileCount> <DOC>AA <RTF>BB <PDF>CC <Total>DD where AA=total number of .DOC files found BB=total number of .RTF files found,etc
what is the output?
what is the output?  public class MyAr{ public static void main(String argv[]) { int[] i=new int[5]; System.out.println(i[5]); } }   It gives ArrayIndexOutOfBoundsException as you haven't add element to array. Correct
what will the output
= (Parent) sonu; p.play(); What will be the output of above section of code
ModuleNotFoundError: No module named 'output'
, ModuleNotFoundError: No module named 'output' error will be solved. Thanks...ModuleNotFoundError: No module named 'output'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named
Input and Output package
Input and Output package  Hi guys, My professor used input and output... she used in.readint() out.writeln() commands to read input and print output. she created two new objects directly to use this statements. /* input and output
ModuleNotFoundError: No module named 'accessible_output'
named 'accessible_output' error? Thanks   Hi, In your...: No module named 'accessible_output' error will be solved. Thanks...ModuleNotFoundError: No module named 'accessible_output'  Hi, My
ModuleNotFoundError: No module named 'colcon-output'
'colcon-output' error? Thanks   Hi, In your python...;colcon-output' error will be solved. Thanks...ModuleNotFoundError: No module named 'colcon-output'  Hi, My
ModuleNotFoundError: No module named 'colcon-output'
'colcon-output' error? Thanks   Hi, In your python...;colcon-output' error will be solved. Thanks...ModuleNotFoundError: No module named 'colcon-output'  Hi, My
ModuleNotFoundError: No module named 'file_output'
;file_output' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'file_output'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named

Ads