Array basics in java

Array:- An array is a collection of similar data elements stored at contiguous memory locations. It is the simplest data structure where each data element can be accessed directly by only using its index number. Reference:–(https://www.mygreatlearning.com/blog/what-is-an-array-learn-more-in-one-read/) Sample Program:- Print the number where the state placed Output Screenshot:- Program2:- Print the values in the array bracesContinue reading “Array basics in java”

Pattern program in for loop

Pattern 1:- 1 1 1 1 12 2 2 23 3 34 45 Program:- Output Screenshot:- Pattern 2:- 543215432543545 Program:- Output Screenshot:- Pattern 3:- Program:- Pattern 4:- 555554444333221 Program:- Output Screenshot:- Pattern 5:- 4 4 4 43 3 32 21 Program:- Output Screenshot:- Pattern 6:- 1 2 3 45 6 78 910 Program:- Output Screenshot:-Continue reading “Pattern program in for loop”

Html Tags

<ol>- Ordered list:- An ordered list typically is a numbered list of items. HTML gives you the ability to control the sequence number – to continue where the previous list left off, or to start at a particular number. (ex):- <ol>  <li>Eat</li>  <li>Code</li>  <li>Sleep</li></ol> <ul>- Unordered list:- An unordered list typically is a bulleted listContinue reading “Html Tags”

HTML tags for Beginners

TAGS:- <em> The <em> tag is used to define emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in <em> with an emphasis, using verbal stress. <em>Welcome</em> (ex):- Welcome <p> The <p> tag defines a paragraph. Browsers automatically add a single blank line before and after eachContinue reading “HTML tags for Beginners”

My Interview Questions About java

What is java?:- Java is a widely used object-oriented programming language and software platform that runs on billions of devices, including notebook computers, mobile devices, gaming consoles, medical devices and many others. The rules and syntax of Java are based on the C and C++ languages.When the language was invented in 1991 by James GoslingContinue reading “My Interview Questions About java”

Swap two numbers without have a temporary variable

Swapping two number programming language means exchanging the values of two variables. Suppose you have two variable var1 & var2. Value of var1 is 20 & value of var2 is 40. So, after swapping the value of var1 will become 40 & value of var 2 will become 20. Program:- Output Screenshot:-

Create your own website, free on WordPress.com.Create your own website.
Start free