Java Programming Debugging Code - Assignment

Java Programming Debugging Code - Assignment
College of Technology - Jaffna

Program 01:

public class Average {
  public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    sum = num1 + num2 + num3
      avg = sum/3;
    System.out.println("Average: " + avg );
  }
}
Program 02:
public class AddingTwoNumber
{
  public Static void main(String[] args)
  {
  int a,b,c;
  a=10;
  b=20;
  c=a+b;
    system.out.PrintLn(c);
  }
}

Program 03:
public class SwapElementsExample {
 
 public static void main(string[] args) {
 
 int num1 = 10;
 int num2 = 20;
 System.out.println("Before Swapping");
 System.out.println("Value of num1 is :" + num1);
 System.out.println("Value of num2 is :" +num2);
 int temp = num1;
 num1 = temp;
 num2 = num1;
 
 System.out.println("After Swapping");
 System.out.printLn("Value of num1 is :" + temp);
 System.out.println("Value of num2 is :" +num2);
 
 }
}

Program 04:
public Class Main {
  public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(firstName + " " + lastName);
  }
}

Program 05:
public class Main {
  public static Void main(String[] args) {
    Int time = 25;
    if (time < 15) {
      System.out.println("Hello.")
    } Else {
      System.out.println("Welcome.");
    }  
  }
}
Debugging Code - Assignment




Post a Comment

94 Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. S.Thayuran pro-01

    public class debuy1 {

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
    // TODO code application logic herepublic class Average {

    double num1 = 10 ;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum ;
    sum = num1 + num2 + num3 ;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  3. S.Thayuran pro-02

    public class debuy2 {



    public static void main(String[] args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  4. 02.
    public class MyClass {
    public static void main(String args[]) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  5. S.Thayuran pro-03

    public class debuy3 {


    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
    Replies
    1. System.out.println("Value of num1 is:="+num1); ithila ungaluggu equal podaaddium run aanatha

      Delete
  6. Pro-04
    public class Main {

    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    ReplyDelete
  7. 03.
    public class MyClass {
    public static void main(String args[]) {
    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" +temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
  8. 04.
    public class MyClass {
    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    String Fullname= FirstName + LastName;
    System.out.println("FirstName " + "LastName = "+Fullname);
    }
    }

    ReplyDelete
  9. public class Average {
    public static void main(String[] args)
    {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );

    ReplyDelete
  10. 05.
    public class MyClass {
    public static void main(String args[]) {
    int time = 25;
    if(time < 15)
    {
    System.out.println("Hello.");
    }
    else{
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  11. public class Average {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    sum = num1 + num2 + num3
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  12. S.thilaxsan
    Programe 1
    package main02;

    public class main02 {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double
    sum = num1+ num2+ num3;
    avg = sum/3;
    System.out.println("Average= " + avg );
    }
    }

    ReplyDelete
  13. Program 02
    public class AddingTwoNumber
    {
    public static void main(String args[])
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println("c");
    }
    }

    ReplyDelete
  14. Pro-05

    public class Main2
    {
    public static void main(String[] args)
    {
    int time = 25;
    if (time < 15){
    System.out.println("Hello.");
    } else {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  15. public class AddingTwoNumber
    {
    public static void main(String args[])
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println("c");
    }
    }

    ReplyDelete
  16. public class SwapElementsExample {

    public static void main(string[] args) {

    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.printLn("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
  17. public class Main {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  18. public class Main {

    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
  19. public class Main {
    public static void main(String[] args) {

    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println("firstName + lastName = " +(FirstName + LastName) );
    }
    }

    ReplyDelete
  20. // JAMES SUBAS DICT PT
    // Programe 01


    package Average;
    public class Average {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = 0;
    sum = num1 + num2 + num3;

    avg = sum/3;

    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  21. public class Main {
    public static void main(String[] args) {
    {
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello.");
    }
    else
    {
    System.out.println("Welcome.");
    }
    }
    }
    }

    ReplyDelete
  22. Dilaksika
    package dilaksi;

    public class dilaksika {

    public static void main(String[] args) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }


    package dilaksi;

    public class Dilaksika {

    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum;
    sum = num1+num2+num3;
    avg = sum/3;
    System.out.println("Average: " + avg);
    }
    }

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Program 01
    public class Average {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }
    Program 02
    public class AddingTwoNumber
    {
    public static void main(String[] args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }
    Program03
    public class SwapElementsExample {

    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }
    Program 04
    public class Main {
    public static void main(String args[]) {
    String firstName = "Ram";
    String lastName = "Kumar";
    System.out.println(firstName + " " + lastName);
    }
    }
    Program 05
    public class Main {
    public static void main(String[] args) {
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello.");
    }
    else
    {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  25. package thirusirclass;

    /**
    *
    * @author Vimal
    */
    public class AddingTwoNumber {
    public Static void main(String[] args);{
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println("The total of a+b = c");
    }
    }

    ReplyDelete
  26. public class myworld {
    public static void main(String args[]) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg =0.0;
    double sum ;
    sum = num1 + num2 + num3
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }
    }

    ReplyDelete
  27. Program 2
    package main02;

    public class main02 {
    public static void main(String[] args) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  28. // JAMES SUBAS DICT PT
    // Programe 02

    public class AddingTwoNumber
    {
    public static void main(String[] args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  29. public class Average {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg;
    double sum= num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  30. public class Main
    {
    public static void main(String[] args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  31. public class Average {
    public static void main(String[] args) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  32. Thakshikan

    package myjava;
    public class Add {
    public static void main (String [] args) {
    int a,b,c;
      a = 10;
      b = 20;
      c = a+b;
      System.out.println (c);
      }
    }

    ReplyDelete
  33. S.Thinosan
    Programe 05
    public static void main(String[] args) {
    int time = 25;
    if (time < 15) {
    System.out.println("Hello.");
    }
    else {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  34. S.Thinosan
    Program - 03
    public static void main(String[] args) {
    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);
    }

    }

    ReplyDelete
  35. S.Thinosan
    Programe - 02
    public static void main(String[] args) {
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }
    }

    ReplyDelete
  36. S.Thinosan
    Pro - 01
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  37. S.Thinosan
    Programe - 04
    public static void main(String[] args) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    ReplyDelete
  38. Jebinson
    Program 01
    public class Myworld{
    public static void main(String args[]){
    Average{
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double sum;
    sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average:" +avg);
    }
    }

    ReplyDelete
  39. K. Jebinson
    Program 02
    public class Myworld{
    public static void main(String[]args){
    {
    int a, b, c;
    a = 10;
    B = 20;
    C = a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  40. k.jebinson
    program 03
    public class Myworld {

    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;
    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);
    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    Result
    Before Swapping
    Value of num1 is :10
    Value of num2 is :20
    After Swapping
    Value of num1 is :10
    Value of num2 is :10

    ReplyDelete
  41. k.jebinson
    Program 04
    public class myname{
    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    Result
    Ram Kumar

    ReplyDelete
  42. k.jebinson
    program 05
    public class myname{
    public static void Main(String args[]);
    {
    int time = 25;
    if (time < 15){
    System.out.println("Hello.");
    } else {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  43. Mrs.Anoja Purusoththaman

    package Activity1;

    public class Java {

    public static void main(String[] args) {
    double num1=10;
    double num2=15;
    double num3=20;
    double avg;
    double sum=num1+num2+num3;
    avg=sum/3;
    System.out.println("Average:" +avg);
    }
    }

    ReplyDelete
  44. package Activity1;

    public class Java2 {

    public static void main(String[] args) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);

    }

    }

    ReplyDelete
  45. package Activity1;

    public class Java3 {

    public static void main(String[] args) {
    int num1=10;
    int num2=20;
    System.out.println("Before Swapping");
    System.out.println("Value of num1:"+ (num1));
    System.out.println("Value of num2:"+ (num2));

    }

    }

    ReplyDelete
  46. package Activity1;

    public class Java4 {

    public static void main(String[] args) {
    String FirstName="Ram";
    String LastName="Kumar";
    System.out.println(FirstName+" "+LastName);
    }

    }

    ReplyDelete
  47. package Activity1;

    public class Java5 {

    public static void main(String[] args) {
    int time=25;
    if(time<15) {
    System.out.println("Hello.");
    }
    else {
    System.out.println("Welcome");
    }
    }

    }

    ReplyDelete
  48. This comment has been removed by the author.

    ReplyDelete
  49. K.Piratheepa
    public class AddingTwoNumber
    {
    public static void main( String []args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println (c);

    ReplyDelete
  50. K.Piratheepa
    public class Myworld {
    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;
    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :=" + num1);
    System.out.println("Value of num2 is :=" +num2);
    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :=" + temp);
    System.out.println("Value of num2 is :=" +num2);

    }
    }


    ReplyDelete
  51. K.Piratheepa
    public class Myname{
    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }


    ReplyDelete
  52. K.Piratheepa
    public class Myname{
    public static void Main(String args[]);
    {
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello");
    }
    else
    {
    System.out.println("Welcome");
    }
    }
    }

    ReplyDelete
  53. G.Preyatharsan. P01
    package com.tamilbaba;

    public class Main {

    public static void main(String[] args) {
    // write your code here
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum;
    sum = num1 + num2 + num3;
    avg = sum / 3;
    System.out.println("Average:" + avg);
    }
    }

    ReplyDelete
  54. G.Preyatharsan. p02
    package com.tamilbaba;

    public class Main {

    public static void main(String[] args) {
    // write your code here
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  55. G.Preyatharsan. p03
    package com.tamilbaba;

    public class Main {

    public static void main(String[] args) {
    // write your code here
    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" + num2);

    int temp=num1;
    num1=temp;
    num2=num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is:"+temp);
    System.out.println("Value of num2 is :" +num2);
    }
    }

    ReplyDelete
  56. G.Preyatharsan. p04
    package com.tamilbaba;

    public class Main {

    public static void main(String[] args) {
    // write your code here
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    ReplyDelete
  57. G.Preyatharsan. p05
    package com.tamilbaba;

    public class Main {

    public static void main(String[] args) {
    // write your code here
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello.");
    }
    else
    {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  58. K.Piratheepa
    Sir phone la copy panni paste panna mudiyala sir

    ReplyDelete
  59. Kayaththiry
    package MyJava;

    public final class MyJava {

    public static void main(String[] args) {


    Int time = 25;

    if (time < 15)
    {

    System.out.println("Hello.");
    }
    Else
    {

    System.out.println("Welcome.");

    }

    }

    ReplyDelete
    Replies
    1. public class Average {

      public static void main(String[] args) {

      double num1 = 10;
      double num2 = 15;
      double num3 = 20;
      double avg = 0.0;

      double sum = num1 + num2 + num3;

      avg = sum/3;

      System.out.println("Average =" + avg);

      }

      }

      Delete
    2. public class AddingTwoNumber{
      public static void main(String[] args) {

      int a,b,c;
      a=10;
      b=20;
      c=a+b;

      system.out.println(c);

      }
      }

      Delete
    3. import SwapElement.Swap;
      public class SwapElementsExample {

      public static void main(string[] args) {

      int num1 = 10;
      int num2 = 20;


      System.out.println("Before Swapping"); System.out.println("Value of num1 is:" +

      num1)

      System.out.println("Value of num2 is:"

      +num2);

      int temp = num1;
      num1 = temp;

      num2 = num1;



      System.out.println("After Swapping");

      System.out.println("Value of num1 is:"

      temp);



      System.out.println("Value of num2 is:"

      +num2);

      }

      }

      Delete
    4. This comment has been removed by the author.

      Delete
    5. public class Main {

      public static void main(String args[]) {

      String FirstName = "Ram";
      String LastName = "Kumar";
      String Fullname- FirstName+ LastName; System.out.println("FirstName"+"LastName= "+Fullname)
      }
      }

      Delete
  60. K.Piratheepa
    public class Average {
    public static void main (String [ ]args)
    {
    double num1=10;
    double num2=15;
    double num3=20;
    double avg=0.0;
    double
    num1.num2.num3;
    avg=sum/3;
    System.out.println ("Average:="+avg);
    }}

    ReplyDelete
  61. V.Vijayalukshiny
    Program 1
    public class Average {
    public static void main(String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  62. Vijayalukshiny.V
    Program 2
    public class AddingTwoNumber {
    public static void main(String[] args)
    {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }}

    ReplyDelete
  63. This comment has been removed by the author.

    ReplyDelete
  64. Vijayalukshiny.V
    Program 3
    public class Myworld {
    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;
    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);
    int temp = num1;
    num1 = temp;
    num2 = num1;
    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);
    }}

    ReplyDelete
  65. Vijayalukshiny.V
    Program 4
    public class Myname{
    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    ReplyDelete
  66. Progamme 01
    public class MyClass {
    public static void main(String args[]) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  67. K.Thenuga

    Programme 02
    public class MyClass {
    public static void main(String args[]) {
    int a,b,c;
    a=10;
    b=20;
    c=a+b;
    System.out.println(c);
    }
    }

    ReplyDelete
  68. K.Thenuga

    Programme 03
    public class MyClass {
    public static void main(String args[]) {
    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);
    }
    }

    ReplyDelete
  69. K.Thenuga

    Programme 04
    public class MyClass {
    public static void main(String args[]) {
    String FirstName = "Ram";
    String LastName = "Kumar";
    System.out.println(FirstName + " " + LastName);
    }
    }

    ReplyDelete
  70. K.Thenuga

    Programme 05
    public class MyClass {
    public static void main(String args[]) {
    int time = 25;
    if (time < 15) {
    System.out.println("Hello.");
    }
    else {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  71. K.Thenuga

    Progamme 01
    public class MyClass {
    public static void main(String args[]) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum = num1 + num2 + num3;
    avg = sum/3;
    System.out.println("Average: " + avg );
    }
    }

    ReplyDelete
  72. This comment has been removed by the author.

    ReplyDelete
  73. // JAMES SUBAS DICT PT
    // Programe 04

    public class Name {
    public static void main(String args[]) {

    String FirstName = "Ram";
    String LastName = "Kumar";

    System.out.println(FirstName + " "+" "+ LastName);
    }
    }

    ReplyDelete
  74. // JAMES SUBAS DICT PT
    // Programe 05

    public class Hello {

    public static void main(String[] args) {

    int time = 25;

    if (time < 35) {

    System.out.println("Hello.");
    }

    else

    {
    System.out.println("Welcome.");
    }}}

    ReplyDelete
  75. // JAMES SUBAS DICT PT
    // Programe 03

    public class SwapElementsExample {

    public static void main(String[] args) {

    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
  76. Thakshikan

    01

    package myjava ;
    public class Average {
    public static void main (String[] args) {
    double num1 = 10;
    double num2 = 15;
    double num3 = 20;
    double avg = 0.0;
    double sum =num1+num2+num3;
    avg = sum / 3;
    System.out.println ("Average=" +avg);
    }
    }

    ReplyDelete
    Replies
    1. Thakshikan
      03

      package myjava;
      public class Swapelements {
      public static void main(String [] args) {
      int num1 = 10;
      int num2 = 20;
      System.out.println("Before Swapping");
      System.out.println("Value of num1 is :" + num1);
      System.out.println("Value of num2 is :" +num2);
      int temp = num1;
      num1 = temp;
      num2 = num1;

      System.out.println("After Swapping");
      System.out.println("Value of num1 is :" + temp);
      System.out.println("Value of num2 is :" +num2);

      }
      }

      Delete
    2. Thakshikan
      04

      package myjava;

      public class Firstname {
      public static void main (String [] args) {
      String FirstName = "Ram";
      String LastName = "Kumar";
      System.out.println (FirstName + " " + LastName);
      }
      }

      Delete
    3. Thakshikan
      05

      package myjava;
      public class Hello {
      public static void Main (String [] args) {
      int time = 25;
      if (time < 15)
      {
      System.out.println ("Hello.");
      }
      else
      {
      System.out.println ("Welcome.");
      }
      }
      }


      Delete
  77. Bavani
    public class average {
    public static void main(String args[])
    {
    double num1=10;
    double num2=15;
    double num3=20;
    double avg=0.0;
    double sum=num1+num2+num3;
    avg=sum/3;

    System.out.println("Average:" + avg);
    }
    }

    ReplyDelete
  78. Bavani
    Program 3

    public class swapElementsExample{
    public static void main(String args[]){
    int num1=10;
    int num2=20;
    System.out.println("Before swapping");
    System.out.println ("Value of num 1 is:"+ num1);
    System.out.println ("Value of num 2 is:"+ num2);
    int temp=num1;
    num1=temp;
    num2=num1;

    System.out.println("After swapping");
    System.out.println ("Value of num 1 is:"+ temp);
    System.out.println ("Value of num 2 is:"+ num2);


    }

    }

    ReplyDelete
  79. BAVANI
    PROGRAM 04

    public class main0{
    public static void main(String args[]){
    String firstName = "Ram";
    String LastName ="Kumar";
    System.out.println(firstName +"" + LastName);

    }
    }

    ReplyDelete
  80. Vijayalukshiny.V
    Program 5
    public class Hello {
    public static void main(String[] args)
    {
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello.");
    }
    else {
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete
  81. package onlinepractices2;

    /**
    *
    * @author Vimal
    */
    public class SwapElementsExample
    {
    public static void main(String[] args)
    {
    int num1 = 10;
    int num2 = 20;

    System.out.println("Before Swapping");
    System.out.println("Value of num1 is :" + num1);
    System.out.println("Value of num2 is :" +num2);



    int temp = num1;
    num1 = temp;
    num2 = num1;

    System.out.println("After Swapping");
    System.out.println("Value of num1 is :" + temp);
    System.out.println("Value of num2 is :" +num2);

    }
    }

    ReplyDelete
  82. Programme 04

    public class Main {
    public static void main(String args[]){
    String FirstName = "Ram";
    String LastName = "Kumar";

    System.out.println("firstName + LastName = " +(FirstName+LastName));
    }
    }

    OR

    public class Main2 {
    public static void main(String args[]){
    String FirstName = "Ram";
    String LastName = "Kumar";
    String FULLNAME = FirstName+LastName;

    System.out.println("FULL NAME IS : " +(FirstName+LastName));
    }
    }

    ReplyDelete
  83. Programme 04 Correction

    public class Main3 {
    public static void main(String args[]){
    String FirstName = "Ram";
    String LastName = "Kumar";

    System.out.println("FULL NAME IS : " +(FirstName+LastName));
    }
    }

    ReplyDelete
  84. PROGRAMME 5

    package onlinepractices4;

    /**
    *
    * @author Vimal
    */
    public class Main {
    public static void main(String[] args) {
    int time = 25;
    if (time < 15)
    {
    System.out.println("Hello.");
    }
    else{
    System.out.println("Welcome.");
    }
    }
    }

    ReplyDelete