|
this has nothing to do with java, even though it's java your teacher wants you to code that in.
what have you done so far, and where are you stuck ?
|
|
|
|
|
iam trying to do this project like google search using (collection concept list.contains)so i need some guidance to start this project from the scratch. i dont no how to split the english sentence and find out the noun ,verb and all.so wat to do?
but i can do this project like google search.iam asking for real method of doing this project.
thanks for ur reply .
|
|
|
|
|
Can someone provide me with the method. The input to the method are xmin,xmax,ymin,ymax,x0,y0,x1,y1.
I managed to get the coordinates from listener (above) now I need the method to clip the line. I know you can use the
g.setclip or g.cliprect but i wanna know the details of how to implement the cohen in java.
Thank you
|
|
|
|
|
i need your help guyz...
i have a project in java programming...
its hard to understand...
please help me..
Q1) Define a class called Rental that has the following properties
a) Userid of string type
b) Days of rental
c) Rental per day
d) Include appropriate accessors,mutators and constructor(s) as well as a method to change the cars' information.
e) Include a method longParking which will return true if the days of car rental above 6days otherwise return false.
Q2) Define a class called Carpark that has following properties.
a) An array season_rental that can allowed up to maximum 35 car rental at a time.
b) Include a method that will allow new rental information to be included into the system.
c) include a method to search for a car rental information.
d) include a method to increase the renting rate by 12%.
e) include a method to display all rental details that are currently still being rented out.
Q3) Define a main menu program that will allow all the rental information to be manipulated.
i hope you will reply my first post as soon as possible...thx...
Godbless...
|
|
|
|
|
and no need to repost
|
|
|
|
|
some hint for you..
Try analyzing the Blue print for another code which looks similar
Q1)
student Example :
Create a Student record
a) student id ( string )
b)no of students ( integer )
c) Marks
d) Include appropriate accessors,mutators and constructor(s) as well as a method to change the StudentRecord information.
e) Include a method checkStudentPass which will return true if the student score more than 35 and above in all Subjects otherwise return false.
which means I need to create a class StudentRecord
Here is Similar code
Code:
public class StudentRecord {
String studentID ;
int no_Of_Students ;
int marks;
public StudentRecord(){
}
public boolean checkStudentPass(int marks ){
return (marks >=35 )?TRUE:FALSE;
}
The Q3 acts Vital in your Code.. for which you need to access these variables using objects
All the Parameters are Passed from the main program.
since its the main class
you need to add the main Signature
public class StudentMainClass{
public static void main(String []agrs){
}
}
for Example
StudentRecord studentName1 = new StudentRecord();
Try accessing the StudentID like this
studentName1.studentID
Hope you got some idea about Java and your Q1 and Q3.
The Universe is a Figment of our Imagination.
modified on Friday, December 26, 2008 10:12 AM
|
|
|
|
|
thank you so much mr/ms. code_var...
its a big big help for me...
thank you thank you...(n_n)
|
|
|
|
|
i need your help guyz...
i have a project in java programming...
its hard to understand...
please help me..
Q1) Define a class called Rental that has the following properties
a) Userid of string type
b) Days of rental
c) Rental per day
d) Include appropriate accessors,mutators and constructor(s) as well as a method to change the cars' information.
e) Include a method longParking which will return true if the days of car rental above 6days otherwise return false.
Q2) Define a class called Carpark that has following properties.
a) An array season_rental that can allowed up to maximum 35 car rental at a time.
b) Include a method that will allow new rental information to be included into the system.
c) include a method to search for a car rental information.
d) include a method to increase the renting rate by 12%.
e) include a method to display all rental details that are currently still being rented out.
Q3) Define a main menu program that will allow all the rental information to be manipulated.
i hope you will reply my first post as soon as possible...thx...
Godbless...
|
|
|
|
|
we don't do homeworks here.
Read the guidelines, try to do the work yourself first, and ask for specific question only when you're stuck on something.
If you cannot do anything at all, then you're not the one for the job...
|
|
|
|
|
for the programmin task,you are going to a simple application which allows 2 people 2 play tic tac toe. you will have 3 major classes as defined. each class should go in its own file.
1.Player:
*represent a player in the game
*it should have following constructor:pulic player(string name, char symbol)
*the class whould have 2 properties:name and symbol.
2.Board:
*represent the board on which tic tac toe is played.
*it should have 1 data properties,a 3*3 array which represnets the playing area.
*it should have the following constructor:public board(),which initilizes the data property to be an empty board.
*At a minimum,it should have the following methods:# public void printBoard()#public boolean isFull()#public boolean isWinner(Player player)#public boolean setpiece(int row,int col)
3.Game:
*contains the main()
*prompts the users for their name
*must use the player and board classes to manage the game.
*should report who the winner is , or if the game was a tie.
|
|
|
|
|
we don't do homeworks here.
Read the guidelines, try to do the work yourself first, and ask for specific question only when you're stuck on something.
If you cannot do anything at all, then you're not the one for the job...
|
|
|
|
|
Hello,
I am developing an application which uses mysql database. The database will be located on one of the system on the lan.
I need that i enter the ip address of the system on which database is located and it should connect to the database.
Thanks
Vinod Maurya
|
|
|
|
|
hi everybody
i am a .net developer and i start to use java with spring.
i want to load a xml file in File object at this way :
File f = new File("D:/MyProjects/Sun Java/MyClinic/src/Clinic/Core/ApplicationContext.xml");
and in netbeans debug mode when compiler wants to process this line encourge pause and next line not processed
say something usefull about relative path in java.
please forgive me for my bad english skill.
thanks all.
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
Enclose that line in a try{}catch(){} block and see if there is an error being generated.
Don't let my name fool you. That's my job.
|
|
|
|
|
I hope someone can help me out here. I am not that familiar with JS and I found this script online which I modified, but I can not control how to open the links. All the links open in the same window but I have some external links that I have to open in a new window.
Here is an example of what I have:
bar.addMenu('Insulated Glass');
bar.addItem('http://www.associatedmaterials.net/Docs/glass_specs/Units.pdf','IG Quality');
I would appreciate any help.
|
|
|
|
|
Please do a Google search for Javascript.
As far as anchor tag attributes, you want "target=_blank". The anchor tag [<a...>~</a>] is not Javascript, but HTML.
Don't let my name fool you. That's my job.
|
|
|
|
|
how can i connect items list at j2me to required form
i need the code that make it
necessaryyyyyyyyyy
|
|
|
|
|
Is this[^] helpful?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi all
I want to start Mobile (Cell Phone) Programming with java (those *.Jar files)
But i don't know from where i should start.! Could anyone give me some start point...Article,E-book,...
Thanks in advance.
Kind Regards.
|
|
|
|
|
Hi i need peer-to-peer voice chat project on java.
can any one post that for me.
|
|
|
|
|
You need to goto www.rentacoder.com for that. Or with such a simple app, you could even just Google it.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Dear All,
I am looking for a good IDE similar to eclipse.
Any ideas ?!?!
Regards,
Muhammad Nauman
"Mess with the Best, Die like the rest"
|
|
|
|
|
What exactly is wrong with Eclipse? There are plenty other out there, but I couldn't begin to suggest without knowing what is wrong with the one you use now. I prefer Eclipse myself anyway.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
There is nothing wrong with it, but somehow the other my machine seems to be dead once eclipse has started.
I was just thinking trying out another ide
"Mess with the Best, Die like the rest"
|
|
|
|
|
You could always try the one that Sun provides if you download the right Java bundle. I believe they call it Netbeans. (http://www.netbeans.org/downloads/index.html[^])
I've played with it, but I prefer to use Eclipse myself.
Don't let my name fool you. That's my job.
|
|
|
|