Study Viral (Java Tutorials For Beginners - Step By Step)
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook Page
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET

Java Swing Tutorials (GUI) - Navigate Data or Record on Button Click Using ArrayList and ListIterator in Java Swing - Study Viral

 January 31, 2018     Java Swing     No comments   

Java Swing Tutorials (GUI) - Navigate Data or Record on Button Click Using ArrayList and ListIterator in Java Swing - Study Viral






This video helps you to teach simple application to navigate data which is stored in ArrayList object and Navigate it on Button clicks with the help of ListIterator.
(Create Navigation Button In Java To Navigate Records using Collection)

Email :: info@studyviral.in

 Or

Email :: studyviral.in@gmail.com 

Website:: www.StudyViraL.in 

Facebook Page :: https://www.facebook.com/by.StudyViral.in/

http://studyviral.blogspot.in/
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - Write a java program how to take input from a user.

 January 21, 2018     Java Programs     No comments   

Java Program - Write a java program how to take input from a user.

    //Java Program - 06 - Write a java program how to take input from a user.
    import java.util.Scanner;
    public class StudyViral_06 {
 public static void main(String[] args) {
       int var1;
       float var2;
       String var3;
       
       Scanner sc = new Scanner(System.in);
  
       System.out.println("Enter an integer value :: ");
       var1 = sc.nextInt();
       System.out.println("Entered integer value :: "+var1);
  
       System.out.println("Enter a float value :: ");
       var2 = sc.nextFloat();
       System.out.println("Entered float value :: "+var2);   
       sc.nextLine();//This statement is required to
             //read empty Enter key stroke after float value
       System.out.println("Enter a string :: ");
       var3 = sc.nextLine();
       System.out.println("Entered string :: "+var3);
 }
    }
 
 
Output ::
Enter an integer value ::
100
Entered integer value :: 100
Enter a float value ::
2.0
Entered float value :: 2.0
Enter a string ::
Study Viral
Entered string :: Study Viral
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - 05 - Write a Java program to swap two numbers using third variables.

 January 21, 2018     Java Programs     No comments   

Java Program - 05 - Write a Java program to swap two numbers using third variables.


 
 
//Java Program - 05 - Write a Java program to swap two numbers using third variables.
//Using Scanner Class
import java.util.Scanner;
public class StudyViral_05 {
   public static void main(String args[])
   {
      int x, y, temp;
      
      Scanner in = new Scanner(System.in);
      System.out.println("Enter x :: ");
      x = in.nextInt();
      System.out.println("Enter y :: ");
      y = in.nextInt();
      System.out.println("Before Swapping....");
      System.out.println("x = "+x+"\ny = "+y);
 
      temp = x;
      x = y;
      y = temp;
      System.out.println("After Swapping....");
      System.out.println("x = "+x+"\ny = "+y);
   }
}
 

Output :: 
Enter x ::
500
Enter y ::
100
Before Swapping....
x = 500
y = 100
After Swapping....
x = 100
y = 500 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - 04 - Write a Java program to swap two numbers without using temporary variable.

 January 21, 2018     Java Programs     No comments   

Java Program - 04 - Write a Java program to swap two numbers without using temporary variable.




 //Write a Java program to swap two numbers without using temporary variable. 
 
public class StudyViral_04 {
 public static void main(String[] args) {
 
  int x = 100;
        int y = 200;
        System.out.println("Output :: ");
        System.out.println("Before swap:");
        System.out.println("value of x :: "+x);
        System.out.println("value of y :: "+y);
 
        x = x+y;  // here x = 100+200 = 300
        y=x-y;    // here y = 300-200 = 100
        x=x-y;    // here x = 300-100 = 200 
 
        System.out.println("After swap:");
        System.out.println("value of x :: "+x);
        System.out.println("value of y :: "+y);
 }
   } 
 
 
Output :: 
Before swap:
value of x :: 100
value of y :: 200
After swap:
value of x :: 200
value of y :: 100
 
 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - 03 - Type Casting

 January 21, 2018     Java Programs     No comments   

Java Program - 03

Write a java program to show the concept of type conversion.

 

 

public class StudyViral_03 {

 public static void main(String[] args) {

  int a = 127;
  a = a + 1;
  System.out.println("New Value of A = "+a);
  
  byte b = 127;
  b = b + 1;//Error explicit required
  System.out.println("New Value of B = "+b);
  
  int c = 100;
  c = c + 1.0;//Error explicit required
  
  System.out.println("New Value of C :: "+c);
  
  double d = c + 1.0;
  System.out.println("New Value of D :: "+d);
 }
}
============================================================== 
//Correct Program 
 
public class StudyViral_03 {

 public static void main(String[] args) {

  int a = 127;
  a = a + 1;
  System.out.println("New Value of A = "+a);
  
  byte b = 127;
  b = (byte) (b + 1);//Explicit casting (Forcefully Convert int to byte) 
                     //because 1 is int and variable b is of type byte
  System.out.println("New Value of B = "+b);
  
  int c = 100;
  c = (int) (c + 1.0);//Explicit casting (Forcefully Convert 1.0 double to int)
                      //1.0 is double and variable c is of type int
  
  System.out.println("New Value of C :: "+c);
  
  double d = c + 1.0;//Implicit Type Casting done 
                     //Convert from lower to higher Data Type
  System.out.println("New Value of D :: "+d);
 }
}

 Output ::

New Value of A = 128
New Value of B = -128
New Value of C :: 101
New Value of D :: 102.0

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - 02 - Data Types in Java

 January 21, 2018     Java Programs     No comments   

Java Program - 02

Write a Java program to show the concept or use of Data Type.



//Java Program to show the use of simple/premitive data types.

class StudyViral_02{

    public static void main(String []args){
        byte byteCar = 100;
        short shortVar = 123;
        int intVar = 123456;
        int calcVar = -98765432;
        long longVar = 1234567891L;
        float floatVar = 12.356F;
        double doubleVar =  123456.6666d;
        boolean flag = true;
        boolean val = false;
        char ch1 = 89;
        char ch2 = 'Z';

        System.out.println("byte value = "+byteCar);
        System.out.println("short Value = "+shortVar);
        System.out.println("int Value = "+intVar);
        System.out.println("long Value = "+longVar);
        System.out.println("float Value = "+floatVar);
        System.out.println("double Value = "+doubleVar);
        System.out.println("boolean Value = "+flag);
        System.out.println("boolean Value ="+val);
        System.out.println("char ch1 = "+ch1);
        System.out.println("char ch2 = "+ch2);

    }

}




Output:: 

byte value = 100
short Value = 123
int Value = 123456
long Value = 1234567891
float Value = 12.356
double Value = 123456.6666
boolean Value = true
boolean Value =false
char ch1 = Y
char ch2 = Z

 

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Program - 01- Hello World

 January 21, 2018     Java Programs     No comments   

Java Program - 01

Write a Java program to print Hello World

public class StudyViral_1 {

 public static void main(String[] args) {
  
  System.out.println("Hello World");
  
 }

}


Output:: Hello World
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Tutorial - 30 - Method OverLoading in Java - StudyViral

 January 21, 2018     Java Tutorials     No comments   

Java Tutorial - 30 - Method OverLoading in Java - StudyViral




 Methods Overloading in Java
This java tutorial video teaches you the concept and techniques of Method Overloading in java with the help of simple java program.

www.studyviral.in

Email :: info@studyviral.in

 Or

Email :: studyviral.in@gmail.com

Website:: www.StudyViraL.in

 For Suggestions You Can Email :: info@studyviral.in

 http://studyviral.blogspot.in/



Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Swing with MS Access 05 - Select and Update Data From JTable - Study Viral

 January 21, 2018     MS Access JDBC Java Application     No comments   

Java Swing with MS Access 05 - Select and Update Data From JTable - Study Viral





 Java Swing with MS Access Tutorial 05

This video teaches you how to Connect Netbeans IDE to Microsoft Access database for java swing application using Ucanaccess.
This is Fifth video in which you can learn how to select data from JTable and populate other field on mouse click and update the data of selected row from JTable to Database on button click.

Email :: info@studyviral.in
Email :: studyviral.in@gmail.com

Website :: www.studyviral.in
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Swing with MS Access 04 - Load Data to JTable From MS Access - Study Viral

 January 21, 2018     MS Access JDBC Java Application     No comments   


Java Swing with MS Access 04 - Load Data to JTable From MS Access - Study Viral


 




This video teaches you how to Connect Netbeans IDE to Microsoft Access database for java swing application using Ucanaccess.
This is Forth video in which you can see how to populate/load JTable to MS-Access database.

Email :: info@studyviral.in
Email :: studyviral.in@gmail.com

Website :: www.studyviral.in
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Swing Save Data To MS Access using Ucanaccess - 03 - Study Viral

 January 19, 2018     MS Access JDBC Java Application     No comments   


Java Swing Save Data To MS Access using Ucanaccess - 03 - Study Viral

 



This video teaches you how to Connect Netbeans IDE to Microsoft Access database for java swing application using ucanaccess.
This is third video in which you can learn how to store data in database.

Email :: info@studyviral.in
Email :: studyviral.in@gmail.com

Website :: www.studyviral.in
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Swing Login with MS Access using Ucanaccess - 02 - Study Viral

 January 19, 2018     MS Access JDBC Java Application     No comments   

Java Swing Login with MS Access using Ucanaccess - 02 - Study Viral




This video teaches you how to Connect Netbeans IDE to Microsoft Access database for java swing application by using Ucanaccess. This is Second video where you learn how to login from retrieve user information from database file.

Email :: info@studyviral.in
Email :: studyviral.in@gmail.com

Website :: www.studyviral.in
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Swing with MS Access Connectivity using Ucanaccess - 01 - Study Viral

 January 19, 2018     MS Access JDBC Java Application     No comments   

Java Swing with MS Access Connectivity Using Ucanaccess - 01 - Study Viral



This video teaches you how to Connect Netbeans IDE to Microsoft Access database for java swing application. This is first video in which you learn to make user define connection class, MS Access file and how to load Ucanaccess library files.

email :: info@studyviral.in
email :: studyviral.in@gmail.com

website :: www.studyviral.in
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Facebook

StudyViral

Labels

Alphabet Pattern Binary Tree BLOB (Binary Large Object) Computer Networks Computer Science And Applications Paper-II Data Structure DBMS Digital Clock Digital Watch Extra Tutorials File Upload Find Age from Date of Birth Graph-Algorithms Java and J2EE web applications JAVA JDK 12 Java Mail API Java MySQL Java Programs Java Programs List Java Servlets Java Swing Java Swing With MySQL Database Java Tutorials JCalender KVS Compuer Science - January 2017 Question Paper MS Access JDBC Java Application Multiuser Login NETBEANS 11 IDE Occurrence of Digits in Number Operation System Pattern Program Reverse of String Sending Email Servlet Servlet Tutorial Software Engineering Star Struts 2 FrameWork Struts 2 Registration Form UGC NET JULY 2018 Windows Commands

Popular Posts

  • Create CON, AUX, NUL name folder and files in Windows - Study Viral
    Create CON, AUX, NUL name folder and files in Windows - Study Viral Most of you may be aware of many MS-DOS commands but still n...
  • UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26)
    UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26) Q 26. A binary search tree in which every non-leaf node...
  • Java Swing Application for Sending E-Mail - StudyViral
    Java Swing Application for Sending E-Mail - StudyViral Hello Friends Welcome to StudyViraL Channel In this video I am going...

Categories

  • Alphabet Pattern (13)
  • Binary Tree (2)
  • BLOB (Binary Large Object) (1)
  • Computer Networks (2)
  • Computer Science And Applications Paper-II (40)
  • Data Structure (6)
  • DBMS (1)
  • Digital Clock (1)
  • Digital Watch (1)
  • Extra Tutorials (3)
  • File Upload (1)
  • Find Age from Date of Birth (1)
  • Graph-Algorithms (1)
  • Java and J2EE web applications (3)
  • JAVA JDK 12 (1)
  • Java Mail API (3)
  • Java MySQL (5)
  • Java Programs (44)
  • Java Programs List (3)
  • Java Servlets (3)
  • Java Swing (16)
  • Java Swing With MySQL Database (4)
  • Java Tutorials (37)
  • JCalender (1)
  • KVS Compuer Science - January 2017 Question Paper (6)
  • MS Access JDBC Java Application (6)
  • Multiuser Login (1)
  • NETBEANS 11 IDE (1)
  • Occurrence of Digits in Number (1)
  • Operation System (4)
  • Pattern Program (8)
  • Reverse of String (2)
  • Sending Email (1)
  • Servlet (3)
  • Servlet Tutorial (3)
  • Software Engineering (4)
  • Star (7)
  • Struts 2 FrameWork (2)
  • Struts 2 Registration Form (1)
  • UGC NET JULY 2018 (40)
  • Windows Commands (2)

Pages

  • Java Tutorials
  • ASP.NET (in Hindi)
  • Java Programs List

Blog Archive

  • ►  2021 (3)
    • ►  April 2021 (3)
  • ►  2019 (7)
    • ►  June 2019 (1)
    • ►  May 2019 (2)
    • ►  March 2019 (4)
  • ▼  2018 (111)
    • ►  November 2018 (7)
    • ►  October 2018 (20)
    • ►  September 2018 (10)
    • ►  August 2018 (3)
    • ►  July 2018 (19)
    • ►  June 2018 (5)
    • ►  May 2018 (2)
    • ►  April 2018 (3)
    • ►  March 2018 (11)
    • ►  February 2018 (18)
    • ▼  January 2018 (13)
      • Java Swing Tutorials (GUI) - Navigate Data or Reco...
      • Java Program - Write a java program how to take in...
      • Java Program - 05 - Write a Java program to swap t...
      • Java Program - 04 - Write a Java program to swap t...
      • Java Program - 03 - Type Casting
      • Java Program - 02 - Data Types in Java
      • Java Program - 01- Hello World
      • Java Tutorial - 30 - Method OverLoading in Java - ...
      • Java Swing with MS Access 05 - Select and Update D...
      • Java Swing with MS Access 04 - Load Data to JTable...
      • Java Swing Save Data To MS Access using Ucanaccess...
      • Java Swing Login with MS Access using Ucanaccess -...
      • Java Swing with MS Access Connectivity using Ucana...
  • ►  2017 (36)
    • ►  December 2017 (10)
    • ►  November 2017 (9)
    • ►  October 2017 (7)
    • ►  September 2017 (10)

About Me

Rohit Basra
Hello guys my name Rohit Basra. I love to code and teach java language.
View my complete profile

Followers

Copyright © Study Viral (Java Tutorials For Beginners - Step By Step) | Powered by Blogger