Ramu Prasad has Published 69 Articles

Can a Vector contain heterogeneous objects in Java?

Ramu Prasad

Ramu Prasad

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

988 Views

Since a vector stores elements in the form of objects, you can store objects of various types (heterogeneous) in it.Example:import java.util.*; class Demo{} public class VectorSample {    public static void main(String args[]) {       Demo obj = new Demo();       Vector v = new ... Read More

What does the method getLast() do in java?

Ramu Prasad

Ramu Prasad

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

126 Views

The getLast() method of the class java.util.LinkedList returns the last element in this list.Example:import java.util.*; public class LinkedListDemo {    public static void main(String[] args) {       LinkedList list = new LinkedList();       list.add("Hello");       list.add(2);       list.add("Chocolate");       list.add("10"); ... Read More

How to replace characters on String in Java?

Ramu Prasad

Ramu Prasad

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

326 Views

The replace method of the String class accepts two characters and it replaces all the occurrences of oldChar in this string with newChar.Example Live Demoimport java.io.*; public class Test {    public static void main(String args[]) {       String Str = new String("Welcome to Tutorialspoint.com");       System.out.print("Return ... Read More

Single level inheritance in Java

Ramu Prasad

Ramu Prasad

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

14K+ Views

Single Level inheritance - A class inherits properties from a single class. For example, Class B inherits Class A.Example Live Democlass Shape {    public void display() {       System.out.println("Inside display");    } } class Rectangle extends Shape {    public void area() {       System.out.println("Inside area"); ... Read More

Copying ALV layout from one client to another in SAP if they are not user specific

Ramu Prasad

Ramu Prasad

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

753 Views

You can transport your ALV layouts to other system if they are not user specific. This can be performed in Layout Administration by raising a customizing request.Navigate to this path for Layout Administration:Main Menu -> Settings -> Layout -> Administration

Downloading file using SAP .NET Connector

Ramu Prasad

Ramu Prasad

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

525 Views

It is not possible to retrieve files using BAPI from SAP system. There should be a way to copy the file to a shared location and you can read the file from there using .NET.

Interfacing database to external parties in SAP system

Ramu Prasad

Ramu Prasad

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

199 Views

Interacting directly with SAP databases is not considered a good programming practice. As SAP database is nothing but a normal database, it can interact in any way like any ODBC technique - ADO.NET or other.Remote Function Calls can be used to make calls to databases. ERP Connect supports RFC and ... Read More

List of Best JavaScript libraries?

Ramu Prasad

Ramu Prasad

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

270 Views

The following are some of the best JavaScript Libraries:jQueryjQuery is a fast and concise JavaScript Library created by John Resig in 2006 with a nice motto – “Write less, do more”. jQuery simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.MooToolsMooTools is an object-oriented, lightweight ... Read More

How to convert BLOB to Byte Array in java?

Ramu Prasad

Ramu Prasad

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

8K+ Views

You can contents of a blob into a byte array using the getBytes() method.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Arrays; public class BlobToByteArray { public static void main(String[] args) throws Exception { ... Read More

Previous 1 ... 3 4 5 6 7
Advertisements