Anvi Jain has Published 569 Articles

How can I develop for iPhone using a Windows development machine?

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:41:25

116 Views

Generally iOS applications can be developed on mac operating systems only, but recently with system development now applications for iOS can partially be developed on windows system too.To develop iOS or any other apps for apple platform, we need Xcode which is a native Apple software and can be installed ... Read More

Set up a simple delegate to communicate between two view controllers in iPhone

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:35:40

723 Views

In this article, you learn about delegates and creating delegates. First of all, What’s a delegate?Delegate is a simple term that refers to communication between objects. It is a simple way of connecting objects and communication between them.How does delegate work?A delegate is created with help of protocol. A protocol ... Read More

Remove characters in a range from a Java StringBuffer Object

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 13:20:44

2K+ Views

In order to remove characters in a specific range from a Java StringBuffer Object, we use the delete() method. The delete() method removes characters in a range from the sequence. The delete() method has two parameters , start and end. Characters are removed from start to end-1 index.Declaration − The ... Read More

CSS Chroma Filter

Anvi Jain

Anvi Jain

Updated on 27-Jun-2020 12:26:18

3K+ Views

Chroma Filter is used to making any particular color transparent and usually, it is used with images. You can use it with scrollbars also.ExampleImplementing the CSS Chroma Filter −Live Demo                         Text Example:       CSS Tutorials    

Reverse the sequence of characters in a StringBuffer Object in Java

Anvi Jain

Anvi Jain

Updated on 26-Jun-2020 14:57:30

210 Views

In order to reverse the sequence of characters in a StringBuffer Object, we use the reverse() method. The reverse() method replaces the character sequence with the reverse of its own.Declaration − The java.lang.StringBuffer.reverse method is declared as follows−public StringBuffer reverse()Let us see a program to reverse the sequence of characters ... Read More

Convert String to UTF-8 bytes in Java

Anvi Jain

Anvi Jain

Updated on 26-Jun-2020 13:45:42

25K+ Views

Before converting a String to UTF-8-bytes, let us have a look at UTF-8.UTF-8 is a variable width character encoding. UTF-8 has ability to be as condense as ASCII but can also contain any unicode characters with some increase in the size of the file. UTF stands for Unicode Transformation Format. ... Read More

Get the absolute value of float, int, double and long in Java

Anvi Jain

Anvi Jain

Updated on 26-Jun-2020 13:25:43

1K+ Views

The java.lang.Math class has an abs() method which facilitates us to find the absolute values of different data types.Absolute value of floatIn order to compute the absolute value of a float value, we use the java.lang.Math.abs(float a) method. If the argument ‘a’ is negative, the negation of ‘a’ is returned. ... Read More

Enable Assertions from the command line in Java

Anvi Jain

Anvi Jain

Updated on 26-Jun-2020 06:46:07

495 Views

By default, assertions are disabled in Java. In order to enable them we use the following command −java -ea Example (or) java -enableassertions ExampleHere, Example is the name of the Java file.Let us see an example for generation of an assertion error by the JVM −Example Live Demopublic class Example { ... Read More

Validate the ZIP code with Java Regular expressions

Anvi Jain

Anvi Jain

Updated on 25-Jun-2020 15:04:40

474 Views

In order to match the ZIP code using regular expression, we use the matches method in Java. The java.lang.String.matches() method returns a boolean value which depends on the matching of the String with the regular expression.Declaration − The java.lang.String.matches() method is declared as follows −public boolean matches(String regex)Let us see ... Read More

Java Program to fill elements in a short array

Anvi Jain

Anvi Jain

Updated on 25-Jun-2020 14:57:59

201 Views

Elements can be filled in a short array using the java.util.Arrays.fill() method. This method assigns the required short value to the short array in Java. The two parameters required are the array name and the value that is to be stored in the array elements.A program that demonstrates this is ... Read More

Previous 1 ... 4 5 6 7 8 ... 57 Next
Advertisements