public static int maxPosPrefixes(List<Integer> arr) {
int count = 0;
Collections.reverse(arr);
int prefixSum = 0;
for(int i : arr) {
prefixSum +=i;
if(prefixSum >0) {
count++;
}
}
return count;
}
int count = 0;
Collections.reverse(arr);
int prefixSum = 0;
for(int i : arr) {
prefixSum +=i;
if(prefixSum >0) {
count++;
}
}
return count;
}
What is the return type of a method that does not return any value?
Anonymous Quiz
20%
null
73%
void
4%
none
3%
empty
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
https://www.youtube.com/c/frbjava
Discuss doubts in @javaforfree
https://www.youtube.com/c/frbjava
Discuss doubts in @javaforfree
Shall we start a Playlist on our YouTube channel for Java 8 to 17 features?
Anonymous Poll
90%
Yes
10%
No
π3
#Java_Quiz (Question - 123)
Which of the following is a method having same name as that of itβs class?
Which of the following is a method having same name as that of itβs class?
Anonymous Quiz
7%
finalize
6%
delete
19%
class
68%
constructor
We are organizing a paid workshop for 99 per person.
The following topics will be covered in the workshop.
1. Java installation
2. Installing eclipse
3. Debugging Skills basic
4. Reverse a String
5. Reverse a Number
6. Factorial of Number
7. Palindrome
8. Fibonacci Series Recursive.
9. Average of Numbers.
10. Find Max and Min in Array
If you face any problems they will be solved immediately by sharing the screen. After that, you will be added to a support group where if you face any issues in a program taught in the workshop will be resolved.
This is much cheaper than any Java coaching and you will get a lot of info in just 2 hours on workshop.
After this workshop, we will share an assignment if anyone can complete the assignment in a given period the next workshop will be free and so on.
Anyone can learn Java in just 99 Rs if you complete the assignment.
Our purpose is to share the knowledge with everyone not to earn money.
Interested candidates, please join the below-mentioned group : @javaworkshop
Session Date: 26 March 2022
Session Timings: 12-2 PM
Mode of Payment: UPI.
If interested please register your names by joining the above group.
Thanks,
The following topics will be covered in the workshop.
1. Java installation
2. Installing eclipse
3. Debugging Skills basic
4. Reverse a String
5. Reverse a Number
6. Factorial of Number
7. Palindrome
8. Fibonacci Series Recursive.
9. Average of Numbers.
10. Find Max and Min in Array
If you face any problems they will be solved immediately by sharing the screen. After that, you will be added to a support group where if you face any issues in a program taught in the workshop will be resolved.
This is much cheaper than any Java coaching and you will get a lot of info in just 2 hours on workshop.
After this workshop, we will share an assignment if anyone can complete the assignment in a given period the next workshop will be free and so on.
Anyone can learn Java in just 99 Rs if you complete the assignment.
Our purpose is to share the knowledge with everyone not to earn money.
Interested candidates, please join the below-mentioned group : @javaworkshop
Session Date: 26 March 2022
Session Timings: 12-2 PM
Mode of Payment: UPI.
If interested please register your names by joining the above group.
Thanks,
π3
Guys this is our own channel on youtube.
If you are totally new to programming subscribe and start watching videos on it.
If you face any issue post in group
https://www.youtube.com/c/FrbJava
If you are totally new to programming subscribe and start watching videos on it.
If you face any issue post in group
https://www.youtube.com/c/FrbJava
https://www.youtube.com/watch?v=GAqeJeSbghM&t=8s
Watch this video, if you want to learn how to create a class from given description
Watch this video, if you want to learn how to create a class from given description
YouTube
Capgemini Sprint 1 Solution| Customer and Adress | Shortcut trick to solve
Many similar questions were asked in Capgemini's Adapt exam.
This video explains a shortcut using eclipse to create toString() and constructor of a class.
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgpβ¦
This video explains a shortcut using eclipse to create toString() and constructor of a class.
Basic java playlist.
https://www.youtube.com/watch?v=xDLoM-ab--g&list=PLqDGM2q_T_BxGzXiCntA67UzhMfk2Nlgpβ¦
π1
These programs will be taught today in the workshop.
https://github.com/codewith-arpan/Java-WorkShop/tree/main/March26/src/com/darwin/workshop
https://github.com/codewith-arpan/Java-WorkShop/tree/main/March26/src/com/darwin/workshop
GitHub
Java-WorkShop/March26/src/com/darwin/workshop at main Β· codewith-arpan/Java-WorkShop
Contribute to codewith-arpan/Java-WorkShop development by creating an account on GitHub.
π1
What is the time complexity of fibbonacci series?
Anonymous Poll
38%
O(n)
33%
O(n2)
25%
O(2 to the power n) exponential
4%
O(n3)
Write a program to count digit frequency.
Input 543346
5
Output 1
Because 5 is coming only once
Input 543346
5
Output 1
Because 5 is coming only once
π2π1
Which keyword is used to inherit a class in java?
Anonymous Quiz
64%
extends
7%
super
18%
inherit
7%
implements
4%
this
Which Loop Is Best When We Know The Number Of Iterations??
Anonymous Quiz
61%
for
16%
while
12%
do while
8%
for each
4%
poll check
π₯5π2
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture
https://www.youtube.com/c/frbjava
Discuss doubts in @tcs_infosys_accenture