Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners missing some import class(may be)
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


waqarnaeem
missing some import class(may be)
1 Answer(s)      4 years and a month ago
Posted in : Java Beginners


Hi,Experts,I am a new one.
I have made class in java,using netbeans 6.0.1 this getting error if i mouse over on the class name"class shape is public,should be declared in a file named shape.java",

what i missed?

Advertisement
View Answers

October 6, 2010 at 12:19 PM


Hi,

You have to change the java file name to "shape.java".

In java file name and class name should the the same.

For example you have to create a class "shape" then create new file in netbeans and name it "shape.java".

Thanks


Related Tutorials/Questions & Answers:
missing some import class(may be) - Java Beginners
missing some import class(may be)  Hi,Experts,I am a new one. I have made class in java,using netbeans 6.0.1 this getting error if i mouse over on the class name"class shape is public,should be declared in a file named
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how.... This jar contains the required class file
Advertisements
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how.... This jar contains the required class file
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how.... This jar contains the required class file
jfree missing import file
jfree missing import file  hi....... i have checked the jar file of jfree that import file of RECTANGLEINSETS is not there then what to do now? how.... This jar contains the required class file
unable to import class com.opensymphony.xwork2.ActionContext not found
unable to import class com.opensymphony.xwork2.ActionContext not found  Imported class com.opensymphony.xwork2.ActionContext not found gettin the above error
An Abstract class may or may not have abstract method.
Description: An Abstract is also known as Abstract Base Class. Abstract Class do not instantiate it means no object is made of this class. Its method declaration is done in its derived class not in the abstract class. Abstract itself
Using Abstract Class
class. This class must be inherited. Unlike interface the abstract class may implement some of the methods defined in the class, but in this class at least one...Using Abstract Class      
missing bundles eclipse
missing bundles eclipse  missing bundles in eclipse
struts - application missing something?
and they are taken to correct location. What am I missing? The JSP, Java Class... to the class - like a comment. I hope this helps others. I saw some one line...struts - application missing something?   Hello I added a parameter
framework for discovering missing links
framework for discovering missing links  networking
missing package-info.java file
missing package-info.java file  How to find and add the packages in Java if it's missing from the list
Find a missing element from array
is the code: import java.util.*; class CompareArrays { public static void...Find a missing element from array We have two arrays A and B where B consists of all the elements that are present in A but one element is missing from
xcode warning missing file
xcode warning missing file  on deleting a folder from desktop earlier that has the link to application.. now, stoping the application to run. The xcode is giving warning like file does not exist or xcode warning missing file
Missing message for key tenant.lbl - Struts
Missing message for key tenant.lbl  I have properties file with key value pair.I am trying to get that value int jsp by using tag.In struts-config.xml I placed below code still I am getting Missing message for key tenant.lbl.
import file
import file    public void importFile(BlobDomain fileData) { InputStream inStr = fileData.getInputStream(); Workbook workbook = Workbook.getWorkbook(inStr); Sheet sheet = workbook.getSheet(0); int colCount
uinavigationcontroller back button not showing/ missing
or missing. i tried all the methods to hide or show the backbarbutton item. My
How do I sort by mutiple columns that are in ArrayList using some comparable class
How do I sort by mutiple columns that are in ArrayList using some comparable class  Iam reading a csv file with 20 columns (all string types) in ArrayList after splitting them. I need to find how can I sort muti columns (i.e.
The import Attribute of page Directive In JSP
The import Attribute of page Directive In JSP       This section shows you how to import a java package or the class in your jsp application. Here a Java code has also been
Not sure what I am missing ? Any ideas?
Not sure what I am missing ? Any ideas?  import java.util.*; public class HangMan2 { char guess; String userInputs; String word; static String[] userInput; static Scanner scan = new Scanner
import package.subpackage.* does not work
import package.subpackage.* does not work  I have 3 class files...("funA"); } } C.java:- import com.test.*; class C { public static...; public class A { public void funA
The import keyword
is the syntax to import a package in a class. import java.io.File... of import a package and the class of that package: java.util.ArrayList... in order to import all the class of a package. Avoid use of the character
Missing output from associative array - Development process
Missing output from associative array   the following foreach loop does not print all of the keys from the array, any ideas as to why? <?php $Salespeople = array( "Hiroshi Morninaga"=>57, "Judith Stein"=>
Java class in JSP
to import a package inside which there is java class. We will import the package by using page directive and one of its attribute import. To use the class inside... returnDate() inside the class. Now in the jsp page import the package which we have
Problem of Import JWorkbook
Problem of Import JWorkbook  Hi... i can't use the jworkbook in my project.what types of library files in import
Import attribute of page directive
Import attribute of page directive   How use import attribute of page directive ?   The import attribute is used to import all the classes... that the JSP page wants to import, the programmer can use import more than once
Java static import
Java static import  What is the use of static import
import package - JSP-Servlet
import package  how to import a package into a jsp page...pls reply with an example..  Hi friend, To import a package in Jsp use the import Attribute of page Directive In JSP The package name folder is putted
May I know how to create a web page?
May I know how to create a web page?  can u suggest me how to start
import org.hibernate.Session error
import org.hibernate.Session error  I am new to hibernate. I have followed the given steps but it could not recognize hibernate.session and other imports. what i need to do?   Hi, Are you using Eclipse? Please let's
Java Abstract Class Example
using 'abstract' keyword. An abstract class may contain abstract... and some are unique to specific classes. An abstract class should...Java Abstract Class Example In this section we will read about the Abstract
 

 

 

DMCA.com