ok i dropped the idea of having the diamond in the window and i was wondering if i some how could decide on any symbol besides the * heres my new code:
public class diamonds
{
public static void main(String[] args)
{
int max_width = new Integer(args[0]).intValue();
int width=max_width % 2 == 0? max_width/2: max_width/2 +1;
String symbols="****** *************** *************** **********";...
User Profile
Collapse
-
help please
I have this assignment it prints out to a window but it all print out on 1 line
it should be in shape of a diamond but it looks like this:
**** *
import avi.*;
public class diamonds
{
public static void main(String[] args)
{
Window screen = new Window("diamond s.java","bold", "blue",18);
screen.showWind ow();
...
No activity results to display
Show More
Leave a comment: