I think this example can do with recursion as well. class Application { public static void main(String[] args) { Sample.sayHi(); } } class Sample { static int count = 0; public static void sayHi() { if (count == 4) return; else{ System.out.println("Hello"); ++count; sayHi(); } } }
@MohdAdnani5 ай бұрын
00:36 confirmed that sir was backbencher 🤣🤣
@pradeepkanakala8713 Жыл бұрын
can we use system.out.println(hello); instead of system.out.println(x."hello");
@abhijithtm1318 Жыл бұрын
yes you can. the x: is just a prefix inserted by vs code
@Playwith-Gk Жыл бұрын
@@abhijithtm1318 its not wporking in intellij
@anushalekhireddy9732 Жыл бұрын
Yes you can , just add double quotes around hello. System.out.println("hello"); That .x is just a suggestion made by vs code
@anshulnegi18224 ай бұрын
System , S must be capital raja ji
@thekishoreworld Жыл бұрын
Please provide API and API testing
@jobbyyck92982 ай бұрын
In what where are you doing this program , Java or phyton
@AODW041215 күн бұрын
This is a course about java, how can you even ask this?
@cgc8570 Жыл бұрын
Y using x: in system.out.println()?
@pranavsharma5395 Жыл бұрын
it automaticalyy by vs code suggestion extension so ignore it
@cgc8570 Жыл бұрын
@@pranavsharma5395 okay thanks bro
@sivaramakrishnan43688 ай бұрын
That X is suggestion provided by VS code, so ignore that