Java Tutorial: Exercise 3 - Solutions & Shoutouts

preview_player
Показать описание
Java Tutorial - Exercise 3 solution: In this video, we will see how to use object oriented programming approach to solve problems in java using the object oriented approach. This video will help you hone your java skills and will give you a good start with practical use of object oriented programming

Best Hindi Videos For Learning Programming:

►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -

►Django Complete Course In Hindi -

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Congratulations guys for a half-century.
and thank you for this beautiful course Harry Bhai.

anandraj
Автор

Android Development course with notes🔥

ashokgawate
Автор

now i am hitting half-century in my own ground. thank you harry bhai: day by day i am becoming java master by your hand work and our also, i am very very thankful to you . god bless you harry bhai.

smrutiranjan
Автор

We don't have to add getter for noOfGuesses at 2:23 we can increment it in isCorrectNumber directly it works.

choudharyshadab
Автор

Sir u r doing great job by teaching and sharing your knowledge here that too for no price and instead expect nothing back
Pls continue this 🙏 for as much time as possible cause many can't afford expensive classes but your courses are very straight forward and exciting project
Tq

Aman-fiky
Автор

This playlist is too good, I created this game on my knowledge after learning form only this playlist. And my game is working perfectly. Thank you Harry Bhai for this course.

ashvindhakal
Автор

Congratulations 🎉 Dear Harry sir 🎉🎉
And thank you so much 😊😊

Himanshu__jandu
Автор

congrats Harry Bhai!!
This is the 1st course in which I came this long.
congo for half century for me.Haha!
you are the best!!

shivamdwivedi
Автор

You deserve millions subscribers. Excellent coder in you tube.

engineerbhai
Автор

Bhai aap bahut achha sikhate ho computer language ♥️♥️
.
Mera ek request hai ki DART aur Flutter par ka tutorial ka series laye bilkul beginner friendly jisko programming ka A bhi na aata ho woh kar le
.
Aur Flutter men aap ek study app banana jisme quiz study aur ad kaise lagye
.
Dhanyavad 🙏🙏

kunalchaudhary
Автор

I am from Afghanistan and I find your vedeios very well. Thanks alot Mr.Harry

sohailnoorzai-pzkg
Автор

lets go half century and going good in java teaching thank you bhaiya for the course

sambhavheda
Автор

Hi Harry,

Please look at the solution below and advise:

import java.util.Scanner; import java.lang.Math;

public class HelloWorld {

public static void main(String[] args)
{
Game g=new Game(); g.guess(); } }

class Game{
private int a;
private int count=0;
Scanner SC=new Scanner(System.in);

public Game(){
a=(int)(Math.random()*100);
}
public void guess()
{
for(int i=0; i<=100; i++) {
System.out.println("Enter a number between 0 to 100");
int b=SC.nextInt();
if(b>a)
{ System.out.println("try lesser number than current"); count++; }
else{ if(b<a) {
System.out.println("Enter a greater number"); count++;
}else
{ break; } } } }

public int getCount(){ return count; } }

ComedykiCopy
Автор

congrats guy's we have completed half you harry bhai...

learn_more-czzm
Автор

❤❤ congratulations 👏🎉🎉👏👏 harry bhai for half century 🎉🎉🎉 good 😊

devtomar
Автор

I actually created this in python as my school project. But I think my school project was way harder. We had to give the player hint regarding the number like no. Of
correct integer and Number of correct integer at correct place.

I did it successfully bcoz of Harry only!! I learnt python from his playlist

piyushraj
Автор

Congratulations Harry bhai for half century ❤️
Soon you will hit century definitely💯

harshkshirsagar
Автор

Congratulations for half century and thank you Harry Bhai for such a wonderful course 🎉🎉

learningcircle
Автор

Congrats for half Century 💐💐💐💐, we made it together.
Will do Century in some days with your course. Thanks for your efforts.🎉🎉🎉🎉

princenagar
Автор

congratulations complete half century

seraj