Posts

Showing posts from May, 2017

Object Oriented Programming Concepts.

Image
Java supports most of the modern day applications from the world wide web to household appliances. It is designed to work in a heterogeneous network distributed environment. It allows secure delivery of applications that consume the minimum of system resources, can run on any hardware and software platform, and can be extended dynamically. What is OOP'S?         Object oriented programming organizes a program around its data, i.e, object is a set of well defined interfaces to that data. An object-oriented program can be characterized as data controlling access to code.

Designing Patterns - Print 'Z'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class Z {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=n;j>0;j-...

Designing Patterns - Print 'Y'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class Y {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,k5=n;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)...

Designing Patterns - Print 'X'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class X {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,k4=0;;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++...

Designing Patterns - Print 'W'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class W {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,WW=0;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)...

Designing Patterns - Print 'V'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class V {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,s=-a,l=n+a-1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=...

Designing Patterns - Print 'U'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class U {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - Print 'T'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class T {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - Print 'S'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class S {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...

Designing Patterns - Print 'R'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class R {     public static void main(String args[])     {         Scanner sc=new Scanner(System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,k2=1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...

Designing Patterns - Print 'Q'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class Q {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,m=1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {                      for(int i=1;i<=n;i++)             {              ...

Designing Patterns - Print 'P'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class P {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - Print 'O'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class O {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)     ...

Designing Patterns - Print 'N'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class N {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)     ...

Designing Patterns - Print 'M'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class M {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,EE=0;;         System.out.println("\n");         if(n>=5&& n%2!=0 )                    {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)    ...

Designing Pattern - Print 'L'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class L {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...

Designing Patterns - Print 'K'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class K {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1,s1=n,t=1,s2=3,t2=a+1;;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=...

Designing Pattterns - Print 'J'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class J {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...

Designing Patterns - Print 'I'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class I {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)           ...

Designing Patterns - Print 'H'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class H {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - -Print 'G'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class G {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)    ...

Designing Patterns - Print 'F'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class F {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - Print 'E'.

Image
SOURCE CODE   import java.io.*; import java.util.*; public class E {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;...

Designing Patterns - Print 'D'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class D {     public static void main(String args[])     {         Scanner sc=new Scanner(System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++)  ...

Designing Patterns - Print 'C'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class C {     public static void main(String args[])     {         Scanner sc=new Scanner (System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...

Working with pattern - Print 'B'.

Image
SOURCE CODE import java.io.*; import java.util.*; public class B {     public static void main(String args[])     {         Scanner sc=new Scanner(System.in);         System.out.print("Enter a odd number >=5 :");         int n=sc.nextInt();         int a=n/2+1;         System.out.println("\n");         if(n>=5&& n%2!=0 )                     {             for(int i=1;i<=n;i++)             {                 for(int j=1;j<=n;j++) ...