From 59820c12bf302a4aaf3f4beb7d318d471a5ae732 Mon Sep 17 00:00:00 2001 From: abdulnursahid Date: Wed, 17 May 2017 22:36:24 +0700 Subject: [PATCH] Abdul Nur Sahid _1301154385_IF39-07 Remedial CLO3 --- .gitignore | 3 + TASK 5/build.xml | 73 ++ TASK 5/manifest.mf | 3 + TASK 5/nbproject/build-impl.xml | 1420 +++++++++++++++++++++++++ TASK 5/nbproject/genfiles.properties | 8 + TASK 5/nbproject/project.properties | 75 ++ TASK 5/nbproject/project.xml | 15 + TASK 5/src/task/pkg5/Application.java | 95 ++ TASK 5/src/task/pkg5/Controller.java | 83 ++ TASK 5/src/task/pkg5/Driver.java | 16 + TASK 5/src/task/pkg5/PlayerGui.form | 146 +++ TASK 5/src/task/pkg5/PlayerGui.java | 190 ++++ TASK 5/src/task/pkg5/TASK5.java | 21 + 13 files changed, 2148 insertions(+) create mode 100644 .gitignore create mode 100644 TASK 5/build.xml create mode 100644 TASK 5/manifest.mf create mode 100644 TASK 5/nbproject/build-impl.xml create mode 100644 TASK 5/nbproject/genfiles.properties create mode 100644 TASK 5/nbproject/project.properties create mode 100644 TASK 5/nbproject/project.xml create mode 100644 TASK 5/src/task/pkg5/Application.java create mode 100644 TASK 5/src/task/pkg5/Controller.java create mode 100644 TASK 5/src/task/pkg5/Driver.java create mode 100644 TASK 5/src/task/pkg5/PlayerGui.form create mode 100644 TASK 5/src/task/pkg5/PlayerGui.java create mode 100644 TASK 5/src/task/pkg5/TASK5.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c1bb1e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/TASK 5/nbproject/private/ +/TASK 5/build/ +/TASK6/nbproject/private/ \ No newline at end of file diff --git a/TASK 5/build.xml b/TASK 5/build.xml new file mode 100644 index 0000000..372dc4d --- /dev/null +++ b/TASK 5/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project TASK 5. + + + diff --git a/TASK 5/manifest.mf b/TASK 5/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/TASK 5/manifest.mf @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +X-COMMENT: Main-Class will be added automatically by build + diff --git a/TASK 5/nbproject/build-impl.xml b/TASK 5/nbproject/build-impl.xml new file mode 100644 index 0000000..efa67e0 --- /dev/null +++ b/TASK 5/nbproject/build-impl.xml @@ -0,0 +1,1420 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set src.dir + Must set test.src.dir + Must set build.dir + Must set dist.dir + Must set build.classes.dir + Must set dist.javadoc.dir + Must set build.test.classes.dir + Must set build.test.results.dir + Must set build.classes.excludes + Must set dist.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No tests executed. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + To run this application from the command line without Ant, try: + + java -jar "${dist.jar.resolved}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + Must select one file in the IDE or set run.class + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set debug.class + + + + + Must select one file in the IDE or set debug.class + + + + + Must set fix.includes + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + Must select one file in the IDE or set profile.class + This target only works when run from inside the NetBeans IDE. + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + This target only works when run from inside the NetBeans IDE. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select one file in the IDE or set run.class + + + + + + Must select some files in the IDE or set test.includes + + + + + Must select one file in the IDE or set run.class + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must select some files in the IDE or set javac.includes + + + + + + + + + + + + + + + + + + + + Some tests failed; see details above. + + + + + + + + + Must select some files in the IDE or set test.includes + + + + Some tests failed; see details above. + + + + Must select some files in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + Some tests failed; see details above. + + + + + Must select one file in the IDE or set test.class + + + + Must select one file in the IDE or set test.class + Must select some method in the IDE or set test.method + + + + + + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + Must select one file in the IDE or set applet.url + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TASK 5/nbproject/genfiles.properties b/TASK 5/nbproject/genfiles.properties new file mode 100644 index 0000000..478e661 --- /dev/null +++ b/TASK 5/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=a8e6c0b9 +build.xml.script.CRC32=f4d718ae +build.xml.stylesheet.CRC32=8064a381@1.80.1.48 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=a8e6c0b9 +nbproject/build-impl.xml.script.CRC32=f7f813a2 +nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48 diff --git a/TASK 5/nbproject/project.properties b/TASK 5/nbproject/project.properties new file mode 100644 index 0000000..603c8af --- /dev/null +++ b/TASK 5/nbproject/project.properties @@ -0,0 +1,75 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=false +annotation.processing.processor.options= +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output +build.classes.dir=${build.dir}/classes +build.classes.excludes=**/*.java,**/*.form +# This directory is removed when the project is cleaned: +build.dir=build +build.generated.dir=${build.dir}/generated +build.generated.sources.dir=${build.dir}/generated-sources +# Only compile against the classpath explicitly listed here: +build.sysclasspath=ignore +build.test.classes.dir=${build.dir}/test/classes +build.test.results.dir=${build.dir}/test/results +# Uncomment to specify the preferred debugger connection transport: +#debug.transport=dt_socket +debug.classpath=\ + ${run.classpath} +debug.test.classpath=\ + ${run.test.classpath} +# Files in build.classes.dir which should be excluded from distribution jar +dist.archive.excludes= +# This directory is removed when the project is cleaned: +dist.dir=dist +dist.jar=${dist.dir}/TASK_5.jar +dist.javadoc.dir=${dist.dir}/javadoc +excludes= +includes=** +jar.compress=false +javac.classpath=\ + ${libs.Jlayer.classpath} +# Space-separated list of extra javac options +javac.compilerargs= +javac.deprecation=false +javac.external.vm=true +javac.processorpath=\ + ${javac.classpath} +javac.source=1.8 +javac.target=1.8 +javac.test.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +javac.test.processorpath=\ + ${javac.test.classpath} +javadoc.additionalparam= +javadoc.author=false +javadoc.encoding=${source.encoding} +javadoc.noindex=false +javadoc.nonavbar=false +javadoc.notree=false +javadoc.private=false +javadoc.splitindex=true +javadoc.use=true +javadoc.version=false +javadoc.windowtitle= +main.class=task.pkg5.TASK5 +manifest.file=manifest.mf +meta.inf.dir=${src.dir}/META-INF +mkdist.disabled=false +platform.active=default_platform +run.classpath=\ + ${javac.classpath}:\ + ${build.classes.dir} +# Space-separated list of JVM arguments used when running the project. +# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value. +# To set system properties for unit tests define test-sys-prop.name=value: +run.jvmargs= +run.test.classpath=\ + ${javac.test.classpath}:\ + ${build.test.classes.dir} +source.encoding=UTF-8 +src.dir=src +test.src.dir=test diff --git a/TASK 5/nbproject/project.xml b/TASK 5/nbproject/project.xml new file mode 100644 index 0000000..0240a48 --- /dev/null +++ b/TASK 5/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + TASK 5 + + + + + + + + + diff --git a/TASK 5/src/task/pkg5/Application.java b/TASK 5/src/task/pkg5/Application.java new file mode 100644 index 0000000..d9371e7 --- /dev/null +++ b/TASK 5/src/task/pkg5/Application.java @@ -0,0 +1,95 @@ +/* + * 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 task.pkg5; + +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.util.ArrayList; +import javazoom.jl.decoder.JavaLayerException; +import javazoom.jl.player.Player; + +/** + * + * @author abdulnursahid + */ +public class Application { + + private ArrayList < String > musicList; + private ThreadPlayer thread; + private int nowPlaying; + + public Application() { + musicList = new ArrayList(); + } + + public void addMusic (String path){ + musicList.add(path); + } + + public String [] getMusicList() { + return (String[]) musicList.toArray(new String[0]); + } + + public String getNowPlayed(){ + return musicList.get(nowPlaying); + } + + public void removeMusic(int i){ + musicList.remove(i); + } + + public void play(int i){ + nowPlaying = i; + String filepath = musicList.get(i); + thread = new ThreadPlayer(filepath); + thread.start(); + } + + public void stop(){ + if (thread != null){ + thread.stop(); + } + } + + public void next(){ + if (nowPlaying < musicList.size()- 1){ + stop(); + play(nowPlaying + 1); + } + + } + + public void prev(){ + if (nowPlaying > musicList.size()+ 1){ + stop(); + play(nowPlaying - 1); + } + } + + public class ThreadPlayer extends Thread { + private String filepath; + private Player player; + + public ThreadPlayer(String filepath) { + this.filepath = filepath; + } + + public void run(){ + try { + FileInputStream fis = new FileInputStream(filepath); + player = new Player(fis); + player.play(); + } catch (FileNotFoundException exc) { + throw new IllegalStateException("File "+ filepath + " not Found "); + } catch (JavaLayerException exc){ + throw new IllegalStateException("ERROR while playing file"); + } + } + } + +} + + diff --git a/TASK 5/src/task/pkg5/Controller.java b/TASK 5/src/task/pkg5/Controller.java new file mode 100644 index 0000000..babcedf --- /dev/null +++ b/TASK 5/src/task/pkg5/Controller.java @@ -0,0 +1,83 @@ +/* + * 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 task.pkg5; + +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.filechooser.FileNameExtensionFilter; +import jdk.nashorn.internal.objects.NativeRegExp; + +/** + * + * @author abdulnursahid + */ +public class Controller implements ActionListener { + + private Application app; + private PlayerGui view; + + public Controller() { + app = new Application(); + view = new PlayerGui(); + view.setVisible(true); + view.addListener(this); + view.setListMusic(app.getMusicList()); + + } + + public void actionPerformed(ActionEvent ae) { + Object source = ae.getSource(); + + try { + if (source.equals(view.getBtnAdd())) { + JFileChooser fc = new JFileChooser(); + FileNameExtensionFilter filter + = new FileNameExtensionFilter("MP3 FILES", "mp3", "mp3"); + fc.setFileFilter(filter); + int returnVal = fc.showOpenDialog(view); + + + if (returnVal == JFileChooser.APPROVE_OPTION){ + String path = fc.getSelectedFile().getAbsolutePath(); + app.addMusic(path); + view.setListMusic(app.getMusicList()); + + } + } + else if (source.equals(view.getBtnDelete())){ + int selected = view.getSelectedMusic(); + app.removeMusic(selected); + view.setListMusic(app.getMusicList()); + } + else if (source.equals(view.getBtnPlay())){ + int selected = view.getSelectedMusic(); + app.stop(); + app.play(selected); + view.setTxFieldPlaying(app.getNowPlayed()); + } + else if (source.equals(view.getBtnStop())){ + app.stop(); + view.setTxFieldPlaying(""); + } + + else if (source.equals(view.getBtnnext())){ + app.next(); + view.setTxFieldPlaying(app.getNowPlayed()); + } + else if (source.equals(view.getBtnPrev())){ + app.prev(); + view.setTxFieldPlaying(app.getNowPlayed()); + } + + } catch (Exception e) { + JOptionPane.showMessageDialog(view, e.getMessage()); + } + + } + + } diff --git a/TASK 5/src/task/pkg5/Driver.java b/TASK 5/src/task/pkg5/Driver.java new file mode 100644 index 0000000..c5e4410 --- /dev/null +++ b/TASK 5/src/task/pkg5/Driver.java @@ -0,0 +1,16 @@ +/* + * 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 task.pkg5; + +/** + * + * @author abdulnursahid + */ +public class Driver { + public static void main(String[] args) { + Controller c = new Controller(); + } +} diff --git a/TASK 5/src/task/pkg5/PlayerGui.form b/TASK 5/src/task/pkg5/PlayerGui.form new file mode 100644 index 0000000..0a0b8fd --- /dev/null +++ b/TASK 5/src/task/pkg5/PlayerGui.form @@ -0,0 +1,146 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/TASK 5/src/task/pkg5/PlayerGui.java b/TASK 5/src/task/pkg5/PlayerGui.java new file mode 100644 index 0000000..ca13772 --- /dev/null +++ b/TASK 5/src/task/pkg5/PlayerGui.java @@ -0,0 +1,190 @@ +/* + * 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 task.pkg5; + +import java.awt.event.ActionListener; + +/** + * + * @author abdulnursahid + */ +public class PlayerGui extends javax.swing.JFrame { + + /** + * Creates new form PlayerGui + */ + public PlayerGui() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // //GEN-BEGIN:initComponents + private void initComponents() { + + jScrollPane1 = new javax.swing.JScrollPane(); + listMusic = new javax.swing.JList<>(); + jLabel1 = new javax.swing.JLabel(); + txtFieldPlaying = new javax.swing.JTextField(); + btnAdd = new javax.swing.JButton(); + btnDelete = new javax.swing.JButton(); + btnPrev = new javax.swing.JButton(); + btnPlay = new javax.swing.JButton(); + btnStop = new javax.swing.JButton(); + btnNext = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + + listMusic.setModel(new javax.swing.AbstractListModel() { + String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" }; + public int getSize() { return strings.length; } + public String getElementAt(int i) { return strings[i]; } + }); + jScrollPane1.setViewportView(listMusic); + + jLabel1.setText("Now Playing"); + + txtFieldPlaying.setEditable(false); + + btnAdd.setText("Add"); + + btnDelete.setText("Delete"); + + btnPrev.setText("<<"); + + btnPlay.setText("Play"); + + btnStop.setText("Stop"); + + btnNext.setText(">>"); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 371, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGroup(layout.createSequentialGroup() + .addComponent(jLabel1) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(txtFieldPlaying))) + .addGroup(layout.createSequentialGroup() + .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnDelete) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnPrev) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnPlay) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(btnStop) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(btnNext))) + .addContainerGap(17, Short.MAX_VALUE)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addContainerGap() + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(jLabel1) + .addComponent(txtFieldPlaying, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(13, 13, 13) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(btnDelete) + .addComponent(btnPrev) + .addComponent(btnPlay) + .addComponent(btnStop) + .addComponent(btnNext)) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + ); + + pack(); + }// //GEN-END:initComponents + + /** + * @param args the command line arguments + */ + + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btnAdd; + private javax.swing.JButton btnDelete; + private javax.swing.JButton btnNext; + private javax.swing.JButton btnPlay; + private javax.swing.JButton btnPrev; + private javax.swing.JButton btnStop; + private javax.swing.JLabel jLabel1; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JList listMusic; + private javax.swing.JTextField txtFieldPlaying; + // End of variables declaration//GEN-END:variables + + public Object getBtnAdd(){ + return btnAdd; + } + + public Object getBtnDelete(){ + return btnDelete; + } + + public Object getBtnnext(){ + return btnNext; + } + + public Object getBtnPlay(){ + return btnPlay; + } + + public Object getBtnPrev(){ + return btnPrev; + } + + public Object getBtnStop(){ + return btnStop; + } + + public void setTextFieldPlaying(String a) { + txtFieldPlaying.setText(a); + } + + public void setListMusic(String [] musicList){ + listMusic.setListData(musicList); + } + + public void setTxFieldPlaying(String filename){ + setTextFieldPlaying(filename); + } + + public int getSelectedMusic(){ + if (listMusic.getSelectedIndex() == -1){ + throw new IllegalStateException("Please select any music"); + + } + return listMusic.getSelectedIndex(); + } + + public void addListener(ActionListener e){ + btnAdd.addActionListener(e); + btnDelete.addActionListener(e); + btnNext.addActionListener(e); + btnPlay.addActionListener(e); + btnPrev.addActionListener(e); + btnStop.addActionListener(e); + } + +} + diff --git a/TASK 5/src/task/pkg5/TASK5.java b/TASK 5/src/task/pkg5/TASK5.java new file mode 100644 index 0000000..e6645b6 --- /dev/null +++ b/TASK 5/src/task/pkg5/TASK5.java @@ -0,0 +1,21 @@ +/* + * 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 task.pkg5; + +/** + * + * @author abdulnursahid + */ +public class TASK5 { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) { + // TODO code application logic here + } + +}