write a simple Java program
AnswerStation:
do u want a loop or what
Answers
Answered by
2
Java is an object oriented programming ( OOP ) language. It is a perfect programming language which is robust and supports multimedia as well as multithreading application development. It has strong memory management as well.
A simple Java program:
public class Simple
{
public static void calc()
{
System.out.print("Hello !");
}
}
A simple Java program:
public class Simple
{
public static void calc()
{
System.out.print("Hello !");
}
}
Answered by
0
Answer:
class Pattern
{
public static void main()
{
for(int i=4;i>=1;i--)
{
for(int j=1;j<=i;j++)
{
if(j%2==0)
System.out.print(i+" ");
else
System.out.print((i+1)+" ");
}
System.out.println();
}
for(int i=5,k=69;i>=0;i--,k--)
{
for(int j=1;j<=i;j++)
System.out.print((char)k+" ");
System.out.println();
}
}
}
Similar questions