awsdocs /
aws-doc-sdk-examples
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Loading repository data…
vk0708 / repository
This repository contains a collection of Java-based automation testing scripts and frameworks for automating functional and regression tests. It is designed for testers, developers, and automation engineers looking to integrate Java with popular testing tools such as Selenium, TestNG, JUnit, and others. The goal is to provide reusable, maintainable
Source Code Folder src folder contains code with notes(in Comments)
All contains are dropdown, So click on Arrow to view
• Java is a programming language that helps developers build software applications. It follows an object-oriented approach, meaning it organizes code into reusable objects.
Programming languages can be grouped based on how they're structured:
Structured Programming Languages: o Examples: C, Python o These languages use a logical flow of commands.
Object-Based Programming Languages: o Examples: Visual Basic (VB), VBScript, Python o They support some object-oriented programming (OOP) ideas like classes and objects, but not inheritance.
Object-Oriented Programming (OOP) Languages: o Examples: C++, Java, C#, Python o These languages support all OOP concepts.
Platform Independent: Java can run on any device with Java Runtime Environment (JRE), making it versatile.
Case Sensitive: Java treats uppercase and lowercase letters as different (e.g., a is not the same as A).
• Core Java: Focuses on the basics (Java SE). • Advanced Java: Covers more specialized topics (Java EE), like web services and databases.
• JDK 8: Created by Sun Microsystems, now managed by Oracle. • Latest Version: JDK 22. • Recommended Version: JDK 11+ for most uses. • Java Distributions: o Community Edition: Free and open-source (OpenJDK). o Licensed Edition: Commercial with long-term support (Oracle JDK).
• Download and Install JDK • Set Java Path inside environment variables • Verify Installation inside command prompt Eclipse IDE Download & Installation (Refer the installation document) • Download Eclipse IDE and install it. • Launch eclipse and create new java project.
• Single-Line Comment: // This is a comment • Multi-Line Comment: /* This is a multi-line comment */
• Auto-Complete System Output: Type Syso then press Ctrl + Space (or CMD + Space on Mac). • Single-Line Comment: Press Ctrl + / • Multi-Line Comment: Press Ctrl + Shift + /
A Variable is a name given to a memory location. It is used to store a value that may vary. Java is a statically typed language, and hence, all the variables are declared before use.
In Java, we can declare variables as follows:
type: Type of the data that can be stored in this variable. It can be int, float, double, etc. name: Name given to the variable. data_type variable_name;
Example: int x;
In this way, we can only create a variable in the memory location. Currently, it doesn’t have any value. We can assign the value in this variable by using two ways: • By using variable initialization. • By taking input Here, we have discussed only the first way, i.e. variable initialization. We will discuss the second way later.
data_type variable_name = value; Example: int x = 10;
Keywords in Java are also known as reserved words. These are the predefined words therefore they can’t be used as a variable name. If we will use keywords as a variable name, the result will be a compile-time error. The list of all the Java Keywords is given below.
The data type defines the type of value that can be stored in a variable. For example, if a variable has an int data type, it can only store an integer value. In java, there are two categories of data types.
Example
// Primitive Data Types
int price = 5000; // Integer Value
float rateOfInterest = 5.99f; // Floating point number
char ch = 'a'; // Character
// Non-Primitive Data Types
String str = "Coding Ninjas"; // String
A variable is a name given to memory location. There are three types of variables in java.
public class Addition {
// Function to add two numbers
public void add() {
// Local variables
int a = 10;
int b = 20;
int c = a + b;
// Printing the sum
System.out.println(c);
}
// Driver Code
public static void main(String args[]) {
// Creating an object of Addition class
Addition obj = new Addition();
// Function Call
obj.add();
}
}
class Student {
// These are instance variables
// these are declared inside the
// class but outside the method body
String name;
int rollno;
}
public class StudentRecords {
public static void main(String args[]) {
// Creating Student class object
Student obj = new Student();
// Assigning values in the variables
obj.name = "Ram";
obj.rollno = 10;
// Printing name and rollno
System.out.println(obj.name);
System.out.println(obj.rollno);
}
}
class Student {
// static variables
public static int rollno;
public static String name = "Ram";
}
public class StudentDemo {
public static void main(String args[])
{
// accessing static variable without creating object
Student.rollno = 10;
System.out.println(Student.name + " 's rollno is :" + Student.rollno);
}
}
TypeCasting in Java is the process of converting one primitive data type into another. TypeCasting can be done automatically and explicitly.
When we assign the value of one data type to another data type, then there is a chance that two data types might not be compatible with each other. The Java compiler will automatically perform the conversion if the data types are consistent. This type of conversion is known as Automatic Type Conversion. If the java compiler cannot perform the conversion automatically, they need to be cast explicitly.
There are two types of TypeCasting in Java.
• Widening or Automatic Type Conversion.
• Narrowing or Explicit Type Conversion.
byte -> short -> int -> long -> float -> double ( Widening or Automatic Type Conversion)
public class WideningConversation {
public static void main(String args[]) {
// Automatic Type Conversion.
int i = 2147483647; // Int max value in java.
long l = i; // Automatically converted to long, now we can extend l's value.
l = l + 1;
double d = l; // Automatically converted to double.
System.out.println("Int value : " + i);
System.out.println("Long value : " + l);
System.out.prin
Selected from shared topics, language and repository description—not editorial ratings.
awsdocs /
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
Vishal-raj-1 /
This Repository contain awesome vanilla JavaScript projects.
smv1999 /
This repository contains all the popular Competitive Programming and DSA questions with solutions for your Coding Interview Preparation.
thepranaygupta /
A repository that contains all the Data Structures and Algorithms concepts and their implementation in several ways, programming questions and Interview questions. The main aim of this repository is to help students who are learning Data Structures and Algorithms or preparing for an interview.
sukritishah15 /
This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
james34602 /
Audio DSP effects build on Android system framework layer. This is a repository contains a pack of high quality DSP algorithms specialized for audio processing.