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. ...
Java Programming - I'm new to Java and I'm not sure how to write the source code...
CPE102 - Java - Can you help me with this portion of the program? Implement a ...
Java - create a java program that accepts students names, and test scores from a...
Discrete Math - Can someone help? Very confused. . . John Sununus was once the ...
math - 2.-The longest one-word name of any place in America is ...
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