What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-23 08:35:07
complete python developer in 2020 zero to mastery
# Note: No semicolons needed. Comments: # # Tips: \n in string adds new line. \t adds new tab. len() measures length of item. int(), str(), float(), bool, etc converts items # Output: print(value) print("Hi!") # Variables my_variable = "Hi!... Add solution -
Java 2021-09-21 00:07:02
how to find frequency of each word in string in java
HOW TO COUNT OCCURRENCE OF THE WORDS IN STRING (It can also be solved by using nested for loops...) String str = "I am happy and why not and why are you not happy you should be"; String [] arr = str.split(" "); Map<String, I... Add solution -
Java 2021-09-17 01:58:02
how to make a basic for loop in java
// Starting on 0: for(int i = 0; i < 5; i++) { System.out.println(i + 1); } // Starting on 1: for(int i = 1; i <= 5; i++) { System.out.println(i); } // Both for loops will iterate 5 times, // printing the numbers 1 - 5. Add solution -
VBA 2021-09-02 22:52:01
excel vba exit for next loop
'In VBA how to exit a For Next loop when a condition 'is met: use Exit For. For i = 1 To 1000 c = c + 1 If c = 750 Then Exit For Next 'Exit For can also be used inside a For Each loop: For Each r In [A1:A10] c = c + c If r.Value = "Hi&qu... Add solution