Akshaya Akki has Published 53 Articles

Java String comparison, differences between ==, equals, matches, compareTo().

Akshaya Akki

Akshaya Akki

Updated on 26-Feb-2020 06:28:55

491 Views

The equals() method compares this string to the specified object. The result is true if and only if the argument is not null and is a String object that represents the same sequence of characters as this object.Examplepublic class Sample{    public static void main(String []args){       String s1 ... Read More

Java program for String Concatenation.

Akshaya Akki

Akshaya Akki

Updated on 26-Feb-2020 05:56:38

90 Views

The concat() method of the String class concatenates the specified string to the end of this string.Exampleimport java.lang.*; public class StringDemo {    public static void main(String[] args) {       // print str1       String str1 = "self";       System.out.println(str1);           ... Read More

Java Program to reverse a given String with preserving the position of space.

Akshaya Akki

Akshaya Akki

Updated on 26-Feb-2020 05:09:40

3K+ Views

You can reverse the contents of a given String using leaving the spaces using the reverse() method of the StringBuffer class.Examplepublic class Test {    public static void main(String args[]) {       String str = "hi welcome to Tutorialspoint";       String strArray[] = str.split(" ");   ... Read More

Function pointers in Java

Akshaya Akki

Akshaya Akki

Updated on 24-Feb-2020 12:48:19

1K+ Views

From Java 8 onwards, the lambda expression is introduced which acts as function pointers.Lambda expressions are introduced in Java 8 and are touted to be the biggest feature of Java 8. Lambda expression facilitates functional programming and simplifies the development a lot.SyntaxA lambda expression is characterized by the following syntax.parameter ... Read More

Creating a Radio button group in ABAP Screen Painter

Akshaya Akki

Akshaya Akki

Updated on 13-Feb-2020 10:55:29

3K+ Views

Screen Painter is known as an ABAP editor tool that can be used to create a screen. Screen Painter is used to create and manage all the elements in a screen.Transaction Code SE51There are various ways you can insert a Radio button to ABAP Screen Painter. First is by clicking ... Read More

What is the difference between cin and cout streams in c++?

Akshaya Akki

Akshaya Akki

Updated on 11-Feb-2020 05:03:02

14K+ Views

cin is an object of the input stream and is used to take input from input streams like files, console, etc. cout is an object of the output stream that is used to show output. Basically, cin is an input statement while cout is an output statement.They also use different ... Read More

Getting Started with C++ in Visual Studio

Akshaya Akki

Akshaya Akki

Updated on 10-Feb-2020 12:29:46

2K+ Views

This guide will help you become familiar with many of the tools and dialog boxes that you can use when you develop applications in C++ with Visual Studio. We'll create a "Hello, World" - style console application to help you learn more about working in this IDE.PrerequisitesTo follow along, you ... Read More

How to repeat the values stored in a data column of MySQL table?

Akshaya Akki

Akshaya Akki

Updated on 07-Feb-2020 10:08:05

118 Views

For repeating the values stored in a data column of MySQL table, the name of the column must be passed as the first argument of REPEAT() function. The data from ‘Student’ table is used to demonstrate it:Examplemysql> Select REPEAT(Name, 3)AS Name from student; +-----------------------+ | Name         ... Read More

How can we use the output of LTRIM() and RTRIM() functions to update MySQL table?

Akshaya Akki

Akshaya Akki

Updated on 06-Feb-2020 06:52:34

281 Views

We can use LTRIM() and RTRIM functions with MySQL update clause so that the values, after removing space characters, in the table can be updated. Following examples will demonstrate it −ExampleSuppose we know that there can be some space characters in the values of ‘Name’ column of table ‘Student’ then ... Read More

Match any string containing a sequence of two to three p's.

Akshaya Akki

Akshaya Akki

Updated on 20-Jan-2020 10:11:41

55 Views

To match any string containing a sequence of two to three p’s with JavaScript RegExp, use the p{2,3} Quantifier.Example           JavaScript Regular Expression                        var myStr = "Welcome 1, 10, 100, 1000, 1000";          var reg = /\d{2,3}/g;          var match = myStr.match(reg);                    document.write(match);          

Advertisements