Read array input of characters in Java | Arrays | Scanner | Part 2 of 2 | Java coding in Hindi
Read array input of characters in Java | Arrays | Scanner | Part 1 of 2 | Java coding in Hindi There are four possible input cases to read an array of characters. Input Case3 and Case4 are discussed in this video. Input Case1 and Case2 are discussed in a separate video here: https://youtu.be/8gRb-7l2Olk 1:25 input case 3 4:09 input case 4 1:25 input case3: Input is one single line of characters ex 1: p?krt output: [ 'p' '?' 'k' 'r' 't' ] ex 2: b al I output: [ 'b' ' ' 'a' 'l' ' ' 'i' ] 4:09 input case4: Input consists of n+1 lines First line of input is an integer n Following n lines contains a character in each line ex 1: 5 p ? k r t output: [ 'p' '?' 'k' 'r' 't' ] ex 2: 4 b o t output: [ 'b' ' ' 'o' 't' ] Referenced videos: nextInt() with nextLine() in Scanner: https://youtu.be/Y21v_iq3Cww Find more about my CodeWithBK English Channel here: @CodeWithBK Find this solution in English on my CodeWithBK English Channel: https://youtu.be/gTo0KCUvC6I Follow me: Instagram ▶️ https://www.instagram.com/balkrishna_srivastava Java concepts for ISC Class 12 Computer Science students Java concepts for beginner students in Java Programming Java practice program in loops and input for beginners. ISC Class 12 practice problem for beginners in numbers. #javaforbeginners #javaprogramming #iscclass12 #javaclass #javacoding #class12computerscience #class12th #class12boardspreparation #computerscienceclass12
Download
0 formatsNo download links available.