Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 284 Bytes

Converting-String-to-Char.md

File metadata and controls

12 lines (12 loc) · 284 Bytes

class StringToCharDemo { public static void main(String args[]) { // Using charAt() method String str = "Hello"; for(int i=0; i<str.length();i++){ char ch = str.charAt(i); System.out.println("Character at "+i+" Position: "+ch); } } }