resolution for prog

resolution for prog

import java.lang.*;

class Current{ public static void main(String ar[]){

Thread t = Thread.CurrentThread(); System.out.println("current thread"+t); System.out.println("thread name"+t.getName());

} } i got error as Current.java:6: cannot find symbol symbol : method CurrentThread() location: class java.lang.Thread Thread t = Thread.CurrentThread(); ^ 1 error pls tell me the reolution...

View Answers

November 25, 2011 at 12:39 PM

import java.lang.Thread;
class Current{
    public static void main(String ar[]){
    Thread t = Thread.currentThread();
    System.out.println("current thread"+t); 
    System.out.println("thread name"+t.getName());
   }
}

Ads









Related Tutorials/Questions & Answers:
resolution for prog
resolution for prog  import java.lang.*; class Current{ public static void main(String ar[]){ Thread t = Thread.CurrentThread(); System.out.println("current thread"+t); System.out.println("thread name"+t.getName()); } } i got
if i run this prog, i got exeption in thread "main" java.lang.ArrayIndexOutOfBoundsException:0 at Maxof2.main(Maxof2.java:9), whats the resolution for ths?
if i run this prog, i got exeption in thread "main" java.lang.ArrayIndexOutOfBoundsException:0 at Maxof2.main(Maxof2.java:9), whats the resolution for ths?  class Maxof2{ public static void main(String args[]){ //taking
Advertisements
resolution problem in java
resolution problem in java  I designed project in java in my PC when run the same project in some other PC i can't fully view my java forms.Some said that it is resolution problem
NEED A PROG
NEED A PROG   whats the program to add,delete, display elements of an object using collecions. without using linked list   Hi Friend, Try the following code: import java.util.*; class CollectionExample { public
turbo C prog.
turbo C prog.  Is is possible print ASCII value of a alphabets using turbo C prog
ModuleNotFoundError: No module named 'prog'
ModuleNotFoundError: No module named 'prog'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'prog' How to remove the ModuleNotFoundError: No module named 'prog' error
what is the resolution for the bellow error?
what is the resolution for the bellow error?  pe Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException
java prog que
java prog que  create a class that returns the reverse of each word in the given string. For example if we give "who are u?" as input, it should return "ohw era u
ModuleNotFoundError: No module named 'django-variable-resolution-date'
ModuleNotFoundError: No module named 'django-variable-resolution-date' ...: ModuleNotFoundError: No module named 'django-variable-resolution-date' How to remove the ModuleNotFoundError: No module named 'django-variable-resolution-date' error
ModuleNotFoundError: No module named 'entity-resolution-evaluation'
ModuleNotFoundError: No module named 'entity-resolution-evaluation'  ...: No module named 'entity-resolution-evaluation' How to remove the ModuleNotFoundError: No module named 'entity-resolution-evaluation' error
question "writing prog"
question "writing prog"  Hello I want helping for this question, please Write a program that reads some friendsā?? names, stores them in an array, and then prints out on the screen all friends who start by a particular letter
please help me in these prog
please help me in these prog   create 2 jdbc programs including awt create 2 jdbc programs including swing create 2 jdbc programs including command line argument create 2 jdbc programs including io class 4 jdbc prog using
Solution to C prog
Solution to C prog   Hi, Pls any body help, why the following prog crashing while running. #include<stdio.h> #include<conio.h> int main(){ int n,*fact(int *n); printf("Enter the number:"); scanf
ModuleNotFoundError: No module named 'func_prog'
ModuleNotFoundError: No module named 'func_prog'  Hi, My Python... 'func_prog' How to remove the ModuleNotFoundError: No module named 'func_prog' error? Thanks   Hi, In your python environment you
make a prog for this query
make a prog for this query  write a program implementing interface for personal data n salary details. interface must contain abstract methods. steps for the program are 1) store the data in text file 2)display salary when emp id
turbo C prog.
turbo C prog.  Is it possible to print ASCII value A to Z with out using scan ? also give to simple example of binary search ...   #include<stdio.h> #include<conio.h> void main() { for(char c='A';c<
(ForPro) turbo C prog. Q4
(ForPro) turbo C prog. Q4  I need to learn some easy foxpro program.. for example sum,interchange, loop etc
Java entry prog.
Java entry prog.  Dear sir I will enter the dept code, dept name and insert into dept_mast and save. Pl. Dept_mast Dept_code Char(2) Primary key (no duplicate key allowed) Dept_name Char(25
turbo C prog. Q3
turbo C prog. Q3  What is the difference between if and ladder if ? Describe ladder if with example. What is the purpose of the parameter passing ? please Describe with example.   if statement is used to write
ModuleNotFoundError: No module named 'prog-edu-assistant-tools'
ModuleNotFoundError: No module named 'prog-edu-assistant-tools'  Hi...: No module named 'prog-edu-assistant-tools' How to remove the ModuleNotFoundError: No module named 'prog-edu-assistant-tools' error? Thanks  
ModuleNotFoundError: No module named 'prog_lang_detector'
ModuleNotFoundError: No module named 'prog_lang_detector'  Hi, My... named 'prog_lang_detector' How to remove the ModuleNotFoundError: No module named 'prog_lang_detector' error? Thanks   Hi, In your
compile this program and let me know the resolution
+" is greater than "+i); } } please compile and let me know the resolution  
PKG_PROG_PKG_CONFIG: command not found
PKG_PROG_PKG_CONFIG: command not found  Hi, How to solve PKGPROGPKG_CONFIG: command not found error This error is coming while executing the configure script. Thanks
PKG_PROG_PKG_CONFIG: command not found
PKG_PROG_PKG_CONFIG: command not found  Hi, How to solve PKGPROGPKG_CONFIG: command not found error This error is coming while executing the configure script. Thanks
PKG_PROG_PKG_CONFIG: command not found
PKG_PROG_PKG_CONFIG: command not found  Hi, How to solve PKGPROGPKG_CONFIG: command not found error This error is coming while executing the configure script. Thanks
PKG_PROG_PKG_CONFIG: command not found
PKG_PROG_PKG_CONFIG: command not found  Hi, How to solve PKGPROGPKG_CONFIG: command not found error This error is coming while executing the configure script. Thanks
PKG_PROG_PKG_CONFIG: command not found
PKG_PROG_PKG_CONFIG: command not found  Hi, How to solve PKGPROGPKG_CONFIG: command not found error This error is coming while executing the configure script. Thanks
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select length(ename)||' charecters exist in '||initcap(ename)||'s name' as "names and length" from emp
i have problem with this query... please tell me the resolution if this .........
i have problem with this query... please tell me the resolution if this .........  select initcap(ename),job from emp where substr(job,4,length(job,4,3)))='age
java prog
java prog
prog. using radio buttons for simple calculator
prog. using radio buttons for simple calculator  import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; class Calculator extends JFrame { private final Font BIGGER_FONT = new Font
prog. using radio buttons for simple calculator
prog. using radio buttons for simple calculator  import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; class Calculator extends JFrame { private final Font BIGGER_FONT = new Font
please explain this prog
please explain this prog
java applet prog
please tell me
="+Raju.hashCode()); } } if i compile this prog, D:\progs>javac...: '}' expected ^ 2 errors, i got this error....... please tell me the resolution
please tell me
this prog, i got error msg as D:\progs>javac SString.java SString.java:4...)); ^ 1 error please tell me the resolution of this   Hi
regarding rev
regarding rev  write a prog. in java that display all the arguments passed at the command line in reverse order
FoxPro
FoxPro  Which is a simple process to create a menu bar using FoxPro Prog.? plz answer
FoxPro
FoxPro  Which is a simple process to create a menu bar using FoxPro Prog.? plz answer
FoxPro
FoxPro  Which is a simple process to create a menu bar using FoxPro Prog.? plz answer
FoxPro
FoxPro  Which is a simple process to create a menu bar using FoxPro Prog.? plz answer
i have installed oracle 10g (both ee and xe) editions... while am installing i found port num as 1521 for ee, 1522 for xe
run this prog.... i got error like driver is registered... lms and, table emp(eno, name). please tell me wts the resolution
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
network security analyzer
network security analyzer  i want a prog which runs on a firewall machine and continuously checks the firewall log file for any attack, if it detects any attack the prog should send a warning to the administrator in the form
file searching
file searching  i need a prog for searching inside a text file after evry 1 min to find does it hav any new entry
what is the correct format of charAt() function?
what is the correct format of charAt() function?   class prog...); } } class p3{ public static void main(String ar[]){ prog obj=new prog(); obj.cal1(ar[0]); } } in the above
Program
Program  Define an Abstract class DigitalCamera with instance variables like make, model, resolution, etc, and create() to set the details of camera. Use three sub classes for three different makes (eg. Canon, Olympus, Sony
Need help on JAVA JSP
using JAVA JSP). e.g. Tool does not adjust with the resolution of the screen(need to know how I can adjust it based on the cureen system's screen resolution

Ads