import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Scanner;
import java.util.concurrent.*;
public class Solution {
public static void main(String[] args){
System.out.println("Thread will print the parameter \"APPLE\"");
myRunnable r=new myRunnable("APPLE");
Thread thread_object=new Thread(r);
thread_object.start();
}
}
class myRunnable implements Runnable
{
//The information to be saved
//and later passed to the thread is
//stored as a parameter here
String to_print;
myRunnable(String to_print){
//here we save it when myRunnable is built
this.to_print = to_print;
}
public void run(){
//Here we indicate how
//we use the parameter passed.
System.out.println(to_print);
}
}