0% found this document useful (0 votes)
3 views3 pages

OOP 101 Study Guide: Input & Swing Components

This document is a study guide for an Object-Oriented Programming (OOP) activity focused on getting input from the keyboard and extracting digits from an integer. It includes program requirements, an explanation of Java Swing components, and instructions for running the code using console commands. The deadline for submission is October 17, 2023, with specific guidelines for output format.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

OOP 101 Study Guide: Input & Swing Components

This document is a study guide for an Object-Oriented Programming (OOP) activity focused on getting input from the keyboard and extracting digits from an integer. It includes program requirements, an explanation of Java Swing components, and instructions for running the code using console commands. The deadline for submission is October 17, 2023, with specific guidelines for output format.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

FM-AA-CIA-15 Rev.

0 29-March-2021

Study Guide in OOP 101 - OBJECT-ORIENTED PROGRAMMING

ACTIVITY 01 FOR MODULE 02

GETTING INPUT FROM THE KEYBOARD

PLEASE WRITE YOUR NAME HERE ↓


Last Name: ___________________ First Name: ______________________ _______
Course, Year and Section: _____________ 15
Date: ______________________________ Score

Program Analysis:
Write a program that would input an integer number and extract digits from a given number.

Program Requirements:
1. BufferedReader / Scanner (2.5 points)
2. JOptionPane (2.5 points)
3. Swing Components (10 points)
3.1 What is a Java Swing?
Swing is a Java Foundation Classes [JFC] library and an extension of the Abstract
Window Toolkit [AWT]. Swing offers much-improved functionality over AWT, new
components, expanded components features, excellent event handling with drag
and drop support.
3.2 Java class “packages” to be imported include:
3.2.1 [Link]
3.2.2 [Link]
3.2.3 [Link]
3.2.4 [Link]
3.2.5 [Link]
3.2.6 [Link]

Source code here…

PANGASINAN STATE UNIVERSITY 1


FM-AA-CIA-15 Rev. 0 29-March-2021

Study Guide in OOP 101 - OBJECT-ORIENTED PROGRAMMING

Using console to run the code:


Console command using Git..
javac [Link]
java ScannerExtractDigits

Git Output:

BufferedReader / Scanner
Expected Ouput:
Enter any number:1234
Digits at position 4:4
Digits at position 3:3
Digits at position 2:2
Digits at position 1:1

JOptionPane

Swing Components

PANGASINAN STATE UNIVERSITY 2


FM-AA-CIA-15 Rev. 0 29-March-2021

Study Guide in OOP 101 - OBJECT-ORIENTED PROGRAMMING

Deadline:
October 17, 2023 till 5:00 PM

Method of Submission:
1. Output must be submitted in the following format:
1.1 Printed or
1.2 Handwritten

Notice! if you submit a printed copy, please print your document and send it to the ITSO
office. Please help your organization in earning.

PANGASINAN STATE UNIVERSITY 3

You might also like