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




Have Programming Question? Ask it here!
 
 
 


Jitendra Dixit
Core-Java
1 Answer(s)      6 years 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  i need core java material   Hello Friend, Please visit the following link: Core Java Thanks
Advertisements
CORE JAVA
CORE JAVA  CORE JAVA PPT NEED WITH SOURCE CODE EXPLANATION CAN U ??   Core Java Tutorials
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 exain me the concept of static and dynamic loading in core java
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  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   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  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 - Java Beginners
core java  i want to get java projects in core java
CORE JAVA CMD
CORE JAVA CMD  How to run cmd command in jsp
Core java keywords
Core java keywords  How java keywords are stored in library
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 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 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
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 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 -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
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 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
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-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 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
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 - Java Interview Questions
Core Java Applet  I want a small core java applet example.Thanks in Advance
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
core Java programming
core Java programming  Hi, Thanks for ur previous answers.... I need some of these answers also... Bharathi Indian Cuisine is a leading Indian...;TIME:HHMMSS;ITEM1:QTY:PRICE;ITEM2:PRICE2;] They are looking for a Java Program
core java - Java Beginners
core java  "Helo man&sir can you share or gave me a java code hope its ok?"thank you Design a program that records and reports the weekly sales.... core java jsp servlet Friend use Core JAVA .thank you so much.hope you
core java - Development process
core java  Hi i want core java code for this problem.its urgent ,waiting for your answer PROBLEM ONE: SALES TAXES Basic sales tax is applicable... to : http://www.roseindia.net/java/ Thanks
core java - Applet
core java   Namaste sir , how can draw a line in Applet. I want when I press mouse button and moves any way then show the line . i, working jdk1.5.0_17 version. without use Canvas and Frame. like this: when press mouse button
Core java - Applet
Core java   I, want to make a menu and thats munu Item is Shortcutkey is 1st and 2nd About when i click 1st menu Item shortcutkey display the window... with the following html code: Java Applet Demo Thanks
core java - Development process
core java  Hi i want core java code for this problem.its urgent ,waiting for your answer PROBLEM TWO: MARS ROVERS A squad of robotic rovers... visit to : http://www.roseindia.net/java/ Thanks
core java programming question
core java programming question  How to write a java program to list the customer names arrived to a restuarant on a particular date in alphabetical order with arguments as 1 filename yymmdd cust   Hi Friend, Try
Stages in Core Java - Java Beginners
Stages in Core Java  I like to know the growth stages of Core JAVA: i came to know the Stages of core java as below: 1. core java 2... the market for Core Java? (or any others, plse specify
How to integrate core java with Hibernate
How to integrate core java with Hibernate  How to integrate core java with Hibernate How to integrate core java with Hibernate   xxxxxxxxx... link will provide you some tutorials of Core Java and Hibernate Integration.  
Core java linked list example
Core java linked list example  What is the real time example for linked list
Core Java Topics
Core Java Topics Following are the topics, which are covered under Core Java. In the roseindia website for core java, programmer will find completed details of every core java topic and simple example of core java that will help you learn
Core Java Exceptions - Java Beginners
Core Java Exceptions  HI........ This is sridhar .. Exceptions r checked exception and unchecked exception ........? Checked exceptions r.... http://www.roseindia.net/java/ Thanks
core java project by using databse
core java project by using databse  hello sir, i'm a b.tech final year student.... i wantto make a project on java with database... can u plzz suggest me how i can start for it.... means on which topic i can make project
Core java PALANDROM - Java Beginners
Core java PALANDROM  1.i want program of palandroam? i want source code?plz reply 2.i want program of promenubers?i want source code?plz reply  Hi Friend, Try the following code: 1)Palindrome import java.util.
Core Java-java.util.date - Java Beginners
Core Java-java.util.date   How we can convert string to Date  ...); } } } For more information on Java Conversion Visit to : http://www.roseindia.net/java/java-conversion/ Thanks Vineet
CORE JAVA get middle name
CORE JAVA get middle name  hello sir...how to get middle name using string tokenizer....??? eg..like name ANKIT it will select only K...!!!!   The given code accepts the name from the console and find the middle
core java - Java Interview Questions
core java  Hai this is jagadhish.Iam learning java.I have a doubt in core java that is,Is there any instanceInitialization() method is there.If any...; Hi friend, There is no method "instanceInitialization()" but java having
Core Java - Java Interview Questions
Throw Keyword in Core Java  Why to use Throw Keyword in Core Java?  throw keyword. it is used to user rethrow Exception to caller.its at a time only one exception we can throw.But throws key word is method signature
core java, static - Java Beginners
core java, static  Dear sir, in java non-static fields can not be accessed in a static field. But if we create an object of class type in static field and then call non-static field in it, it works fine as in following program
Advertisements
 

 

 

DMCA.com