Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Howard Dixon   on Jul 11 In Java Category.

  
Question Answered By: Garai Chalthoum    on Jul 11

i cant understand this
if this is a method , r u calling it from someother
class

/** Display's a rectangle */
void show  Rectangle(int argWide, int  argTall) {

ok , and another thing is , u cant use the same
variable inside another block , like u have used the
variable 'i' inside the block.

u must get an error like this

i is already defined in main(java.lang.String[])
for(int i =0;i<2;i++)
^
1 error

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java code problem Or get search suggestion and latest updates.


Tagged: