My issue
class Codechef
{
{
System.out.print(12 + 7);
public static void main(String args)
}
}
Learning course: Learn Java
Problem Link: Rearrange Practice Problem in Java - CodeChef
class Codechef
{
{
System.out.print(12 + 7);
public static void main(String args)
}
}
Learning course: Learn Java
Problem Link: Rearrange Practice Problem in Java - CodeChef
Java consist of a class with nested functions and their respective blocks.
Class block looks like this (the main class name and its block represented by brackets “{ }” ):
class Codechef
{
// Functions
}
The functions consist of:
public static void main(String[] args)
{
// Statements
}