Building Java Programs : A Back to Basics Approach

Building Java Programs : A Back to Basics Approach

Authors: Stuart Reges, Marty Stepp
ISBN: 9780136091813
Edition: 2
Chapter: introduction to java programming
Exercise: Exercises
Question: 1

Question by : YamSan

Write a complete Java program that prints the following output:

//////////////////////

|| Victory is mine! ||

\\\\\\\\\\\\\\\\\\\\\\

Answer by : Meghana

Program:

public class One

{

      public static void main(String []args) {

             System.out.println("//////////////////////\n"

                                        + "|| Victory is mine! ||\n"

                                        + "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");

      }

}

0 0

Discussions

Post the discussion improve the above solution.