Taking Input in Java : Scanner Class | Lecture 4 | Java and DSA Foundation Course

preview_player
Показать описание
To access detailed notes and assignments on each lecture, please enroll into the course at our PWSkills Website.

▶️ PW Skills LinkedIn Channel -

Timestamps:
00:00 - Java Scanner class
17:32 - Reading characters using scanner class
21:01 - MCQ

#PWSkills #CollegeWallah #PhysicsWallah #PhysicsWallahSkills #Java #JavaArchitecture #DSAFoundationCourse #JavaFoundationCourse
Рекомендации по теме
Комментарии
Автор

To access detailed notes and assignments on each lecture, please enroll into the course at our PWSkills Website.



▶ PW Skills LinkedIn Channel -

CollegeWallahbyPW
Автор

19:55 Input 3rd character of string :
Scanner sc = new Scanner(System.in);
char ch = sc.next().charAt(2);

ankansadhukhan
Автор

20:00 to read the third character of a String we write
Scanner sc = new Scanner(System.in);
char ch = sc.next().charAt(2);

kapilrana
Автор

Thank you so much PW skill .


I had requested by email . Now download option is available on Android and also in PC.

sanjupaul
Автор

Thank you PW Skills team 🙏👏

I have suggested, please don't use in red color in pad .n zoom in programming doing in laptop...it's visible clear...

anupkulkarni
Автор

Today is lecture-4👌👌 and I've completed lect-3🥰❤️ Thank you mam

apnashankar
Автор

sc.next().CharAt(2);
can be used to read third character of the string entered by the user.

siddharthasingh
Автор

Theory may be not much interesting but when i start coding with you MAM, that goes very smooth in my mind.😎😎

LokeshSITO
Автор

19:56 for input 3rd character of srting
Following code is needed:--

import java.util.Scanner;

public class Read_Character {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter any String :");
char ch1 = sc.next().charAt(2);
System.out.println("The entered text Third character is "+ch1);
}
}

bhaibhav
Автор

.Mam, this is really amazing and easily understandable.
Thank you so much .

RehanAliArman
Автор

Thanks your team to provide this course free

RakeshChaurasiyaofficial
Автор

21:30 Value of q will be '20' not 'physics'. Hence, final output will be '2020'.

debanjanghosal
Автор

The answer in the video: 20:02
Char ch = sc. next().charAt(2);
Sout(enter)= " character is:" +ch;

niharikapanda
Автор

mam ap bahut acheee s padhati h etna m to 6 classs ka student v smjh jayega

ManishRaj-iobg
Автор

amazing lecture mam, aap na bilkul aasan se samjate hai topic ko. Thank you for you are part of PW.

harisuman
Автор

mam please thoda slow type kijiye and shortcuts thoda less use kijiye .. beginners ko smghne m problem hoti h...kch time baad jab sb bacche thoda flow me aajayenge tb kijiyega shortcuts use verna confuse hojate h ham plz

ayushrawat
Автор

to get third character of word write the index number in bracket
e.g
char ch = sc.next().charAt(2);

RehanAliArman
Автор

If we want third character then we need to replace 0 to 2. char ch = sc.next().charAt(2);

SRNSTUDY
Автор

We can access the 3rd character of the string by
typing : char ch = sc.next().charAt(2);
After the input of the string.

jasnoorsinghvlogs
Автор

20:00 : char ch = sc.next().charAt(2);

abhishekkumarmehta