Java String charAt() Demo - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
Java String charAt() Demo

Java String charAt() Demo

public class CharAtDemo{
public static void main(String[]args)
{
  String s1="shashikant";
  char c=s1.charAt(4);
  System.out.println(c);
}
}


char to String convertion 


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

char ch[]={'s','h','a','s','h','i'};
   

String s1=new String(ch);
System.out.println(s1);


}
}

About EasyToCode

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.