Code: Public Class Form1 Dim str1, str2, temp As String Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVa...
Read More
20 Program to check entered number on textbox in prime or not using button in VB.NET
Code: Public Class Form1 Dim num, temp, i As Integer Dim b As Boolean Private Sub TextBox1_TextChanged(ByVal sender As ...
Read More
19 Program to Print 1-20 Fibonacci Series on Click Button in VB.NET
Code: Public Class Form1 Dim f1, f2, f3, num As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As ...
Read More
37 Program to implement various function of String Class in Java
Code: class A { public static void main( String args[] ) { String str = new String(" Government "); String str1 = n...
Read More
36 Program to demonstrate use of this keyword in Java
Code: class Abc { int a,b; Abc( int a, int b ) { this.a=a; this.b=b; } } class Main { public static void main( St...
Read More
35 Program on For Each Loop in Java
Code: class ForEach { public static void main( String args[] ) { int a[]={1,1,2,3,4,5,5}; for(int i: a ) { System....
Read More
34 Ways to call Static data in Java
Code: class Demo { static int a = 222; } public class Static { public static void main( String args[] ) { //System.out.pri...
Read More
33 Program on static variable and method in Java
Code: import java.util.Scanner; class Static { public static void main( String args[] ) { Static.add(); } static int...
Read More
32 Switch case statement in Java
Syntax: switch( expression ) { case value1 : statements break; default : statement; } Pr...
Read More
31 If Else If ladder in Java
Syntax: if( condition) { statements; } else if( condition ) { statements; } else if( condition ) { stateme...
Read More
30 Nested If else in Java
Synatax: if( conditon ) { Statements; if( condition ){ } else { } } el...
Read More
29 If else statement in Java
Syntax: if( condion ){ Statements; } else{ Statements; ...
Read More
27 If statement in Java
Syntax: if(condition) statement; In this program we compare two numbers and find largest ones/greatest ones/max ones. 3IF...
Read More
26 Program to print value of a variable
In this program we will create a variable and assign it value. 2Variable.java class Variable{ public static void main(String args[]...
Read More
25 A First Simple Program in Java
1First.java /* This is a simple Java Program Call this file "1First.java" */ class First{ // Your program begins with ...
Read More
Subscribe to:
Posts (Atom)