This is the code what i tried but its not thw thing i want
public class Letter
private String sendername;
private String recipientname;
private String bodyletter;
public static void sender (String nsender)
String name= "a";
public static void recipient (String nrecipient)
String name= "b";
public static void letter (String bletter)
public static void addLine (String line)
String linea=" ";
public String getText()
String body= "Dear natasha";
String line2 =" ";
String line3=" Student of java class";
String line6=" ";
String n =body+ "\n "+ line2 + "\n" + line3 + "\n" + line4 + "\n" + line5 + "\n" + line6 + "\n" + line7;
//return n ;
public static void letterPrinter()
String s1="Dear Teacher !";
String user="I am a student of class java.";
String s= s1 + "\n" + user;
String ns ="Sincerely ,";
String line6=" ";
String student = "b";
String a =ns +"\n" + student;
public static void main(String args)
Here are some java programming tutorials that I hope will help you and don't forget the Related Questions down below:
What does happen?
Answer this Question
human resources - at school i was asked to write a job letter. this letter will ...
English - 1. According to 'spacing words', write the following right. ...
history - need these letters unscrambled to make a nine letter word relating to ...
Grammar - What exsits or orcurrs in space that is 19 spaces long. The sencond ...
Discrete Math - Can someone help? Very confused. . . John Sununus was once the ...
Discrete Math - Hi there I'm confused as to how to start this problem, any help ...
French - Our French class was given an assignment where each student would write...
english - name a breakfast food that begins with the letter k also the letter a
English - I'm a 7 Letter Words, You Read me daily, My 5, 6, 7th Letter increases...
uop - the different strategies and techniques used in writing a good-news letter...