Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Jitendra Dixit
Core-Java
1 Answer(s)      6 years and 6 months ago
Posted in : Development process



Advertisement
View Answers

May 8, 2008 at 6:21 PM


Hi friend,

import java.io.*;

public class AppendExam{

public static void main(String args[]) throws IOException{
BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
System.out.println("please enter First String");
String str = buff.readLine();
System.out.println("Please enter second string:");
String str2 = buff.readLine();
StringBuffer sb = new StringBuffer();
System.out.println(sb.insert(0, "amar"));
int len = sb.length();
//last position
System.out.println(sb.insert(len, "deep"));
}
}


---------------------------

read for more information,

http://www.roseindia.net/java/


Related Tutorials/Questions & Answers:
core java
core java  how to display characters stored in array in core java
CORE JAVA
CORE JAVA  CORE JAVA PPT NEED WITH SOURCE CODE EXPLANATION CAN U ??   Core Java Tutorials
Advertisements
core java
core java  i need core java material   Hello Friend, Please visit the following link: Core Java Thanks
core java
core java  Hi, can any one exain me the concept of static and dynamic loading in core java
core java
core java  Hi, can any one expain me serialization,Deseralization and exterenalization in core java
Core Java
Core Java   Hi, Can any one please tell me the program to print the below matrix in a spiral order. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Thanks a lat in advance
core java
core java  Hello sir,What is logic behinde the core java programms,How may programmas are there,for example,sorting of two numbers,grade of the student details,fibonice serice,paldroma,incremting of the program,asscedding
core java
core java  Hello sir,What is logic behinde the core java programms,How may programmas are there,for example,sorting of two numbers,grade of the student details,fibonice serice,paldroma,incremting of the program,asscedding
Core Java
Core Java   How can i write own compile time and runtime exceptions in java   Hello Friend, Please visit the following links: http://www.roseindia.net/java/exceptions/how-to-throw-exceptions.shtml http
Core java
Core java  How to use hyperlink that is href tag in core java without swing, frames etc. My code is StringBuffer oBodyStringBuffer = new StringBuffer("Message Classification: Restricted.\n\n
core java
core java   class A { int a=3; int b=4; public A(int a,int b) { this.a=a; this.b=b; } void display() { System.out.println(a); System.out.println(b); } } class Testthis { public static void main(String arr[]) { A x=new A(8,9
Core java keywords
Core java keywords  How java keywords are stored in library
CORE JAVA CMD
CORE JAVA CMD  How to run cmd command in jsp
core java - Java Beginners
core java  i want to get java projects in core java
core java program in MyEclips
core java program in MyEclips  Can we write core java programs in MyEclipse? If so, then give a pictorial representation of the steps followed
core java - Java Beginners
Core Java interview Help   Core Java interview questions with answers  Hi friend,Read for more information.http://roseindia.net/interviewquestions
core java 15/03/14
core java 15/03/14  Q )how to make arraylist as reads only
core java qus
core java qus  write a import statement that import an outer class including in inner class
core java qus
core java qus  write a import statement that import an outer class including in inner class
core java qus
core java qus  write a import statement that import an outer class including in inner class
Advance and Core JAVA Topics
Advance and Core JAVA Topics  topics come under core java and topics come under advanced java?   Under Core Java, following topics comes... JDBC Under Advanced Java, following topics comes: Generics Reflection
Core Java-ArrayList
Core Java-ArrayList  How do i find duplicates in ArrayList. First i add some elements to ArrayList, then how do i find the duplicates and show the duplicate elements. Give an example
Core Java -String
Core Java -String  Write a program to print "Ranjan pintu am i". the given string is i am pintu ranjan. here there is a condition, we can't use split() method, using loop only
minor project in core java
minor project in core java  I am a student of BE IT branch 6sem ,i have to prepare a minor project in core java please sujest some topics other then management topics
Core java Basic
Core java Basic  How to compile a program using the package statement at the first line.Do I have to create a a Seperate Folder with the name of the package in my directory.Please tell me the steps
Core Java - Java Beginners
Core Java  What is Java? I am looking for Core Java Training  Hi friendThe Core Java Technologies and application programming interface... Microsystems. We generally introduce java in two ways, core java and advance java
Core Java String
Core Java String  Hi , Here my code Class Test { String s1 = "null"; String s2 = "null"; String s3 = s1+s2; } what is the out put
CORE - Java Interview Questions
CORE  Hai this is jagadhish. My doubt in core java is,How many design patterens are there in core java? Thanks inadvance...  Hi friend... patterns in Java. These patterns are grouped under three heads: 1. Creational Patterns
Core Java - Java Interview Questions
Core Java Applet  I want a small core java applet example.Thanks in Advance
Running core java program
Running core java program  I am jayesh raval. I am going to make simplae program and at the time of runnint that program I found class not found exception. I have clear source of that program and that is right in the syntax. so
core java-file
core java-file  hi, i want to create a file name simple.txt using command promt and also i want to insert a 36 numbers in a file using command prompt only and then i want to make that data in the form two data in a bracket lke
 

 

 

DMCA.com