George John has Published 1299 Articles

What is the scope of private access modifier in Java?

George John

George John

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

The scope of the private modifier lies with in the class. Members that are declared private cannot be accessed outside the class. Private access modifier is the most restrictive access level. Class and interfaces cannot be private. Variables that are declared private can be accessed outside the class, if public ... Read More

What does the modifier transient in Java do?

George John

George John

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

An instance variable is marked transient to point the JVM to skip the actual variable once serializing the thing containing it. This modifier is included in the statement that creates the variable, preceding the class or data type of the variable. Example public class Employee implements java.io.Serializable { ... Read More

Using “SPELL AMOUNT” function to convert amounts in ABAP

George John

George John

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

You can use the standard function module “SPELL AMOUNT”. It will convert amounts to corresponding words. To display function module, use Transaction code: SE37 Click on Search icon and select Function module: “SPELL AMOUNT”

How many ways a String object can be created in java?

George John

George John

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

You can create a String by − Step 1 − Assigning a string value wrapped in " " to a String type variable. String message = "Hello Welcome to Tutorialspoint"; Step 2 − Creating an object of the String class using the new keyword by passing the string ... Read More

How to find consonants in a given string using Java?

George John

George John

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

One way to find the vowels in a given String is to compare every character in it using the charAt() method with the vowel letters. Example Live Demo public class FindingConsonants { public static void main(String args[]) { String str = new String("Hi Welcome to Tutorialspoint"); for(int i=0; i

How to create a string from a Java ArrayList?

George John

George John

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

To convert the contents of an ArrayList to a String, create a StringBuffer object append the contents of the ArrayList to it, finally convert the StringBuffer object to String using the toString() method. Example import java.util.ArrayList; public class String_ArrayList { public static void main(String args[]) ... Read More

How to count the number of characters (including spaces) in a text file using Java?

George John

George John

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

To count the number of lines in a file Instantiate the FileInputStream class by passing an object of the required file as parameter to its constructor. Read the contents of the file to a byte array using the read() method of FileInputStream class. Instantiate a String class by passing ... Read More

Edit an ABAP Program using Transaction SE93, SE80

George John

George John

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

You need to go to SE93 and input your Transaction code. It will display program name behind your transaction code. You can edit the programs using SE80 and SE38.  Below shows Transaction code: SE93 Following shows Transaction Code SE80 to edit an ABAP program by opening ABAP Development workbench: ... Read More

Checking active process in SAP system and which code is running

George John

George John

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

There are a couple of Transactions- SM66 and SM50 that can be used for your requirement. The transaction SM66 is used to see all the active processes on the current system. You can choose a particular process you want to monitor by clicking on “process” and then click the “debugging” ... Read More

Advertisements