[QUOTE=toomuchfreetime;1007623]Mmm i don't think it works like that around here. How about you post your code and we can see then if we can help you with it.[/QUOTE]

Yup... that's the way aaha aaha dani likes it... :) :D

u can use the Math.pow() method...
OR
Multiply with itself... like this...
double BMI = weight/(height/100);
BMI=BMI*BMI;

Hope you've got the point...

haven't tried it...

tear gas?

good idea... let's play.. what do you wish to play... am good at Tic-Tac-Toe :D??

one word for accepting something?

i AM Human... or does it seem like this only..??? :D

Like computer games??

[QUOTE=firstPerson;1003579]Why is that again?[/QUOTE]

You see as far as I understand.... the requirement was to put the display in matrix form and you've used ROW and COLUMN as the elements for deciding the matrix display... for a prime sized array this is not gonna work... or will it??:?:

[QUOTE=KimJack;1003652]This is great, but how would I go about preventing duplicates when the array is randomized?[/QUOTE]

What is the basic question that you are asking can you please explain if it is about printing 1D array in 2D format then where does the question comes about randomizing it??:?::-/

[QUOTE=firstPerson;1003276]Yes. In fact thats very common, using 1d array as a mimic of a 2d.

[code]
final int ROW = 5;
final int COL = 5

char[] Letters = new char[ ROW * COL];

for(int i = 0; i < ROW * COL; i++)
Letters[i] = (char)( 'A' + i );

for(int i = 0; i < ROW; i++)
{
for(int j = 0; j < COL; j++)
{
System.out.print( Letters[j + i * ROW] + " " );
}
}
[/code]

It hasn't been tested, but you should get the idea, if it doesn't work.[/QUOTE]

In this there is restriction that the array dimension can't be prime (Not a big deal...HUH??) :yawn:

for prime we can use following looping...
[CODE]
int j=0;
for(int i=0;i<arr.length;i++)
{
while(j%4!=0)
{
System.out.print(arr[j++]+" ");
}
System.out.println(arr[j++]);
}
[/CODE]

I hope this works well and maybe better (LOL :D)
your signature is really good "firstPerson" :)

skin

Ummmm.... No (I Think so... by the way what's a clown?? ;))

Do u know the meaning of No?

Al Pacino--> Unknown??

[QUOTE=jusvie;1002032]I haven't tried it!

tomato sauce ;)[/QUOTE]

haven't tried it... :\$ ;)

Tomato Only??

can u say Yes in some different way??

:D Great....

my best count is 2...

one 1D array (char type) should do the job... for storing the characters... their indexes will be used in comparing with the value entered by the user. if the character at the indexes (values) enered by the user are same then they will show, otherwise not...
I hope u got my point....

Can u put up the code here please. This would make easier to solve the problem.

2 of 3... BoooHoooo :'(

[QUOTE=poojasweetgirl;997938]i have to get the star pattern as given
[code]

• *

[/code]
i am not so clear with the for loop in this case and working with blank spaces.[/QUOTE]

try this one... i haven't made it general for any number of lines (left that part for u if u need to implement it)... just tried for the one you've showed up here.... Here it is... :)

[CODE]
class one
{
public static void main(String args[])
{
String s1="*";
int i,j,l=8,x=8,y=8;
for(int n=0;n<7;n++)
{
for(i=l/2;i>0;i--)
{
System.out.print(s1);
}
for(int k=0;k<x-l;k++)
{
System.out.print(" ");
}
for(i=l/2;i>0;i--)
{
System.out.print(s1);
}
System.out.println(l+" "+x);
if(y>2)
{
l-=2;
y=l;
}
else
l+=2;
}
}
}
[/CODE]

Hope it helps you... Mail me if you wish a friendship with me... LOL (m serious) :\$:cool::D

HI,
i'm working on c#.net 2008 edition and i want if we can control the opacity of a picture box on the form differently from the form itself i.e. if we can make the form transparent while still be able to see the picture box on it fully visible.
i did try several things but all i could manage was this...

SetStyle(ControlStyles.SupportsTransparentBackColor, true);
SetStyle(ControlStyles.Opaque, true);
this.BackColor = Color.FromArgb(0,Color.Black);

but it won't work good. Any help?

-1132

-1132

that's the rule...

is there no question that can't be answered without using the forbidden words...?

great....:-)

everything?

an and in

Anupam

may be.. if i can...:| :)

are u a student?

like it!

Novels?

[QUOTE=Robdale;795050]Hey anupm, the word is already said by me previously.
Continuing with the last word, here is the new word.

Speaks[/QUOTE]

soooooooorrrryyyyyyy... :( :'(

peaks

-1124

its both ways.. :-)

haven't tried...

demons

sometime around 1998-99...:-/

you like me?:\$ :)