ibm
Programming and Technical
Programming
Arrays
WAP to convert the alternate characters of the string to upper case . The first letter of the string has to be Capital.
I/P:We are the worlD
O/P: We ArE tHe WoRlD
Read Solution (Total 12)
-
- public class Lastbetword {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
System.out.println("enter a string");
String ch=scan.next();
int n=ch.length();
char []arr=ch.toCharArray();
char []arr1=new char[n];
int l=arr.length;
char c;
for(char i=0;i - 7 years agoHelpfull: Yes(28) No(8)
- String s="We are the worLD";
System.out.println(s);
int j=0;
String otherstring=null;
int length=s.length();
for (int i=0;i - 7 years agoHelpfull: Yes(6) No(1)
- import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
String s=sc.nextLine();
String word="";
for(int i=0;i - 6 years agoHelpfull: Yes(4) No(4)
- import java.lang.*;
import java.util.Scanner;
class ibm2
{
public static void main(String [] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("enter a string:");
String s=sc.nextLine();
String b="";
for(int i=0;i - 6 years agoHelpfull: Yes(4) No(1)
- Can anyone write java coding for this question
- 7 years agoHelpfull: Yes(3) No(1)
- Can we use scanner class in program???????
- 7 years agoHelpfull: Yes(3) No(1)
- String s="We are the worLD";
System.out.println(s);
int j=0;String otherstring=null;int length=s.length();
for (int i=0;i - 7 years agoHelpfull: Yes(1) No(2)
- Please post the previous round questions which ever u rembember..
- 7 years agoHelpfull: Yes(0) No(0)
- yuvaraju chennam full code plese
- 7 years agoHelpfull: Yes(0) No(0)
- Can u mail the program for tis question
mounikachoudary94@gmail.com - 7 years agoHelpfull: Yes(0) No(1)
- class CapitalAlternateCharacterTest {
public static void main(String[] args) {
String text="hi prashant aarya";
String temp=null;
char[] tx=null;
tx=text.toCharArray();
for(int i=0; i - 7 years agoHelpfull: Yes(0) No(1)
- //WAP to convert the alternate characters of the string to upper case . The first letter of the string has to be Capital
#include
#include
char upper(char);
char lower(char);
int main()
{ int i,count=0;
char s[100],p;
printf("enter the string");
scanf("%[^n]s",&s);
while(s[i]!=' ')
{
count++;
i++;
}
for(i=0;i='a'&&s[i]='A'&&s[i] - 4 years agoHelpfull: Yes(0) No(0)
ibm Other Question