1. Basic Java class
class Ex1
{
public static void main(String args[])
{
int width;
int length;
int height;
width=5;
length=12;
height=3;
int v;
v=width*length*height;
System.out.println("Volume is :"+v);
}
}
Volume is :180
1. Basic Java class
class Ex1
{
public static void main(String args[])
{
int width;
int length;
int height;
width=5;
length=12;
height=3;
int v;
v=width*length*height;
System.out.println("Volume is :"+v);
}
}
Volume is :180
program list:
WAP program to show constructor overloading using static member.
WAP to implement multilevel inheritance and method overriding.
WAP to implement interface class and show use of package.
WAP to implement multilevel exception handling and create your own exception.
WAP to implement 3 threads such that 1st sleeps for 200ms, 2nd for 400ms and 3rd for 600ms.
WAP to create applet of moving banner.
WAP to make a simple calculator.
Build a client server chat application.
Use C++ to Manipulate mozSettings in GeckoChih-Hsuan Kuo
If you want to manipulate mozSettings with JavaScript, you can reference to Settings API on MDN (https://developer.mozilla.org/en-US/docs/Web/API/Settings_API).
But if you want to manipulate it with C++, we can only reference to the codebase of Gecko. Now, let me show you some example.
Spock Testing Framework - The Next GenerationBTI360
You may be asking, "Do we really need another testing framework?" In this presentation Spencer says "Yes!" and will share some reasons why the Spock testing framework is gaining in popularity compared to other testing frameworks.
Introduction to Reactive Extensions (Rx)Tamir Dresher
Presentations from the june meeting of IDNDUG
http://ariely.info/Communities/IDNDUG/IDNDUG19thJune2013/tabid/171
The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, andparameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers
An overview of the inner-workings of OpenJDK - with emphasis on...
- what triggers the just-in-time compiler (JIT)
- types of speculative optimizations performed by the JIT
- aspects of the Java language & ecosystem that make ahead-of-time (AOT) compilation challenging
Presentation from ZeroNights 2015 devoted to Esper library and the features it has to perform complex security event processing (correlating). Basic and advanced features was considered and custom made correlation engine which able to work together with logstash was presented
JVM Mechanics: Understanding the JIT's TricksDoug Hawkins
In this talk, we'll walkthrough how the JIT optimizes a piece Java code step-by-step. In doing so, you'll learn some of the amazing feats of optimization that JVMs can perform, but also some surprisingly simple things that prevent your code from running fast.
This talk is a look into some of the surprising performance cases in Java -- with the goal of illustrating a few simple truths about the nature of compilers.
program list:
WAP program to show constructor overloading using static member.
WAP to implement multilevel inheritance and method overriding.
WAP to implement interface class and show use of package.
WAP to implement multilevel exception handling and create your own exception.
WAP to implement 3 threads such that 1st sleeps for 200ms, 2nd for 400ms and 3rd for 600ms.
WAP to create applet of moving banner.
WAP to make a simple calculator.
Build a client server chat application.
Use C++ to Manipulate mozSettings in GeckoChih-Hsuan Kuo
If you want to manipulate mozSettings with JavaScript, you can reference to Settings API on MDN (https://developer.mozilla.org/en-US/docs/Web/API/Settings_API).
But if you want to manipulate it with C++, we can only reference to the codebase of Gecko. Now, let me show you some example.
Spock Testing Framework - The Next GenerationBTI360
You may be asking, "Do we really need another testing framework?" In this presentation Spencer says "Yes!" and will share some reasons why the Spock testing framework is gaining in popularity compared to other testing frameworks.
Introduction to Reactive Extensions (Rx)Tamir Dresher
Presentations from the june meeting of IDNDUG
http://ariely.info/Communities/IDNDUG/IDNDUG19thJune2013/tabid/171
The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, andparameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers
An overview of the inner-workings of OpenJDK - with emphasis on...
- what triggers the just-in-time compiler (JIT)
- types of speculative optimizations performed by the JIT
- aspects of the Java language & ecosystem that make ahead-of-time (AOT) compilation challenging
Presentation from ZeroNights 2015 devoted to Esper library and the features it has to perform complex security event processing (correlating). Basic and advanced features was considered and custom made correlation engine which able to work together with logstash was presented
JVM Mechanics: Understanding the JIT's TricksDoug Hawkins
In this talk, we'll walkthrough how the JIT optimizes a piece Java code step-by-step. In doing so, you'll learn some of the amazing feats of optimization that JVMs can perform, but also some surprisingly simple things that prevent your code from running fast.
This talk is a look into some of the surprising performance cases in Java -- with the goal of illustrating a few simple truths about the nature of compilers.
Using QR (Quick Read) codes to point students to instructional multimedia - the 9 slides include 3 short video clips, and there are links to one other video clip and other websites.
presentation slides on international funds flow prepared by the group members in a new way thanks guys for providing such a beneficial, knowledgeable slides.
A statistical software package written in Python and first released in 2013.
Named after our former colleague Jon Rasbash and pronounced “Stature”.
Stat-JR is meant to appeal to novice users, expert users and other algorithm developers
It has its own MCMC estimation engine built into the software but also allows interoperability with other software packages (this talk).
Has several interfaces including an electronic book interface including “statistical analysis assistant” features (talk 2).
Can also be used to create “bespoke” training materials in combination with the SPSS software package (talk 3).
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
How to Split Bills in the Odoo 17 POS ModuleCeline George
Bills have a main role in point of sale procedure. It will help to track sales, handling payments and giving receipts to customers. Bill splitting also has an important role in POS. For example, If some friends come together for dinner and if they want to divide the bill then it is possible by POS bill splitting. This slide will show how to split bills in odoo 17 POS.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
We all have good and bad thoughts from time to time and situation to situation. We are bombarded daily with spiraling thoughts(both negative and positive) creating all-consuming feel , making us difficult to manage with associated suffering. Good thoughts are like our Mob Signal (Positive thought) amidst noise(negative thought) in the atmosphere. Negative thoughts like noise outweigh positive thoughts. These thoughts often create unwanted confusion, trouble, stress and frustration in our mind as well as chaos in our physical world. Negative thoughts are also known as “distorted thinking”.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
1. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio_1;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio_1 {
/**
* @param args the command line arguments
*/
public static int dimension, c, multiplicacion=1;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("ingrese la dimension del arreglo");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (c = 0; c <= (dimension - 1); c = c + 1) {
System.out.println("Ingrese los numeros solo del 1 al 9");
System.out.println("Numeros " + c);
vec[c] = scn.nextInt();
if (vec[c] >= 0 & vec[c] <= 9) {
} else {
System.out.println("fuera de rango solo numeros del 0 al 9");
}
}
for (c = 0; c <= dimension; c++) {
System.out.println(c + ": " + vec[c]);
multiplicacion = multiplicacion * vec[c];
System.out.println("Multiplicacion " + multiplicacion);
}
}
}
……………………………………………………
2. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio2;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio2 {
/**
* @param args the command line arguments
*/
public static int dimension, co, posicion;
public static String nombre;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la Dimension del vector");
dimension = scn.nextInt();
String vec[] = new String[dimension];
System.out.println("Ingrese el nombre que desea buscar ");
nombre = scn.next();
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese el nombre " + co);
vec[co] = scn.next();
if (vec[co].equals(nombre)) {
posicion = co;
System.out.println("SI EXISTE");
System.out.println("Esta en la pocicion " + posicion);
} else {
System.out.println("NO EXISTE");
}
}
}
}
3. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio3;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio3 {
/**
* @param args the command line arguments
*/
public static int co,co2,co3;
public static String aux,cadena;
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la la palabra o el texto");
cadena=scn.next();
for(co=cadena.length()-1;co>=0;co=co-1){
aux=aux+cadena.charAt(co);
for(co2=0;co2<=aux.length()-1;co++){
if(aux.charAt(co2)==cadena.charAt(co2)){
co3++;
}
}
}
if(co3==cadena.length()){
System.out.println("Es un Palondrimo");
}else{
System.out.println("No es un Palondrimo");
}
}
}
__________________________________________
4. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio4;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio4 {
/**
* @param args the command line arguments
*/
public static int co, dimension, aux, posicion;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese los numeros");
System.out.println("numero " + co);
vec[co] = scn.nextInt();
aux = vec[co];
if (aux >= vec[co]) {
posicion = co;
}
}
System.out.println("El numero mayor es " + aux);
System.out.println("Y esta en la posicion " + posicion);
}
}
5. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio5;
import java.util.Scanner;
* @author user
*/
public class Ejercicio5 {
/**
* @param args the command line arguments
*/
public static int co, dimension, auxmayor, promedio, auxmenor, ac;
public static Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension = scn.nextInt();
int vec[] = new int[dimension];
for (co = 0; co <= (dimension - 1); co = co + 1) {
System.out.println("Ingrese los numeros");
System.out.println("Numero" + co);
vec[co] = scn.nextInt();
auxmayor = vec[0];
if (auxmayor > vec[co]) {
auxmayor = vec[co];
}
auxmenor = vec[0];
if (auxmenor < vec[co]) {
auxmenor = vec[co];
}
ac = ac + vec[co];
}
promedio = ac / co;
System.out.println("El numero Menor es= " + auxmayor);
System.out.println("El numero Mayor es= " + auxmenor);
System.out.println("Suma= " + ac);
System.out.println("Promedio= " + promedio);
}
}
6. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio6;
/**
*
* @author user
*/
public class Ejercicio6 {
/**
* @param args the command line arguments
*/
public static int num=1,num2=1,num3=0,co=0;
public static void main(String[] args) {
// TODO code application logic here
int vec[]=new int [10];
for(co=1;co<=9;co=co+1){
num3=(num3-num)+(num2-2);
num=num;
num2=num3;
vec[co]=num3;
System.out.println(vec[co]);
}
}
}
7. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio8;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio8 {
/**
* @param args the command line arguments
*/
public static int dimension,co,posicion;
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ingrese la dimension del vector");
dimension=scn.nextInt();
int vec[]=new int [dimension];
for(co=0;co<=(dimension-1);co=co+1){
System.out.println("Ingrese los numeros");
System.out.println("numero"+co);
vec[co]=scn.nextInt();
if(vec[co]%2==0){
posicion=co;
System.out.println(vec[co]);
System.out.println(posicion);
}
}
}
}
8. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ejercicio9;
import java.util.Scanner;
/**
*
* @author user
*/
public class Ejercicio9 {
/**
* @param args the command line arguments
*/
public static int secuencia=1,co=0,secuencia2;
public static int vec[]=new int [20];
public static Scanner scn=new Scanner(System.in);
public static void main(String[] args) {
// TODO code application logic here
for(co=1;co<=20;co=co+1){
if(co%2!=0){
secuencia2=secuencia-4;
vec[co]=secuencia;
}
else if(co%2==0){
secuencia2=secuencia+5;
vec[co]=secuencia2;
}
System.out.println(vec[co]);
}
}
}