La clase Box define métodos para establecer y obtener el ancho, alto y longitud de una caja, así como para calcular su volumen. El programa main crea una instancia de Box, establece sus dimensiones y muestra el volumen calculado. Posteriormente, se añade un constructor a la clase Box que inicializa las dimensiones pasándolas como parámetros.
Learn 6 tricks you can take home to get participation without politics:
1-KJ Sessions
2-Nav Bar Survivor
3-Design Consequences
4-Mood Boards
5-Posterframes
6-Digital Paper Prototyping
At EdUI 2009 we looked at 5 proven techniques you can take home to your institution and use to get participation and yes, "buy-in," during the web design process:
1. KJ sessions for getting the best ideas from a group of people - and getting them to agree!
2. Nav Bar Survivor - a great trick for solving the "What should be in the top nav?" argument
3. Posterframes - Poster sessions for fleshing out landing pages
4. Mood Boards - Get input from your team on the emotion and tone of your website.
5. Design Consequences game for generating alternative designs quickly
These are all techniques we've learned or developed to help a large group of people from various parts of an institution work together to develop their site architecture in a short period of time. And not fight about it later.
We did the KJ session hands-on during the workshop.
Going Responsive with Google Analytics - EdUiNewCity
Responsive design can get all of your site content on mobile devices, but without some tweaking, it can wreak havoc on your analytics. Learn to set up profiles that will not only preserve your current results but give you new insights about how people use your site in different contexts.
What happens when UX and SEO professionals stop fighting and start teaming up, from the beginning of a project? Big results. This presentation demonstrates how they can work together from strategy through execution. Examples are taken from the higher education market but the lessons are applicable in any market.
Learn 6 tricks you can take home to get participation without politics:
1-KJ Sessions
2-Nav Bar Survivor
3-Design Consequences
4-Mood Boards
5-Posterframes
6-Digital Paper Prototyping
At EdUI 2009 we looked at 5 proven techniques you can take home to your institution and use to get participation and yes, "buy-in," during the web design process:
1. KJ sessions for getting the best ideas from a group of people - and getting them to agree!
2. Nav Bar Survivor - a great trick for solving the "What should be in the top nav?" argument
3. Posterframes - Poster sessions for fleshing out landing pages
4. Mood Boards - Get input from your team on the emotion and tone of your website.
5. Design Consequences game for generating alternative designs quickly
These are all techniques we've learned or developed to help a large group of people from various parts of an institution work together to develop their site architecture in a short period of time. And not fight about it later.
We did the KJ session hands-on during the workshop.
Going Responsive with Google Analytics - EdUiNewCity
Responsive design can get all of your site content on mobile devices, but without some tweaking, it can wreak havoc on your analytics. Learn to set up profiles that will not only preserve your current results but give you new insights about how people use your site in different contexts.
What happens when UX and SEO professionals stop fighting and start teaming up, from the beginning of a project? Big results. This presentation demonstrates how they can work together from strategy through execution. Examples are taken from the higher education market but the lessons are applicable in any market.
1. Programación
Sección 302
public class Box
{
private double width;
private double height;
private double length;
// Método para calcular el volumen de una caja
public double volume()
{
return width*height*length;}
// Método para establecer el valor del ancho de la caja
public void setWidth(double w) {
width = w;
}
// Método para establecer el valor del alto de altura de la caja
public void setHeight(double h){
height = h;
}
// Método para establecer el valor de la longitud de la caja
public void setLength(double l){
length = l;
}
// Método para obtener el valor del ancho de la caja
public double getWidth(){
return width;
}
// Método para obtener el valor de la altura de la caja
public double getHeight(){
return height;
}
// Método para obtener el valor de la longitud de la caja
public double getLength(){
return length;
}
}
Utilizando los métodos de la clase Box:
Para llamar a los métodos que hemos definido en la clase Box, utilizamos un
(operador de punto). Por ejemplo:
public class Example{
public static void main (String args[]) {
Box myFirstBox = new Box(); // creación de la caja
myFirstBox.setWidth(7.5);
myFirstBox.setHeight(6.97);
myFirstBox.setLength(2);
System.out.println("El volumen es " + myFirstBox.volume());
2. Programación
Sección 302
}
}
Definir un constructor que pase como parámetros los tres valores
width ,height y length de tipo double, y que inicialice dichas
variables con esos valores que se pasan como parámetros, llamar al
constructor en el programa main, al instanciar el objeto.
3. Programación
Sección 302
Constructores:
//Constructor predeterminado
public Box() {
width = 0;
height = 0;
length = 0;
}
//Constructor con argumentos
public Box (double w, double h, double l) {
width = w;
height = h;
length = l;
}
Los constructores se llaman del siguiente modo:
Box b1 = new Box();
Box b2 = new Box(2.0,2.5,3.0);