@Norm I don't know to format in command prompt.It's not in our syllabus.We have only BlueJ.When I saw the option in BlueJ it said that it is auto-intended.
Type: Posts; User: avistein
@Norm I don't know to format in command prompt.It's not in our syllabus.We have only BlueJ.When I saw the option in BlueJ it said that it is auto-intended.
Sorry, 4 being rude 2 u.But I really don't know what you really meant by 4matting the code.I really don't know what is indentation and how to do it.I am only a class 10 student,who has a xam in a few...
@Norm,u r very bad.Why don't u see the program? Ur demand is 2 much.I have given the error,and then also u r demanding so.U must quit.U don't know,how to help ppl.
Here is the error16831684
Very sorry to say that I have posted a wrong code.Actually I was trying to modify the code earlier in my pc and and I have posted that code only.Here is the original code:
//constructor program....
So I think it is wrong in the book.
I don't know how to format it.I am new here.
I have seen it in our book.
import java.io.*;
class student
{
String name;
int age,m1,m2,m3,maxi;
float avg;
student(String n,int a,int m4,int m5,int m6)
{
age=a;
m1=m4;
@Bhawani, but the question says to create a constructor and not 2.So how to do that?
What is the difference between instant variable and instance variable?
See here is the question.I have to create the object and call the methods.It is required to call the object by creating object only.
Define a class student described as below:-
Data...
Yes I know.but I don't want to create.
For example,
class cons
{
int d;
cons(int a)
{
d=a;
}
void accept(String args[])throws IOException
import java.io.*;
class student
{
String name;
int age,m1,m2,m3,maxi;
float avg;
student(String n,int a,int m4,int m5,int m6)
{
age=a;
m1=m4;
Plz read the question very carefully.I need call all the member methods from the main method by creating object only.And all the member methods are necessary.The constructor is parametrized.I need...