Computer Science, asked by kunalmk2005, 1 year ago

is this correct bluej program who will give answer with correct reasonwill be marked as brainliest
class printing_dots
{
public static void main (String[]args)
{
system.out.println("*");
system.out.println("**");
system.out.println("***");
system.out.println("****");
}
}


Anonymous: Its easy

Answers

Answered by siddhartharao77
5

class printing_dots

{

public static void main(String[] args)

{

system.out.println("*");

system.out.println("**");

system.out.println("***");

system.out.println("****");

}

}


Output:

Compilation error - package system does not exist.


Reason:

You have written system. It should be System(S should be capital).



Hope this helps!


siddhartharao77: :-)
Answered by duragpalsingh
4
Hey there!

Given Program,

class printing_dots
{
public static void main (String[]args)
{
system.out.println("*");
system.out.println("**");
system.out.println("***");
system.out.println("****");
}
}

It is surely show an error.
We should use Upper Case S in the spelling of system while writing the output statement.

Good Studies!
Similar questions