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

 
 


waqarnaeem
missing some import class(may be)
1 Answer(s)      2 years and 8 months 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?
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 Pages:
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
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
Doclet for finding missing comments - Java Tutorials
missing comments A few newsletter ago, I made some comments about the fact...; } ... and a class with invalid or missing comments called BadTest... at the class that checks whether a class has adequate comments: import
Java Import Statement Cleanup - Java Tutorials
on the class and say "Organize Imports", and bang! it beautifies your import..., 20, 30); provided you import the class. Classes in the same... a specific class import java.awt.Rectangle; or to import all classes
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
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
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
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
Packages and Import
illustration; import java.awt.*; public class Drawing { . . . } Imports... character. import javax.swing.JOptionPane; // Make a single class visible. class... can the fully qualified class name without an import. class ImportTest
Some Notes on Java Programming Environments
code file from outside the project, you have to "import" it in some way... Appendix 2: Some Notes on Java Programming Environments ANYONE WHO...-line environments. All programming environments for Java require some text
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      
adding some value to new column
adding some value to new column   how to update a column having some value into new column that also have some value i need to add this two value...   Hi Friend, Try the following code: import java.sql.*; public
Help please, some strange errors
classes here like Property,Player, main class etc.. I hope i will get some...; import javax.swing.JPanel; import javax.swing.Timer; public class Board...Help please, some strange errors  Sorry about this messy formatting
Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new... not use Split method   Java replace string import java.io.*; public class
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
Class and Interface Concepts
Java: Class and Interface Concepts Class and Interface Concepts Here are some of the basic building blocks of Objected-Oriented Programming that you will become familiar with: class A collection of fields (instance
Program to display palindrome numbers between some range
Program to display palindrome numbers between some range  Hi!I want... explain me the logic with an example   import java.util.*; public class NumberPalindrome { static ArrayList<Integer> list = new ArrayList<
JSP import
? %>   This statement will import the HelloWord class defined in roseindia... JSP import         An import is the attribute of the page directive in JSP that imports
Java Question Anyone need some HELP !!
Java Question Anyone need some HELP !!  Create a file that contains... of the two files. Note: For the above code, you need POI api. import java.io.*; import java.util.*; import org.apache.poi.hwpf.HWPFDocument; import
MovieRating class - Java Beginners
(String MovieRating); } There is some missing in the Code in class Family.... //MovieRating class import java.util.*; public class MovieRating { private Map...(); return ageMap.toString(); } } //Child class import java.io.
PLZ Need some help JAVA...HELP !!
PLZ Need some help JAVA...HELP !!  Create a class names Purchase Each..., and sales tax save as CreatePurchase.java   import java.util.*; class... )); } } public class CreatePurchase{ public static void main(String[] args
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
Hey neighbor, can you lend some Hammers?
Hey neighbor, can you lend some Hammers?  import java.util.Date; public class AccountProblem { public static void main(String[] args) { //create an instance object of class Stock Account myAccount = new Account
Some additions for my previous question - Java Beginners
*; import java.math.*; class GuiApplication extends JFrame { JLabel label1...Some additions for my previous question  This is the question I... of BigInteger class? 2) how do I create command line application that presents
image displaying from database with some other information
image displaying from database with some other information  hi... table entries. <%@ page import="java.io.*"%> <html xmlns="http...;form> <%@page import="java.sql.*" %> <
import user-define package - Applet
import user-define package  how to import user-define package... me ...  Hi friend, import java.io.*; import java.awt.*; import java.applet.Applet; public class AppletExample extends Applet { public
Page Directive attribute - import
Page Directive attribute - import This tutorial  contains description of import attribute of page Directive. import  Attribute : This attribute... and classes . For multiple import you can use comma(,) for separation. By default
about static import - Java Beginners
)TestABC.java import static mypack.TestA; public class TestABC { public static... to ask that "static import" syntax is correct or not package mypackage1; public class
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi! Thank you. That error has...: duplicate import: roseindia.tutorial.hibernate.Contact... is it necessary to place the contact.hbm.xml file in class path. So, you can
Reply to the mail(import files error)
Reply to the mail(import files error)  Hi Its already there in the bin. If its class path should be set , how can i do dat?   Hi, Wait for 20 minutes. I will send you link to download new project file. You should
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
iPhone's Missing Features
iPhone's Missing Features     ... and it is but natural that there would be some features that are omitted either knowingly... in detail in a previous post, here we list some common or expected features
Class in Java
of a source file but after the package statement. You may need some classes... Class in Java      ... structure. First of all learn:  what is a class in java and then move on to its
Local Variable ,Package & import
Local Variable ,Package & import A local variable has a local scope.Such... it is declared. Example of Local variable : The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within
Summary: Math Class
Java Summary: Math Class In this section we will study about the Match class of Java API. Some basic math functions can be found in the Math class. The StrictMath class (not described here) may produce less accurate results
missing bundles eclipse
missing bundles eclipse  missing bundles in eclipse
The BitSet class
list of methods of BitSet  Class, Click here EXAMPLE import...The BitSet class The BitSet class creates dynamic array which can holds bit... by nonnegative integers. One BitSet may be used to change the other BitSet content
Need some help urgently
Need some help urgently  Can someone please help me with this below question. I need to write a class for this. If you roll Y standard six-sided dice... number of possible combinations.   The actual question got some error. Its
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
how to import user-define package to applet - Applet
how to import user-define package to applet  how to import user... .... thx...  Hi friend, import java.applet.*; import java.util.*; import java.awt.*; import java.util.Calendar; import java.text.SimpleDateFormat
"import" Attribute of page directive
, or interfaces into the generated servlet. It is similar to java import statement. The syntax of this page directive is :<%@page import="package_name . class_name" %> The default value of this attribute is java.lang.
Abstract class and interface in Java
be implemented, but only extend one class an abstract class may have some method...Abstract class and interface in Java  What is the difference between abstract class and interfaces in Java?   Differences between
framework for discovering missing links
framework for discovering missing links  networking
PLZ Need some help on the 2nd part of this question...Someone please help !!!!
PLZ Need some help on the 2nd part of this question...Someone please help... three entries.save the file as FastFood2.java   import java.util.Scanner; class FastFood { public static double check1 = 0.0; public static double
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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.