Java Bangla Tutorials 73 : for each loop

preview_player
Показать описание
➡️ In this video, I will discuss the enhanced for loop.
⭐️ Video Contents ⭐️
⌨️ (00:00) Intro
⌨️ (00:11) enhanced for loop
⌨️ (07:02) outro

🛑 Web development? Checkout following playlists :

🛑 Programming languages? Check out the following playlists:

🛑 Android development? Check out the following playlists:

🛑 HSC Students? Are you worried about ICT? I have created 377 videos for you. check out the following playlists-

🛑 CSE Students? Checkout following playlists :

🛑 MS Office? Trying to learn MS office to improve your skill? Checkout following playlists :

#java #anisul_islam #java_bangla_tutorial #web_development #bangla_web_development #andorid #javaprogramming #javatutorial #bangla_tutorial #java_anisul_islam
Рекомендации по теме
Комментарии
Автор

nice and effective shoul have got all of my teachers like you since my Boss

MdSabitYasin
Автор

Wow Simple & fantastic for each loop. Thank you so much sir for this tutorial.

jannatulnayem
Автор

Awesome & Interesting (for each loop)

faisalalmamun
Автор

Thank you for your nice presentation sir.

md.moyeenuddinmostofajamal
Автор

following from Malaysia sir.u r the best

Monirul
Автор

many many thanks, vai Delwar From London

delwarmahdi
Автор

package day2;


public class ForEachLoop {
public static void main(String[] args) {
int [] num = {1, 2, 3, 4, 5, 6, 7, 8, 9, 31};
int sum = 0 ;
for(int x : num){
sum = sum + x ;
}
System.out.println("The sum is : "+sum);
String []names = {"sita", "Elora", "Nishat", "Susmita"} ;
for(String x : names){
System.out.println(x);
}
}

}

tomabanik
Автор

For each loop babohar kora keyboard thaka input neya output pabo ki vaba.

newtechbuzz
Автор

package Array;


public class ForEach {
public static void main(String[] args) {
int[] num = {10, 55, 42, 5, 78, 96, 3, 0, 48};
int sum =0;

for( int X : num){
System.out.println(X+" ");
sum = sum+X;
}
System.out.println("sum: "+sum);
}
}

mhs_
Автор

package startjava;


public class ForEachloop {
public static void main(String[] args) {
int[] num = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};

int sum = 0;
for(int x : num)
{
System.out.println(x);
sum = sum + x;
}
System.out.print("Sum is ="+sum);

}


}

sitanath
Автор

I did this using input, but when I take input, I can only take n-1 input, how to fix it?


package Array1;

import java.util.Scanner;
public class ForEachLoopDemo {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n;
System.out.print("Enter array length: ");
n = input.nextInt();
String[] name = new String[n];
System.out.print("Enter your names: ");
for (int i = 0; i < n; i++) {
name[i] = input.nextLine();
}

for(String x : name){

System.out.println(x);

}

}
}

shakilahmed
Автор

vaiya onak onak thanks apnaka assa vaia akta help koran andorid apps making er jonno ei sob java ki sikta hoba naki kicu kicu part sikla hoba ans me vaiya

serialnatok
Автор

vai for each loop use kore ki user theke input nite parbo?

MdMainuddin-evtc
Автор

sir java game development tutorial korle valo hoto anok

AII__NazmulHossain
Автор

স্যার জাভা ফুল কোর্স এর ভিডিও গুলো কিভাবে পাব? Sir please help me!

rajibahmed
Автор

Assignment-18

import java.util.Scanner;

public class Assignment18 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);

System.out.print("Enter the day number (1-7): ");
int num = input.nextInt();

String[] weekend = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};

String day = weekend[num-1];

System.out.print("The day is : "+day);
}
}

AsadullahAlGalib
Автор

sir for each loop ke c ta use kora jay sir ?

Ruhulamin-urkw
Автор

package x.assignment;

import java.util.Scanner;

public class Assignment18 {
public static void main(String[] args) {

String[] WeekDays={"Monday", "Tuesday", "wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
Scanner input = new Scanner(System.in);
System.out.println("Enter Day Number Between 0-6");
int Day=input.nextInt();
for(int i=0;i<7;i++){
if(i==Day){

}
}

}
}

_.its-ih._
Автор

public class assainmen18 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number : ");
int num = sc.nextInt();
String[] weekdays = {"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday"};
switch (num) {
case 1:

break;
case 2:

break;
case 3:

break;
case 4:

break;
case 5:

break;
case 6:

break;
case 7:

break;

default:
System.out.println("You entered wrong input!");
break;
}
}
}

mdjahidulislam
Автор

import java.util.Scanner;

public class Array4 {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner(System.in);
System.out.println("Enter a number (1-7) to see equvalent day: ");
int n = input.nextInt();
int [] num = {1, 2, 3, 4, 5, 6, 7};
switch (n) {
case 1:

break;
case 2:

break;
case 3:

break;
case 4:

break;
case 5:

break;
case 6:

break;
case 7:

break;

default:
System.out.println("You enter a wrong input.");
break;
}


}

}

hasib