Any programming language including Java uses variables to store data. When it comes to Java, being an object oriented programming language it has separate class for each data type. One such class is “String” it comes with set of methods by default. String manipulation in Java is more easy with the set of methods it…
Many a times when working with Oracle EBS forms, automation test engineer wants to bring forms to base state and continue with next steps, this can be achieved very easily using OATS. There is an api given as part of forms object, which is getAllOpenWindows(), this method in forms returns List of AbstractWindows, you can…
Program: Write a program to print all the words starting with an alphabet “a” and also print the location at which the word is present in the list. In this program of Python you would be introduced to usage of lists and iterating through them, lists are one of the important topics in python and…
This program to print first n even numbers can be written in many ways, but as part of this article you will be introduced to a new concept in python, especially with a “for” loop. Value of variable increments or decrements automatically by step which can be given as part of the range function. You…
This program to print the first n number, introduces you to the usage of looping structures in python. One of the important thing to remember in python is, it does not have any “{” for marking the code blocks like in any other programming languages. In python it is handled completely differently, set of statements are…
In this program you will be making use of methods and creating an object of a class and calling the method. So you will see one method by name “isPrime” which takes an integer as an input and returns a boolean value, the returned boolean value evaluates to true if the given input number is…
This program you will learn how to use both conditional and looping constructs in a nested format, that is a conditional statement would be present inside a for loop. As mentioned in other articles, there would be several ways to write logic for any problem / program, here I am showing some of the simple…
This program helps to introduce the usage of looping structures in java, the following program will print the first n numbers from the number system, you can change the value of n by editing the value that is assigned to the variable “n”, ideally this parameter could be passed from outside and make the program…
The very first program which any person would attempt when learning a programming language is to print “Hello World!”, today in this article you would learn how to print “Hello World!” in a simple Python Program. # Writing the first program in Python print "Hello World!"; Create a file and save above content with a…
The very first program which any person would attempt when learning a programming language is to print “Hello World!”, today in this article you would learn how to print “Hello World!” in a simple Java Program. // Importing default package import java.lang.*; //code for writing a class. public class HelloWorld { public static void main(String…