answersLogoWhite

0


Best Answer

public class suthagar {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

String[] names={"suthagar","mani","kalai"};

String[] address={"pondy","vilupuram","pondy"};

String[] possion={"manager","clerk","assicent manager"};

for(int i=0;i<names.length;i++)

{

System.out.println("Name"+(i+1)+"="+names[i]);

System.out.println("Address"+(i+1)+"="+address[i]);

System.out.println("Possion"+(i+1)+"="+possion[i]);

}

}

}

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 14y ago

/* INPUT: Mohandas Karamchand Gandhi

* OUTPUT: M. K. Gandhi

*/

import java.io.*;

class ShortName

{

protected static void main()throws IOException

{

BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter your name: ");

String s=in.readLine();

char ch; short c=0,d=0,e=0;

do

{

ch=s.charAt(d);

if(ch==' ')

c++;

d++;

}while(d<s.length());

String w[]=new String[c+1];

for(d=0;d<=c;d++)

w[d]="";

for(d=0;d<s.length();d++)

{

ch=s.charAt(d);

if(ch==' ')

{

e++;

continue;

}

w[e]+=ch;

}

for(d=0;d<=c;d++)

{

if(d==c)

System.out.print(w[d]);

else

System.out.print(w[d].charAt(0)+". ");

}

}}

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 11y ago

System.out.println("Your initials here");

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in java to take one's full name and print its initials?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a welcome address?

welcome you all for wonder full cultural program by our friends , once again i welcome all for Wonder full program


Do you put a space after a full stop in initials?

If the full stop is at the end of the initials then there should be a space before the next word.


How do you write a c program to prints name?

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.


What is the full name of C.N.Janaki?

She already has her name to be full with her initials: &quot;C.N.&quot; and last name: &quot;Janaki&quot;.


What are Nick Jonas initials?

Nicks Jonas's full name is Nicholas Jerry Jonas so, his initials are N.J.J (:


How do you print in omni-graph?

From Omnigraph website: Use print preview to print on a full sheet of paper


What nursery rhyme has the initials A P L O T R T?

The nursery rhyme with those initials is &quot;A Pocket Full of Rye.&quot;


To kill a mockingbird dills initials?

Dill's full name in &quot;To Kill a Mockingbird&quot; is Charles Baker Harris. His initials would be CBH.


If initials rpm were on an exercise bike For what do these initials stand?

Revolutions per minute. It may be the rate at which a pedal turns a full rotation per minute.


What is the word for using the initials of an organisation rather than its full name?

Acronym


Why did S.E. Hinton publish β€œThe Outsiders” under this name and not her full name?

She used her initials to avoid the criticism that a woman could not write about male experiences. So without using her full name, no one could immediately tell if the novel was written by a man or a woman.


What is meaning of Employee's initials?

An employee's initials usually refer to the first letter of each part of their full name. For example, if an employee's name is John David Smith, his initials would be JDS. Initials are often used to identify individuals, especially in official documents or when signing paperwork.