answersLogoWhite

0


Best Answer

gets()function,we can do this process...

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain one method to process an entire string as one unit?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Process an entire string as one unit?

may...we can try by using pointer........... gets


What method returns the uppercase equivalent of a string?

The toUpperCase() method returns the uppercase equivalent of a string.


How do you separate a word using a string method?

The string class has a split() method which takes a regex pattern and splits the string and returns an array.


What are some ways in order to perform String comparison in Java?

String comparison in Java features four ways. These ways are String comparison using equals method, equalsIgnoreCase method, CompareTo method, and CompareToIgnoreCase method.


How do you get odd ascii letters from a given string using string copy?

there is no such method using string copy


What method that returns string representation of the contents of the variable?

Since the question is in the Java category: in Java, the method is called toString(). This method will automatically be invoked if you implicitly convert an object to String type, for example: "The answer is: " + myObject In this example, the String concatenation (the plus sign) forces the object, myObject, to type String - to do this, the object's toString() method will be called.


What method of the string class would help you check if a string ends with a certain sequence of characters?

str.endsWith(string)


What is the constant string length method?

To get the length of the string we use length property. The length property returns the length of a string (number of characters we use).If the string is empty, length of the string will be 0. Syntax: string.length Hope this helps.


Can you sue if a dog swallows a string that could have belonged in your home?

I'll tell you if you explain STRING.


Write a method header for a method named find that takes a String and a double as parameters and returns an integer?

int find(String str, double d);


How do you use indexOf in java?

indexOf is a method of the String class. Since the indexOf method is overloaded, I will be using the indexOf(String str) version in this example. According to the API Documentation, this method "Returns the index within this string of the first occurrence of the specified substring." So, if you wanted to find the position of the letter 'v' in the String 'Java' and print it out, you would do this: String str = "Java"; int i = str.indexOf("v"); System.out.println(i); If the character you passed in the indexOf method does not exist in the String, indexOf would return a -1 (negative one).


Explain GET and POST method briefly?

When a client sends a request to the server, the clients can also additional information with the URL to describe what exactly is required as output from the server by using the GET method. The additional sequence of characters that are appended to URL is called a query string. However, the length of the query string is limited to 240 characters. Moreover, the query string is visible on the browser and can therefore be a security risk.to overcome these disadvantages, the POST method can be used. The POST method sends the data as packets through a separate socket connection. The complete transaction is invisible because to the client. The disadvantageof POST method is that it is slower compared to the GET method because data is sent to the server asseparate packets