Aula 1 Java

Embed Size (px)

Citation preview

OOP e Linguagem de Programao; JAVA

Renato PucciniEmbaixador de CampusSun Microsystems

Java Technology

C

JVM

Type Casting

JVM Promotion

Classe

Estruturada

Orientao a Objeto

Primeiro Programa

public class prog1{/** meu primeiro programa em Java**/public static void main(String args[]){System.out.println(Hello world!!);}

}

Primeiro Programa

public class Prog1{/** meu primeiro programa em Java**/public static void main(String args[]){System.out.println(Hello world!!);}

}

Primeiro Programa

Public class prog1{/** meu primeiro programa em Java**/public static void main(String args[]){System.out.println(Hello world!!);}

}

Primeiro Programa

public class prog1{/** meu primeiro programa em Java**/

{System.out.println(Hello world!!);}

}

Primeiro Programa

Public class prog1{/** meu primeiro programa em Java**/public static void main(String args[]){System.out.println(Hello world!!);}

}

Palavras Reservadas

Tipos de dados Primitivos

Tipos de dados Primitivos

Variveis

Operadores e Incremento

Operation Rules

Operation Rules

Mtodos

if

switch

while

Do while

for

4. Template Text Slide with
Two Line Title and Subtitle

This is a Subtitle with Initial Caps Each Major Word

To insert a Subtitle on other slides, copy and
paste the Subtitle text block.

On a slide with a two line Title and Subtitle (as shown here) move the bullet text block down to make room for the Subtitle. You can also duplicate this slide and replace its content.

5. Template Bar Chart

Note: The 12 default data series colors
for the Chart Program are the new
branded colors. To view or edit them,
select:
Tools>Options>Charts>Default Colors

6. Template Multiple Set Bar Chart

7. Template Pie Chart

57%

20%

8%

15%

8. Template Table/Spreadsheet

Note: Double-click on the table to open
the table window. Add and delete rows,
columns and cells as needed.

9. Template Quote

Revolutionary solutions
come from the meeting
of many different minds.

Jane R. Doe
Vice President, Engineering
XYZ Corporation

10. Template Sample Photo Layout

Everyone and Everything Participating on the Network

11. TEMPLATE
ENDING SLIDE
WITHOUT PHOTO

Presenters [email protected]

USER GUIDE

1 Getting Started2 Working in StarOffice 8.03 Inserting New or Existing Slides4 Working with Slide Designs/Masters5 Modifying and Applying Layouts6 Formatting Text7 Using Photography8 Using the Sun Color Palette9 Sun Logos10 Printing Notes Pages or Handouts11 Legal Classifications12 Shape Library

1. Getting Started

The Sun presentation template
incorporates the colors, style, fonts
and images of the Sun brand visual
identity system.

The template fonts are Arial and
Arial Narrow. Sun fonts are not
supported.

For more information on the Sun
brand go to: https://brand.sun.com.

When you are ready to create your
new presentation, use slides 213
from the template section of this file.
Delete the Tutorial and reference
slides 1447.

TIP: Crafting Your PresentationAlways begin a new presentation
with the StarOffice 8.0 template.

Organize your thoughts in an outline
before starting. What are the key
messages you want your audience
to take away?

The best slides are simple. Try to
communicate only one message
per frame.

Use simple graphics or photography
(http://photos.sun.com) to illustrate
complex ideas or processes.

Limit text slides to six bullets or less.
Detailed information should go in
speaker notes. Remember, the
audience should have their attention
directed at the presenter, not at
reading bullet points.

2. Working in StarOffice 8.0

You can open PowerPoint files
directly in StarOffice and also save
them back to PowerPoint. StarOffice
files are cross-platform compatible
(JDS/Windows/Macintosh) and work
with OpenOffice or NeoOffice on
Macintosh.

You can add frequently used icons
to your toolbars by selecting
View>Toolbars>Customize.

Click the PDF icon (Standard
Toolbar) to quickly produce an
Acrobat version of a Screenshow
Presentation.

TIP: Key Presentation Menu IconsSlide ViewOutline ViewNotes ViewHandout ViewSlide Sorter

Be sure and select the
Task Pane from the View
Menu if it is not already open
on your desktop. Use it to
navigate between Masters,
Layouts, Custom Animations
and Slide Transitions.

3. Inserting New or Existing Slides

To add a new slide to your presentation, select Insert>Slide. You can also duplicate slides in the
Slide Sorter using copy and paste.

To add a slide(s) from another presentation,
copy and paste from one file to the other in
the Slide Sorter. Tip: Both presentations must be opened in StarOffice 8.0 first. There is no backward
compatibility with StarOffice 7.0.

To insert an entire presentation, select Insert>File.

4. Working with Slide Designs/Masters

Slide Designs or Masters contain formatting information that determines how your presentation will look. Colors, fonts, bullets, etc. are all defined by the Slide Masters.

When slides from one presentation are copied into another, old slide Masters are carried over as well, resulting in incorrect formatting and larger file size. See the TIP box for applying the new Design/Master.

You can also apply Designs/Masters to multiple slides at one time in the Slide Sorter: Choose View>Task Pane, select the slides you wish to apply a Master to, then select a Master.

TIP: Applying Slide Designs/MastersSelect Format>Slide Design. Click on
one of the top two icons (Text Page
Master or Title Page Master).

Check the Delete unused
backgrounds box to remove any
extra Masters.

Text
Master

Title
Master

Extra
Master

Extra
Master

5. Modifying and Applying Layouts

Slide Layouts automatically control type size, line spacing, positioning and other graphical elements.

After assigning the correct Master, it may be necessary to apply or reapply an auto layout to snap title and text back into format.

TIP: Selecting Slide LayoutsTo change a Slide Layout, select
Format>Slide Layout... The Task
Pane will appear if it is not already
open, and the Layout portion will be
active. In most cases you will be
selecting Title Only or Title, Text.

Blank
SlideTitle,
Text SlideTitle Only
Slide

6. Formatting Text

If word wrap causes an awkward line break, or if you need to start a new line within a paragraph, select Shift+Enter
to create a soft line break.

To add superscript text, highlight the text and choose Format>Character. Click on the Position tab, select Superscript, then remove the check mark by Automatic.

Special characters such as , and fractions can be entered either as superscript text or by Insert>Special Character.

URL recognition can be turned on or off with Tools>AutoCorrect>Options. To enable background spell checking, select the ABC icon from the Standard Toolbar.

7. Using Photography

Use photographs that convey the
theme of the Sun photographic
style.

The following slide offer ideas
of appropriate photos.

The Sun Brand Visual Identity
Guidelines for photo usage can
be found at:
https://brand.sun.com/.

TIP: Crafting Your PresentationPhoto images can be enhanced and
manipulated using photo editing
software such as Adobe Photoshop.

Import using Insert>Picture>From File.

To keep your file size down, size
the photo in Photoshop exactly to fit
the space it will occupy on the slide,
then save your image at 72 dpi
resolution.

Photo imports can generally be
saved in JPEG format with good
results. Logos should be saved in
GIF format.

To further reduce file size, photos can
be saved as smaller JPEG using
the Save for Web option in Adobe
Photoshop. Select a quality setting
between 60 and 80.

The photography represented on this slide is a sampling of the images that are appropriate for a Sun Corporate audience. Find these images and others like them here*

*https://photos.sun.com/page/1142

*https://photos.sun.com/page/1143

The photography represented on this slide is a sampling of the images that are appropriate for a Sun Enterprise audience. Find these images and others like them here*

8. Using the Sun Color Palette

R: 151*G: 177B: 1

R: 83G: 130B: 161

R: 231G: 111B: 0

Primary Brand Colors

R: 255G: 199B: 38

R: 53G: 85B: 107

R: 127*G: 120B: 0

Secondary Brand Colors

R: 192G: 102B: 0

R: 198G: 146B: 0

R: 163G: 184B: 203

R: 197*G: 213B: 169

Tertiary Brand Colors

R: 237G: 155B: 9

R: 248G: 213B: 131

Sun BlackSun Neutral DarkSun Neutral Light TIP: Adding the Sun Color PaletteYou can customize your version of StarOffice to
include all of the Sun brand colors:Download a copy of the standard.soc file from
the Sun Brand site. Copy this file into the:
C:\Documents and Settings\Your Name\
Application Data\StarOffice8\user\config\
standard.soc. (You will be replacing the existing
standard.soc.) If the Folders are hidden, chose
Folder Options from the Tools Menu. Click
on View. Select Show hidden files and folders
under the Hidden Files and Folders option.Restart StarOffice and the new palette
will be available for all the presentations
you work on thereafter. You should be
able to see the new colors in the color
toolbar (View>Toolbars>Color Bar)
and in pull-down menus when applying
area, line and text colors.

*These are the presentation-enhanced RGB values for green ONLY.
The official brand RGB values can be found at https://brand.sun.com/

9. Sun Logos

The following 7 pages have different size Sun Logos that can be copied and pasted into your presentations for easy use and positioning.

Since they were created in Photoshop and imported into StarOffice, it is not a good idea to grow them any larger or the logos will be distorted. However,
growing them down a bit smaller should work fine.

Note: Approved Sun Microsystems logos
can also be downloaded from:
https://brand.sun.com/. To keep file size
down, save as GIF or png images
at 72 dpi.

Positive Reading

Reversed Out

10. Printing Notes Pages or Handouts

Notes PagesTo print Notes Pages vertically, select View>
Notes Page.

Choose Format>Page Setup.

Confirm Format is set to Letter and Orientation is set to Portrait.

Choose File>Print>Options, select Notes.

Select Properties, confirm Orientation is set to Portrait.

HandoutsTo print Handouts vertically, select View>Handout Page.

Choose Format>Page...

Confirm Format is set to Letter and Orientation is set to Portrait.

Choose File>Print>Options, select Handouts.

Select Properties, confirm Orientation is set to Portrait.

11. Legal Classifications

The Sun Confidential: Internal Only marking
is used for information that can only be shared
within the internal Sun community Sun
employees, badged contractors, part-time
employees and interns.

The Sun Confidential: Need to Know marking
is used when you need to specify to the
audience who should have need-to-know
access (if sharing with external third parties,
a proper CDA is required).

The Sun Confidential marking without a
need-to-know category is used when you
have not identified a specific group for
need-to-know access (if sharing with external
third parties, a proper CDA is required).

The Sun Confidential: Registered marking
is used only by Sun Legal to designate highly
confidential information.

TIP: Editing Sun Confidential MarksA Sun Confidential Mark is sometimes
necessary, depending on your audience.
The Mark is located on the Text Page
Master at the very bottom of the screen.

To edit or delete the Mark choose:
View>Master>Slide Master. Select
Text Page Master. Edit or delete the
Sun Confidential Mark. Return to the
Normal View.

12. Shape Library

The following 12 pages have different size shapes with rounded corners that can be copied and pasted into your presentations for easy use and positioning.

Since they were created in Photoshop and imported into StarOffice, it is not a good idea to grow them any larger or the corners will be distorted. However,
growing them down a bit smaller should work fine.

Sun Microsystems, Inc.

Page

Click to edit the title text format

Click to edit the outline text formatSecond Outline Level

Sun Confidential: Internal Only

Click to edit the notes format

Page

Click to edit the title text format

Presenters NamePresenters TitlePresenters Company

Click to edit the notes format

Page

Column 1

20015

200210

200315

200420

200525

200630

Series ASeries BSeries CSeries D

20015379

20021081012

200315111416

200420161820

200525202325

200630232528

Series A

200357

200415

20058

200620

CategoryTitle CategoryNumbers CategoryNumbersNumbers CategoryNumbersNumbersNumbers CategoryNumbers CategoryNumbers CategoryNumbers CategoryNumbers CategoryNumbers

???Page ??? (???)10/30/2006, 11:55:18Page /