Explanation:
hope this helps to uhh...
Answer:
<script type="text/javascript" src="weather.js"></script>
Explanation:
we have to use above script tag to include weather.js file into our web page.
Here type attribute represents the type of the file which we are trying to include on the web page.src attribute represents the path of the file from where we want to include that into our web page.
Generally we can include our java script functions into web page in 2 ways. one is inline function we can write the code in web page <script> tag itself .another way is to write the code in a separate file as shown above and include it in the webpage
Haije jiôes 1w mòé si aimx
Answer:
Following are the code to this question:
Counter T = new Counter(1, 100); //creating Counter class object and call its parameterized constructor
Thread T1 = new Thread(new Runnable() //creating Thread object T1.
{
public void run() //define run method
{
T.countRange(); //call countRange method
}
});
Thread T2 = new Thread(new Runnable() //creating another object "T2" of Thread.
{
public void run() //define run method
{
T.countRange(); //call countRange method
}
});
T1.start(); //start Thread T1
T2.start(); //start Thread T2
Explanation:
Description of the above code as follows:
- In the given code, inside the main method the Counter class object "T" is created, that calls its parameterized constructor, which accepts two integer value that is "1 and 100".
- In the next step, thread class object T1 and T2, is created, which uses run method, in which it called the countRange method inside the method a for loop is declared that prints value between parameter value.
- In the last step, the start method is called, which uses the run method to call countRange method.
- For full program code please find the attachment.
Answer:
social media precense is your answer