Manikanth Mani has Published 48 Articles

Methods of StringBuffer class in Java.

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

243 Views

Following are the various constructors provided by the StringBuffer class.S.N.Constructor & Description1StringBuffer()This constructs a string buffer with no characters in it and an initial capacity of 16 characters.2StringBuffer(CharSequence seq)This constructs a string buffer that contains the same characters as the specified CharSequence.3StringBuffer(int capacity)This constructs a string buffer with no characters ... Read More

How to convert int to String in java?

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

226 Views

You can convert a String value to an integer either using the valueOf() method of the String class or using the toString() method of the Integer class.

Constructors of StringBuilder class in Java.

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

219 Views

The StringBuilder class of the java.lang package is a mutable sequence of characters. This provides an API compatible with StringBuffer, but with no guarantee of synchronization. Following are the list of constructors provided by the StringBuilder class.S.N.Constructor & Description1StringBuilder()This constructs a string builder with no characters in it and an initial ... Read More

Identifiers in C++

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

5K+ Views

The C++ identifier is a name used to identify a variable, function, class, module, or any other user-defined item. An identifier starts with a letter A to Z or a to z or an underscore (_) followed by zero or more letters, underscores, and digits (0 to 9).C++ does not ... Read More

Java String contains() method example.

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

76 Views

The contains() method of the String class returns true if and only if this string contains the specified sequence of char values.Example Live Demoimport java.lang.*; public class StringDemo {    public static void main(String[] args) {       String str1 = "tutorials point", str2 = "http://";       CharSequence cs1 ... Read More

How to set Java Path in Linux OS?

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

331 Views

Environment variable PATH should be set to point to where the Java binaries have been installed. Refer to your shell documentation if you have trouble doing this.Example, if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export PATH=/path/to/java:$PATH' Read More

How to set JAVA_HOME for Java in Mac OS?

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:21

522 Views

Assuming you have installed Java in \usr\local\java\jdk directory −if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

While using SAPJco 3.0.11 with Maven, I can’t rename original archive sapjco3.jar

Manikanth Mani

Manikanth Mani

Updated on 30-Jul-2019 22:30:20

276 Views

If you need a standalone application, you can use maven-assembly-plugin that can handle JAR with renaming in resulting artifacts.Also, this problem is with 3.0.11 and older versions like 3.0.6 don’t have the same problem.You can also refer this SAP blog for more details:https://blogs.sap.com/2013/04/05/using-jco-without-nwds/

Advertisements