Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2008, 06:29 AM
Member
 
Join Date: Jan 2008
Posts: 3
lalithalydia is on a distinguished road
Error
Dear friends,
below is my coding, it shoots error. can you pls help me to identify my error line

if(code>1);
a=b+c
else
a=0

my another coding is

int m;
int x[]=int[10];
int[.]y=int[11];
for(m=1;m<10;++m)
x(m)=y[m]=m;
x=y=new int[20];
for(m=0;m<10;++m)

pls find me where is error
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-31-2008, 08:16 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,039
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Quote:
Originally Posted by lalithalydia View Post
if(code>1);
Remove ; at the end

Quote:
Originally Posted by lalithalydia View Post
a=b+c
a=0

Those type of code lines are called statements. You have to terminate them with ; mark.


Quote:
Originally Posted by lalithalydia View Post
x(m)=y[m]=m;

Here also you have an error. Conflict with () and []. Can you see that.

The above errors what I have seen directly on your code. Haven't compiled. Change them and check.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Welcome to our new forum: Forum Lobby JavaForums Forum Lobby 18 02-07-2008 06:40 AM
Move to forum 'New To Java' jvasilj1 New To Java 2 02-02-2008 09:22 AM
Move to correct forum JavaJunkie1983 Introductions 7 01-23-2008 04:04 AM
Move to correct forum... Winarto Introductions 3 01-18-2008 04:00 AM
New To Java Forum nani5swamy Introductions 3 01-04-2008 04:54 PM


All times are GMT +3. The time now is 04:05 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org