Home Answers Viewqa Java-Beginners Pleae help me to give logic and code for this program

 
 


Ramesh
Pleae help me to give logic and code for this program
1 Answer(s)      5 years and a month ago
Posted in : Java Beginners

View Answers

May 3, 2008 at 7:14 PM


Hi


public class StringExample{
public static void main(String[] args){
char[] data = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'};
String text = String.valueOf(data);
System.out.println(text);
text = String.copyValueOf(data, 2, 5);
text = String.copyValueOf(data, 2, 5);
System.out.print(text);
System.out.print(text);
}
}


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

read for more information,

http://www.roseindia.net/java/beginners/StringReverseUsingStringUtils.shtml









Related Pages:
Pleae help me to give logic and code for this program - Java Beginners
Pleae help me to give logic and code for this program  Write a function that given the string ?original? create a new string ?dramatic? that has two consecutive copies of each letter from the original string. For example
please help me to give code - Java Beginners
please help me to give code  Write a program that uses loops to generate an n x n times table. The program should get n from the user. As a model here is a 4 x4 version: | 1 2 3 4
please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level stair case made of text. The user should choose the text character and the number of stairs in the stair case * ** *** ****   Hi friend
please help me to give code - Java Beginners
please help me to give code  Write a program that reads a file named famous.txt and prints out the line with the longest length. In the case... John von Neumann Donald Knuth Charles Babbage Grace Hopper your program should
verify the code and give me the code with out errors
verify the code and give me the code with out errors   import... clear the errors and give me correct tutorial for my knowledge improving.pls anyone help me. E:\>java add java.lang.NullPointerException at add
please help me to give code - Java Beginners
please help me to give code  Write a function with a signature cheerlead(word) that prints a typical cheer as follows. The word robot: Gimme an R Gimme an O Gimme a B Gimme an O Gimme a T What did you give me? ROBOT
please help me to give code - Java Beginners
please help me to give code  Write a function, sliding(word, num)that behaves as follows. It should print out each slice of the original word having length num, aligned vertically as shown below. A call to sliding(examples, 4
Plz give me code for this question
Plz give me code for this question  Program to find depth of the file in a directory and list all files those are having more number of parent directories
Give me the source code for this problem
Give me the source code for this problem  Ram likes skiing a lot. That's not very surprising, since skiing is really great. The problem with skiing... help to know the longest run possible with the given peaks. That altitude
Logic and Degin
Logic and Degin  Need help in writing a pseudocode for this can so please help me with this just need to get started. In this lab, you are going... will be more efficient by using files and modularizing the program. This week, we
Logic and Design
Logic and Design  Please help me with this Write a program that prompts and accepts a number between 1 and 12. After getting the input, display...(num+"th month "+mn[num-1]; } }   //copy the previous code in notepad
logic for pattern program
create this program in java without help whats the logic how can i understand that whoe's program code its make this type output...logic for pattern program  what's the logic for create pattern
please give me a java program for the following question
please give me a java program for the following question  Write a java program that displays multiple frames : Step 1: Design a frame with three...; In the previous code, we forget to add an icon to button. So we
please help me to write a code for this program
please help me to write a code for this program   1 1 1 1 2 2 1 1 3 4 3 1 1 4 7 7 4 1
please help me to write a code for this program
please help me to write a code for this program   1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
Help me
Help me  plz i want code of program to add real numbers and magic numbers in java example this input :- 5+3i-2+3i output:- 3+6i
Plz Help Me
Plz Help Me  Write a program for traffic light tool to manage time giving between Main-Street and sub-Street. firstly, give green light for 40...? Program must be written in Micro C.   Here is a code that displays
help me
the order, Fourth button is Find length of text. and there are panels. Please help me. i want to write the code on this program. please share ur idea.   ...help me  Dear sir/medam i would like to know how to use the java
plz help me find a program
plz help me find a program  plz help..i want a source code in jsp for order processing
ATM Logic - Java Beginners
or not if in above example 100 rupee note is not found then the program takes 50 rupee note and so on. PLEASE GIVE ME THE CODE FOR THIS. AshishChaudhary...ATM Logic   Q-In an ATM program i want to print the receipt in which
logic-iterate
logic-iterate  in my code i am using for-each loop for displaying data i want use tag to display data how to use plase help me <%@ page import="java.sql.*" %> <%String[] id = (String[])session.getAttribute("ids
Please give me coding for this..
Please give me coding for this..  Write an application that inputs... spaces each.For Example.if the user types the number 42339,the program should print... happens when you execute the program and type a number with more than five digits
very urgent : Iam unable to code this program plz help me - RMI
very urgent : Iam unable to code this program plz help me  Write a Multi-user chat server and client.  Hi friend, Chat server is a standlone application that is made up the combination of two-application, server
please give me an idea to develop a program for this question?
please give me an idea to develop a program for this question?  How to enter a text or number from keyboard without using InputStreamReader method in java
please help me for this program - Java Beginners
please help me for this program   Write a program that asks the user for a starting value and an ending value and then writes all the integers... 11 12 13 14   Hi Friend, Try the following code: import
Logic and desgin HELP just need to get started on this.
Logic and desgin HELP just need to get started on this.   Write a program that accepts five homework scores as input values and stores them... of items purchased. If more than 20 items were purchased, give your customer a 10
give me a grid example in php
give me a grid example in php  give me easy code example of grid in php like mysql editor
Hi Every One , please give me some idia to opning audio File . please Help ..
Hi Every One , please give me some idia to opning audio File . please Help ..  hi Dear Friend , please give me a program to opening audio file... me .please Help
please help me here
please help me here  please show me how can this show the right output that i need please continue doing this program using only if else and do while...: if no: it will return to: Would you like another transaction? ... heres the code thati
please help me here
please help me here  please show me how can this show the right output that i need please continue doing this program using only if else and do while...: if no: it will return to: Would you like another transaction? ... heres the code thati
please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions
help me
help me  hi sir pls tell me how to use ajax form validatin from very simple way with two ot three text field pls help me use ajax in php my email id is:- rohit11tripathi@gmail.com pls sir give me some vasic information i know
help
help  pls help me to get the code of a java program a program to perform different shapes in a menu using javaapplet
help me
help me  please send me the java code to count the number of similar words in given string and replace that word with new one
help me
help me  MY GLASSFISH SERVER NOT START PROPERLY help me warning shows DPL5404:Specification-Version for the optional package [ GNUJAXP ] in the jarfile [ C:\Program Files\Java\jdk1.7.0_02\jre\lib\ext\gnujaxp.jar
help me...
help me...  Write a program that inputs four words and them displays all possible permutations of the words. So, for example, if the words mad, dog, bites and man are entered, then the following are output : man bites mad dog
help me..
help me..  Write a program that inputs four words and them displays all possible permutations of the words. So, for example, if the words mad, dog, bites and man are entered, then the following are output : man bites mad dog mad
Help Me
Help Me  What is the source code for Sample example for Mortgage Calculator in J2ME language for developing Symbian
help me
help me... the flow of people , cars , airplanes , transactions , and so on . write a program... allocated near to the holes with the largest indexes. your program
help me
help me  pls... xplain dis code:- function go() { window.location.replace("logout.jsp",'window','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); self.close
help me..
help me..  Design and write a class named Person and its two subclasses named Student and Employee. Make Lecturer and Admin subclasses of Employee... constructor for each class. Draw the UML diagram for the classes. Write a test program
<logic:iterate> - Struts
the code in my ques I want to use only struts tag not scriplet tag So pl help me...  //Pl help me out Im executing the query here in a separate class... is the jsp my PROBLEM IS IAM NOT GETTING THE LIST FROM THE LOGIC ITERATE ?? DID I DID
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
LOGIC
LOGIC  hey guys..i have my exams coming in somedays and it would be really helpful if someone explained how to develop the logic of any program
help me
help me  Create a GUI application that allows a user to select a text file (using the JFileChooser). The program will then allow the user to do... program should list all the line number where the word is found. To do
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code java.lang.NullPointerException org.apache.jsp.loginjsp.jspInit...) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) here is code
Help me
Help me  HI I am using Tomcat6.0 this is the problem i got wen i run the code , i am using login.html ,login .jsp,login.java and web.xml code...) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) here is code login.jsp <
give the code for this ques///
give the code for this ques///  write a program in java in which... is that ,your program must get and after displaying the string of inputted . you... the following code: import java.util.*; class ReadLine{ public static String
plz help me - Java Beginners
give me reponse my persinal given id  Hi ragni, i am sending of mapping code. ParamLoop ParamLoopTag...plz help me  Thanks deepak continue response..i face some problem i
Not getting the logic - JSP-Servlet
please reply me at jerald.i@bhasin.in please help me,urgent thank you   HELLO Frend Can you send me your code? Thanks

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.