From 185dd4f1ab8f73f40b7c097dbf6e1cb3849dc71d Mon Sep 17 00:00:00 2001 From: pradyumn sharma <54592810+P-cpu@users.noreply.github.com> Date: Thu, 1 Oct 2020 10:43:02 +0530 Subject: [PATCH] For loop definition via comments For loop definition --- TUTORIAL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TUTORIAL.md b/TUTORIAL.md index f098ef9..e9fe411 100644 --- a/TUTORIAL.md +++ b/TUTORIAL.md @@ -42,7 +42,8 @@ The next step is to create `CodedPacket`s that can be transmitted and combined. ``` CodedPacket[] codewords = new CodedPacket[blockNumber]; -for ( int i = 0 ; i < blockNumber ; i++) { +for ( int i = 0 ; i < blockNumber ; i++) */ for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times,here specific numbers of times is less than block number +{ codewords[i] = new CodedPacket( inputPackets[i], blockNumber, ff); } ``` @@ -76,4 +77,4 @@ for ( int i = 0; i < blockNumber ; i++) { ``` -Every time a packet is added the decoder tries to decode as much as it can and returns the blocks it was able to decode. \ No newline at end of file +Every time a packet is added the decoder tries to decode as much as it can and returns the blocks it was able to decode.