function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
abhishek reddy 1abhishek reddy 1 

Hello can somene help me with this case

public class MyHelloWorld {



//This is the class name, which will encapsulate the code for the class itself, of course.

//Now, inside the class encapsulation, add the following code:

public static void applyDiscount(Book_c[] books) {

for (Book_c b :Books){

b.Price_c *= 0.9;

{

{

}
abhishek reddy 1abhishek reddy 1
Error: Compile Error: expecting right curly bracket, found '<EOF>' at line 20 column 0

I am getting this error as well
Arti KulkarniArti Kulkarni
You have to add right curly brackets " } " to get rid of the error
ManojjenaManojjena
Hi Abhishek,

Curly braces are not in proper format .

Check below code it will help !!
public class MyHelloWorld {

	//This is the class name, which will encapsulate the code for the class itself, of course.

	//Now, inside the class encapsulation, add the following code:

	public static void applyDiscount(Book_c[] books) {

		for (Book_c b :Books){
			b.Price_c *= 0.9;
		}
	}
}

Thanks 
Manoj
Abhijeet Anand 6Abhijeet Anand 6
Hi Abhishek,
The number of curly braces should always be even and every open brace should have a corresponding close brace.
Hope this helps.

Thanks
Abhijeet