0% found this document useful (0 votes)
11 views21 pages

APP

Notes

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views21 pages

APP

Notes

Uploaded by

Ayush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Week-y

Writ a jae rogran do-deat too


a

sy

pulelie an Ar
puklie sttie void iai(Stiy C) ax

1,

3
true.

1
Jave Iuhenten
(3 wit a java rogram to oeate clas
Called Vehile ait a mafhod alled dive ().
Crate a oubclas ellid la hat owids
hw doive() wetod do priut "Rpairluy a Car"

Saysten. out. priutl a


vebica);
iends Veiele
pulie void divel)s
sytuu.out pinta(" Rapairing

pube dan Maiu


public 8tatic void. mai ( tiyC) y)
vehiee yCa
wy lwr. dnive(),
3
utrut A Ca.
ehe waut to ator 2
20 ttuss

main
inal iut NUM-Studut
ut NU MstUDEN
toint =0;

(doublg Sun/ rads. g


Avpage frade:
4S
- t piwwiat
3
2.(reat
tue pngau that caloubt
hve womead:
>lmport java.uAL. Ssauns
pulelie elan
Rublietatic votd caleultr,
Averg
it [ wenber =
- caleuet Avogwebay
p delic tatie

'wumbusi
tun wnbes3
pubic stati douhle wleulet
t bm = 0;
Output:
Entin t u mb lement 3

Enten

30

20.0
(reut to
nbY

Lagtamifides
plio sabie vid vmad (stivg T3arpR
int La

puie atti int[ItuAnyita, iut


min,iw wa)
Random rund = eo Randm():

tr(outi=0 -

-andmutut

3
pul'

eturr aot:33
6. wRta a

protetd stiy adns;

name, shiy addn,

this. adbeey= addhss,

plsli double caleutatb Baluu)


puie vid. nucyormneakyut

Prjuis,");7

dsude slag
Output
Aie larns

Alia i

h e eaiw a bsnels

maning
Oveuid
puble doubsle calenlat Boul)
Aetu

pubie Duvetops (strigy

33
clam
Pronam tde fmylaya
pubti
add,dube

MangAlin
c1a3 stt"

(chnlie ", 89 Bruevad


fmploye
t

ma
fotoan
3
3
Javadoc L Declaration Conso
Problems /Library/Jaw
<terminated> ArrayEquality (Java Application]
The two arrays are not equal.
terminated> Main () (Java Application) /LibrarylJavalJavavirt
Driving a vehicle
Repairing a car

cted
RProblems Javadoc Declaratlon Console X
<terminated> StudentGrades (Java Application) /Library JavalJavaVirtualMachines/jdk-22,jdk/ContentsHome/bin/java (Aug 16, 2024, 9:14-20 PM- 9:14:20 PM) (pid: 7365)
Average grade: 45.93333333333333
Highest grade: 99
Lowest grade: e
20.0
<terminated> LargestNumberFinder Java Application] LibraryJava(JavaVirtualMachinesjdk-22.jdk/Contents/Homefoinjava (Aug 16, 2024, 9:29-12 PM -:29:12 PM) (pid: 7887)
Largest number in the array: 83

Wable Smort n r t 15139:443


<terminated> LargestNumberFinder Java Application] LibraryJava<JavaVirtualMachinesjdk-22,jdk/Contents, Home/binjava (Aug 16, 2024, 9:34:16 PM -9:34:17 PM) (pid: 8011)
Largest number in the array: 100

The publc type Meln must be defned ln la own file Wrable Smart n r t 63:16:1589

You might also like