Download presentation
Presentation is loading. Please wait.
Published byNoel Juniper James Modified over 9 years ago
1
SEEM3460 Tutorial Java Programming in Windows (Using A Freeware NetBeans)
2
Project Structure Project Group ProjectPackageClass………
3
Create a new project File New Project (Ctrl+Shift+N) In Dialogue 1: Choose Java, Java Application Click Next In Dialogue 2: Type in Project Name [Type in Project Location] Click Finish
4
Dialogue 1
5
Dialogue 2
6
NetBeans Environment
7
Write a program: Echo Download Echo.java using website link Open it with Notepad, copy two parts: import java.util.Scanner; all lines from main
8
Run a program Run Run Project (F6) Use the Output window as command line environment
9
New Concepts in Java Use Coin & Holder as an example: Nested Class make Coin a static class in side Holder Class Inheritance extend Random to NewRandom with a method nextCoin that returns a flipped Coin override nextInt(int n) to allow negative n overload nextInt(int min, int max) to return an integer between min and max
10
Nested Classes https://docs.oracle.com/javase/tutorial/ja va/javaOO/nested.html
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.