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 on 18 Jun, 2018 at 02:44 PM

Write a complete Java program that prints the following output:

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

|| Victory is mine! ||

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

Answer by Meghana on 18 Jun, 2018 at 02:44 PM

Program:

public class One

{

      public static void main(String []args) {

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

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

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

      }

}

 

RESULT OUTPUT:

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

|| Victory is mine! ||

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

0 0

Discussions

Post the discussion improve the above solution.