Java
Programming and Technical
Category
how to replace , in a given string without using predefined methods
Read Solution (Total 3)
-
- public static void main(String[] args) {
String org= "This car is my car";
String [] temp=org.split(" ");
int len=temp.length;
String ne = "";
for(int i=0;i - 7 years agoHelpfull: Yes(10) No(2)
- class repla
{
void convert(String s1)
{
int s=s1.length();
char m[]=new char[s];
for(int i=0;i - 7 years agoHelpfull: Yes(2) No(2)
- Scanner sc=new Scanner(System.in);
System.out.println("enter string");
String s=sc.nextLine();
System.out.println("enter a character");
String s1=sc.nextLine();
char[] c=s.toCharArray();
char[] c2=s1.toCharArray();
for(int i=0;i - 6 years agoHelpfull: Yes(0) No(0)
Java Other Question