Skip to main content
Active reading [<https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s> <https://english.stackexchange.com/questions/4645/is-it-ever-correct-to-have-a-space-before-a-question-or-exclamation#comment206109_4645>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

"Can not find " means that  , the compiler who can't find an appropriate variable, method  ,class class, etc...if If you got that error massage  , first of all, you want to find the code line where you get the error massage..And

And then you will able to find which variable  , method or class have not definebeen defined before using it.After After confirmation initialize, initialize that variable  ,method method or class, so it can be used for a later require..require.Consider Consider the following example.

I'll create a demo class and print a name...

class demo{ {   public static void main(String a[]) {   System.out.print(name);   } } 

Now look at the result..

enter image description hereEnter image description here

That error says, "variable name can not find"..Defining Defining and initializing value for 'name' variable cancan be abolished that error..Actually Actually like this,

class demo{ {   public static void main(String a[]) {   String name String= name="smith";"smith";   System.out.print(name);   } } 

Now look at the new output...

enter image description hereEnter image description here

Ok Successfully, we successfully solved that error..At At the same time  , if you could get "can not find method " or "can not find class" something  , Atat first,define define a class or method and after use that..

"Can not find " means that  , compiler who can't find appropriate variable, method  ,class etc...if you got that error massage  , first of all you want to find code line where get error massage..And then you will able to find which variable  , method or class have not define before using it.After confirmation initialize that variable  ,method or class can be used for later require...Consider the following example.

I'll create a demo class and print a name...

class demo{   public static void main(String a[]){   System.out.print(name);   } } 

Now look at the result..

enter image description here

That error says, "variable name can not find"..Defining and initializing value for 'name' variable can be abolished that error..Actually like this,

class demo{   public static void main(String a[]){   String name="smith";   System.out.print(name);   } } 

Now look at the new output...

enter image description here

Ok Successfully solved that error..At the same time  , if you could get "can not find method " or "can not find class" something  , At first,define a class or method and after use that..

"Can not find " means that, the compiler who can't find an appropriate variable, method, class, etc. If you got that error massage, first of all, you want to find the code line where you get the error massage.

And then you will able to find which variable, method or class have not been defined before using it. After confirmation, initialize that variable, method or class, so it can be used for a later require. Consider the following example.

I'll create a demo class and print a name...

class demo { public static void main(String a[]) { System.out.print(name); } } 

Now look at the result..

Enter image description here

That error says, "variable name can not find". Defining and initializing value for 'name' variable can be abolished that error. Actually like this,

class demo { public static void main(String a[]) { String name = "smith"; System.out.print(name); } } 

Now look at the new output...

Enter image description here

Ok, we successfully solved that error. At the same time, if you could get "can not find method " or "can not find class" something, at first, define a class or method and after use that.

added 9 characters in body
Source Link

"Can not find " means that , compiler who can't find appropriate variable, method ,class etc...if you got that error massage , first of all you want to find code line where get error massage..And then you will able to find which variable , method or class have not define before using it.After confirmation initialize that variable ,method or class can be used for later require...Consider the following example.

I'll create a demo class and print a name...

class demo{ public static void main(String a[]){ System.out.print(name); } } 

Now look at the result..

enter image description here

That error says, "variable name can not find"..Defining and initializing value for 'name' variable can be abolished that error..Actually like this,

class demo{ public static void main(String a[]){ String name="smith"; System.out.print(name); } } 

Now look at the new output...

enter image description here

Ok Successfully solved that error..At the same time , if you could get "can not find method " or "can not find class" something , defineAt first,define a class or method and after use that..

"Can not find " means that , compiler who can't find appropriate variable, method ,class etc...if you got that error massage , first of all you want to find code line where get error massage..And then you will able to find which variable , method or class have not define before using it.After confirmation initialize that variable ,method or class can be used for later require...Consider the following example.

I'll create a demo class and print a name...

class demo{ public static void main(String a[]){ System.out.print(name); } } 

Now look at the result..

enter image description here

That error says, "variable name can not find"..Defining and initializing value for 'name' variable can be abolished that error..Actually like this,

class demo{ public static void main(String a[]){ String name="smith"; System.out.print(name); } } 

Now look at the new output...

enter image description here

Ok Successfully solved that error..At the same time , if you could get "can not find method " or "can not find class" something , define a class or method and after use that..

"Can not find " means that , compiler who can't find appropriate variable, method ,class etc...if you got that error massage , first of all you want to find code line where get error massage..And then you will able to find which variable , method or class have not define before using it.After confirmation initialize that variable ,method or class can be used for later require...Consider the following example.

I'll create a demo class and print a name...

class demo{ public static void main(String a[]){ System.out.print(name); } } 

Now look at the result..

enter image description here

That error says, "variable name can not find"..Defining and initializing value for 'name' variable can be abolished that error..Actually like this,

class demo{ public static void main(String a[]){ String name="smith"; System.out.print(name); } } 

Now look at the new output...

enter image description here

Ok Successfully solved that error..At the same time , if you could get "can not find method " or "can not find class" something , At first,define a class or method and after use that..

Source Link

"Can not find " means that , compiler who can't find appropriate variable, method ,class etc...if you got that error massage , first of all you want to find code line where get error massage..And then you will able to find which variable , method or class have not define before using it.After confirmation initialize that variable ,method or class can be used for later require...Consider the following example.

I'll create a demo class and print a name...

class demo{ public static void main(String a[]){ System.out.print(name); } } 

Now look at the result..

enter image description here

That error says, "variable name can not find"..Defining and initializing value for 'name' variable can be abolished that error..Actually like this,

class demo{ public static void main(String a[]){ String name="smith"; System.out.print(name); } } 

Now look at the new output...

enter image description here

Ok Successfully solved that error..At the same time , if you could get "can not find method " or "can not find class" something , define a class or method and after use that..