hey i am new in java and i need help for a project of scool
i need a program in wich i form a matrix and the numbers in it will form like this 1

but there is a problem the o must not be there only the 1
o o 1 o o
o 1 o 1 o
1 o o o 1
o 1 o 1 o
o o 1 o o

Recommended Answers

All 5 Replies

so what you written so far?

public class Romb

:d

Are you trying to be cute or something? Far as I can tell, you need to replace 0 with 1? What is your program suppose to do? And what part isn't working for you? You'll never get any help if that's the only info you provide.

This looks like a lesson in coding a Fibonnaci series.

class Fibonnaci {


// default constructor
void Fibonacci() {
for (n=0, n<4, n++) {
// I'll be back later...gotta tend to the baby
}
}


}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.