can i know the error in this code... am unable to run this code
class DemoArray
{
public static void main(String args[])
{
int arr[]={12,13,14,15};
int n=arr.lenght;
System.out.println("length of array:"+n);
for(int i=0;i
System.out.println(arr[i]);
}
}
View Answers
May 30, 2012 at 2:54 PM
You have used incorrect symbol in your code like < >. The for is improper and not completed. Moreover, you have open and close braces properly. Anyways, we have modified your code. Here it is:
class DemoArray {
public static void main(String args[]) {
int arr[]={12,13,14,15};
int n=arr.length;
System.out.println("length of array:"+n);
for(int i=0;i<n;i++){
System.out.println(arr[i]);
}
}
}
Ads
Related Tutorials/Questions & Answers:
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
Advertisements
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
Can i write JavaScript code in AjaxResponse Code ?
Can i write JavaScript
code in AjaxResponse
Code ? Hai Every Dynamic's
We can't write JavaScript
code in Ajax Response Code.Why because it takes...'s not working.rather than that
i try to created on innerHtml document.
here
Code error
seconds)
Hw
can i correct this
code????????
Basically, the Exception...)
read.close();
}
}
}
While using this it shows
error as:
run...
Code error package trail;
import
Run a simple EJB code
Run a simple EJB code
I found the
code this. However, as
I have no idea with EJB,
I can't understand how to
run it.
Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to
run it (any platform
Run a simple EJB code
Run a simple EJB code
I found the
code this. However, as
I have no idea with EJB,
I can't understand how to
run it.
Can anybody help me by giving steps (by giving snapshots or writing full procedure)how to
run it (any platform
Swing error in code
_ON_CLOSE);
sc.setVisible(true);
}
}
I am getting...Swing
error in code import java.rmi.*;
import java.awt.*;
import... Panel(new GridLayout(2,2));
SInterface
i;
public SClientsr
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
i want code for these programs
i want
code for these programs Advances in operating system
Laboratory Work:
(The following programs
can be executed on any... use of a bounded buffer (size
can be prefixed at a suitable value
Java code error - Java Beginners
Java
code error Hi,
I am using a MooreQuery to look for neighbors...()){
.................................................
Even though
I have the if (query != null),
I still get a nullPointer exception from the query when trying to iterate ,
Can anyone help me
Jsp error when i run this a jsp file
Jsp
error when
i run this a jsp file hi
I got this
error when
i run the jsp file in IDE and outside also
please help me...)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Please post your
code
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
code
code hi
I need help in creating a java
code that reminds user on a particular date about their festival.
i have no clue of how to do it..
am looking forward to seek help from you
code
I am not able to do so. Is it always necessary to do this when using function...code Heris the javascript code.It works ffine but
i would like to
know what is the meaning of line this.SetData=SetData and next three lines after
code
code
i have four textboxes.whenever
i click on up,down,left or down arrows then the cursor move to another textbox based on the key pressed.i want
code for this in javascript
one error but i dont know how to fix it o_O!!!
one
error but
i dont
know how to fix it o_O!!! where is the mistake here ??
import java.utill.Scanner;
public class Time
{
public static void...");
}
}
the compilar told me that there is only one
error...
thx
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