answersLogoWhite

0

Sohra

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

What is Nylon and how did it get its name?

Nylon got it name because it was developed in New York and London !! They combind names and letters...... Ny (for New York) and lon (for London) and that is how nylon got its name!


What is the name of the new steam engine recently built in Britain?

It is called "Tornado"


Name 5 serif fonts and name 5 sans serifs?

Sans Serif: Arial, Geneva, Helvetica, Lucida Sans, Trebuchet and Verdana. Serif: Garamond, Georgia, New York, Bookman Old Style, Times New Roman


How do you rename a spreadsheet?

One way is to use the "save as" feature by clicking on file and entering a new name. Note this will make a copy with a new name. The old version will still be around. Alternatively right click on start and then click on search. Enter current name to locate the file. When it appears in the list right click on the file name and then click on rename. Do not change the extension (eg the .xls) or your software will not find or read it again.


Write a program in java for creating multiple threads?

class NewThread implements Runnable { String name; Thread t; NewThread(String threadname) { name=threadname; t=new Thread(this,name); System.out.println("New Thread:"+t); t.start(); } public void run() { try { for(int i=5;i>0;i--) { System.out.println(name+ ":"+i); Thread.sleep(1000); } } catch(InterruptedException e) { System.out.println(name+" Interrupted"); } System.out.println(name+" exiting"); } } class MultiThreadDemo { public staticvoid main(String[] args) { new NewThread("One"); new NewThread("Two"); new NewThread("Three"); try { Thread.sleep(10000); } catch(InterruptedException e) { System.out.println("Main Thread Interrupted"); } System.out.println("Main Thread Exiting"); } }Output:New Thread :Thread[One,5,main]New Thread : Thread[Two,5,main]One:5Two:5New Thread : Thread[Three,5,main]Three:5One:4Three:4Two:4One:3Three:3Two:3One:2Three:2Two:2One:1Three:1Two:1One exitingThree exitingTwo exitingMain Thread Exiting