class sortstr
{
public static void main(String args[])
{
int len=args.length;char ch1;
if(len==0)
{
System.out.println("No arguments are given ! ");
return;
}
char[] str=args[0].toCharArray();
char temp;
for(int i=0;i<len;i++)
{
for(int j=0;j<len-1;j++)
{
ch1=str.charAt(j);
char ch2=str.charAt(j+1);
if(ch1> ch2)
{
temp=str[j];
str[j]=str[j+1];
str[j+1]=temp;
}
}
}
for(int i=0;i<len;i++)
{
System.out.print(str[i]);
}
}
}
You first learn how to program in C.
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program
Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
You first learn how to program in C.
write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?
write a program that reads a phrase and prints the number of lowercase latters in it using a function for counting? in C program
Write a c program that reads your first name and surname when you enter them. Each part of your name should not be more than 12 characters. Finally, have the program display your full name.
The prince has a lot of prints that he printed (iI don't know I know it's dumb)
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
write a program which reads names of students and their telephones from a file and produce a linked list ordered in alphabetical order by the surname of the student.
int main (void) { puts ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); return 0; }
i dont know plz give me the answer
class TestApp { public static void main(String args[]) { char ch; for( ch = 'a' ; ch <= 'z' ; ch++ ) System.out.println(ch); } }
Ask a local attorney.
Sibelius is a program on which users write sheet music and can hear it played back to them.