Java

Laborator
8.7/10 (3 voturi)
Conține 255 fișiere: doc, gif, html, java, class, txt, properties, form, prefs, classpath, mf
Pagini : 8 în total
Cuvinte : 3508
Mărime: 859.23KB (arhivat)
Cost: Gratis
netbeans,eclipse; 8 laboratoare

Extras din document

import java.util.*;

import java.io.IOException;

public class lab1

{

public static void main(String[] args)

{

int a,i;

String s;

System.out.println("n= ");

try

{

s = System.console().readLine();

}

catch (NullPointerException e)

{

return;

}

a = Integer.parseInt(s);

for (i=a-1;i>0;i--)

{

if (perfect(i))

{

System.out.println("Numarul cautat este: "+i);

return;

}

}

System.out.println("Nu exista un numar perfect mai mic decat: "+a);

}

public static boolean perfect(int x)

{

int j,s=0;

for (j=1;j<=x/2;j++)

if (x % j == 0)

s+=j;

if (s == x)

return true;

return false;

}

}

Preview document

Java - Pagina 1
Java - Pagina 2
Java - Pagina 3
Java - Pagina 4
Java - Pagina 5
Java - Pagina 6

Conținut arhivă zip

  • L1
    • lab1.java
  • L2
    • HashTable.java
    • IHashTable.java
    • IIterator.java
    • Nod.java
    • Test.java
  • L3
    • bin
      • exceptii
        • lab3_doc
          • exceptii
            • ListaGoalaException.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
          • lab3
            • dictItem.html
            • IHashTable.html
            • IIterator.html
            • Link.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • Test.html
          • resources
            • inherit.gif
          • allclasses-frame.html
          • allclasses-noframe.html
          • constant-values.html
          • deprecated-list.html
          • help-doc.html
          • index-all.html
          • index.html
          • overview-frame.html
          • overview-summary.html
          • overview-tree.html
          • serialized-form.html
          • stylesheet.css
        • ElemInexistentException.class
        • lab3.gpj
        • ListaGoalaException.class
      • lab3
        • dictItem.class
        • HashTable.class
        • IHashTable.class
        • IIterator.class
        • Link.class
        • SortedList$Iterator.class
        • SortedList.class
        • Test.class
    • src
      • exceptii
        • lab3_doc
          • exceptii
            • ListaGoalaException.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
          • lab3
            • dictItem.html
            • IHashTable.html
            • IIterator.html
            • Link.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • Test.html
          • resources
            • inherit.gif
          • allclasses-frame.html
          • allclasses-noframe.html
          • constant-values.html
          • deprecated-list.html
          • help-doc.html
          • index-all.html
          • index.html
          • overview-frame.html
          • overview-summary.html
          • overview-tree.html
          • serialized-form.html
          • stylesheet.css
        • ElemInexistentException.class
        • ElemInexistentException.java
        • lab3.gpj
        • ListaGoalaException.class
        • ListaGoalaException.java
      • lab3
        • dictItem.class
        • dictItem.java
        • HashTable.class
        • HashTable.java
        • IHashTable.class
        • IHashTable.java
        • IIterator.class
        • IIterator.java
        • Link.class
        • Link.java
        • SortedList$Iterator.class
        • SortedList.class
        • SortedList.java
        • Test.class
        • Test.java
    • .classpath
    • .project
    • date.txt
    • dictionary.ser
  • L4
    • L4_beans
      • build
        • classes
          • gestiune
            • Firma.class
            • Gestiune.class
            • GestiuneWindow$1.class
            • GestiuneWindow$2.class
            • GestiuneWindow$3.class
            • GestiuneWindow$4.class
            • GestiuneWindow$5.class
            • GestiuneWindow.class
      • dist
        • lib
          • swing-layout-1.0.jar
        • lab4.jar
        • README.TXT
      • nbproject
        • private
          • private.properties
          • private.xml
        • build-impl.xml
        • genfiles.properties
        • project.properties
        • project.xml
      • src
        • gestiune
          • Firma.java
          • Gestiune.java
          • GestiuneWindow.form
          • GestiuneWindow.java
      • build.xml
      • firme.txt
      • firme_mari.txt
      • firme_mici.txt
      • firme_mijlocii.txt
      • GestiuneFirma.txt
      • Lab4.txt
      • manifest.mf
    • L4_eclipse
      • .settings
        • org.eclipse.jdt.core.prefs
      • bin
        • gestiune
          • Firma.class
          • Gestiune.class
          • GestiuneWindow$1.class
          • GestiuneWindow$2.class
          • GestiuneWindow$3.class
          • GestiuneWindow$4.class
          • GestiuneWindow$5.class
          • GestiuneWindow.class
          • GestiuneWindow.form
        • swing-layout-1.0.jar
      • lib
        • swing-layout-1.0.jar
      • src
        • gestiune
          • Firma.java
          • Gestiune.java
          • GestiuneWindow.form
          • GestiuneWindow.java
      • .classpath
      • .project
      • .settings
      • firme.txt
      • firme_mari.txt
      • firme_mici.txt
      • firme_mijlocii.txt
      • GestiuneFirma.txt
      • Lab4.txt
  • L5
    • L5_beans
      • build
        • classes
          • cls
            • Cheltuieli.class
            • Locatar.class
          • data
            • DataManager.class
          • gui
            • BlocWindow$1.class
            • BlocWindow$ButoaneListener.class
            • BlocWindow.class
          • run
            • Main.class
      • dist
        • javadoc
          • cls
            • class-use
              • Cheltuieli.html
              • Locatar.html
            • Cheltuieli.html
            • Locatar.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • package-use.html
          • data
            • class-use
              • DataManager.html
            • DataManager.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • package-use.html
          • gui
            • class-use
              • BlocWindow.html
            • BlocWindow.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • package-use.html
          • index-files
            • index-1.html
            • index-2.html
            • index-3.html
            • index-4.html
            • index-5.html
            • index-6.html
            • index-7.html
            • index-8.html
            • index-9.html
          • resources
            • inherit.gif
          • run
            • class-use
              • Main.html
            • Main.html
            • package-frame.html
            • package-summary.html
            • package-tree.html
            • package-use.html
          • allclasses-frame.html
          • allclasses-noframe.html
          • constant-values.html
          • deprecated-list.html
          • help-doc.html
          • index.html
          • overview-frame.html
          • overview-summary.html
          • overview-tree.html
          • serialized-form.html
          • stylesheet.css
        • l5.jar
        • README.TXT
      • nbproject
        • private
          • private.properties
          • private.xml
        • build-impl.xml
        • genfiles.properties
        • project.properties
        • project.xml
      • src
        • cls
          • Cheltuieli.class
          • Cheltuieli.java
          • Locatar.class
          • Locatar.java
        • data
          • DataManager.class
          • DataManager.java
        • gui
          • BlocWindow$1.class
          • BlocWindow$ButoaneListener.class
          • BlocWindow.class
          • BlocWindow.java
        • run
          • Main.class
          • Main.java
      • build.xml
      • cheltuieli.txt
      • documentatie.doc
      • Lab5.txt
      • locatari.txt
      • manifest.mf
      • P4.txt
    • L5_eclipse
      • .settings
        • org.eclipse.jdt.core.prefs
      • bin
        • cls
          • Cheltuieli.class
          • Locatar.class
        • data
          • DataManager.class
        • gui
          • BlocWindow$1.class
          • BlocWindow$ButoaneListener.class
          • BlocWindow.class
        • run
          • Main.class
      • src
        • cls
          • Cheltuieli.java
          • Locatar.java
        • data
          • DataManager.java
        • gui
          • BlocWindow.java
        • run
          • Main.java
      • .classpath
      • .project
      • .settings
      • cheltuieli.txt
      • Lab5.txt
      • locatari.txt
      • P4.txt
  • L6
    • L6_beans
      • build
        • classes
          • cls
            • Curs.class
            • Rezultat.class
            • Student.class
          • data
            • DataManager.class
          • gui
            • MainWindow$1.class
            • MainWindow$2.class
            • MainWindow.class
            • SecretaraWindow$1.class
            • SecretaraWindow$2.class
            • SecretaraWindow$3.class
            • SecretaraWindow.class
            • StudentWindow$1.class
            • StudentWindow.class
          • run
            • Main.class
      • dist
        • lib
          • swing-layout-1.0.jar
        • l6.jar
        • README.TXT
      • nbproject
        • private
          • private.properties
          • private.xml
        • build-impl.xml
        • genfiles.properties
        • project.properties
        • project.xml
      • src
        • cls
          • Curs.java
          • Rezultat.java
          • Student.java
        • data
          • DataManager.java
        • gui
          • MainWindow.form
          • MainWindow.java
          • SecretaraWindow.form
          • SecretaraWindow.java
          • StudentWindow.form
          • StudentWindow.java
        • run
          • Main.java
      • build.xml
      • cursuri.txt
      • documentatie.doc
      • Lab6.txt
      • manifest.mf
      • P2.txt
      • rezultate.txt
      • studenti.txt
    • L6_eclipse
      • .settings
        • org.eclipse.jdt.core.prefs
      • bin
        • cls
          • Curs.class
          • Rezultat.class
          • Student.class
        • data
          • DataManager.class
        • gui
          • MainWindow$1.class
          • MainWindow$2.class
          • MainWindow.class
          • MainWindow.form
          • SecretaraWindow$1.class
          • SecretaraWindow$2.class
          • SecretaraWindow$3.class
          • SecretaraWindow.class
          • SecretaraWindow.form
          • StudentWindow$1.class
          • StudentWindow.class
          • StudentWindow.form
        • run
          • Main.class
      • lib
        • swing-layout-1.0.jar
      • src
        • cls
          • Curs.java
          • Rezultat.java
          • Student.java
        • data
          • DataManager.java
        • gui
          • MainWindow.form
          • MainWindow.java
          • SecretaraWindow.form
          • SecretaraWindow.java
          • StudentWindow.form
          • StudentWindow.java
        • run
          • Main.java
      • .classpath
      • .project
      • .settings
      • Lab6.txt
      • P2.txt
  • L7
    • Lab7.txt
    • Pr4.txt
  • L8
    • L8_beans
      • build
        • classes
          • cls
            • Curs.class
            • Rezultat.class
            • Student.class
          • data
            • DataManager.class
          • gui
            • MainWindow$1.class
            • MainWindow$2.class
            • MainWindow$3.class
            • MainWindow.class
            • SecretaraWindow$1.class
            • SecretaraWindow$2.class
            • SecretaraWindow$3.class
            • SecretaraWindow.class
            • StatisticaWindow.class
            • StudentWindow$1.class
            • StudentWindow.class
          • run
            • Main.class
      • dist
        • lib
          • swing-layout-1.0.jar
        • l8.jar
        • README.TXT
      • nbproject
        • private
          • private.properties
          • private.xml
        • build-impl.xml
        • genfiles.properties
        • project.properties
        • project.xml
      • src
        • cls
          • Curs.java
          • Rezultat.java
          • Student.java
        • data
          • DataManager.java
        • gui
          • MainWindow.form
          • MainWindow.java
          • SecretaraWindow.form
          • SecretaraWindow.java
          • StatisticaWindow.form
          • StatisticaWindow.java
          • StudentWindow.form
          • StudentWindow.java
        • run
          • Main.java
      • build.xml
      • cursuri.txt
      • Lab8.txt
      • manifest.mf
      • P2.txt
      • rezultate.txt
      • studenti.txt
    • L8_eclipse
      • .settings
        • org.eclipse.jdt.core.prefs
      • bin
        • cls
          • Curs.class
          • Rezultat.class
          • Student.class
        • data
          • DataManager.class
        • gui
          • MainWindow$1.class
          • MainWindow$2.class
          • MainWindow$3.class
          • MainWindow.class
          • MainWindow.form
          • SecretaraWindow$1.class
          • SecretaraWindow$2.class
          • SecretaraWindow$3.class
          • SecretaraWindow.class
          • SecretaraWindow.form
          • StatisticaWindow.class
          • StatisticaWindow.form
          • StudentWindow$1.class
          • StudentWindow.class
          • StudentWindow.form
        • run
          • Main.class
      • lib
        • swing-layout-1.0.jar
      • src
        • cls
          • Curs.java
          • Rezultat.java
          • Student.java
        • data
          • DataManager.java
        • gui
          • MainWindow.form
          • MainWindow.java
          • SecretaraWindow.form
          • SecretaraWindow.java
          • StatisticaWindow.form
          • StatisticaWindow.java
          • StudentWindow.form
          • StudentWindow.java
        • run
          • Main.java
      • .classpath
      • .project
      • .settings
      • cursuri.txt
      • Lab8.txt
      • P2.txt
      • rezultate.txt
      • studenti.txt

Alții au mai descărcat și

Programare HTML

1.1 Istoric al Limbajului HTML Unul din primele elemente fundamentale ale WWW ( World Wide Web) este HTML ( Hypertext Markup Language ), care...

Proiectarea unui Sistem Informatic Privind Contabilizarea Imobilizărilor Corporale

Introducere Tranziţia ţării noastre spre economia de piaţă impune adaptări corespunzătoare în organizarea şi conducerea contabilităţii agenţilor...

Baze de Date pentru Gestionarea Activitatii unei Societati Comerciale

INTRODUCERE Plecând de la premisa clientii nostrii , stapânii nostrii m-am gândit sa fac o lucrare în care sa arat de ce clientii sunt atât de...

Sistem Marketing Bazat pe Web-Tehnologii cu Acces la Baze de Date

Introducere Multe întreprinderi utilizează baze de date electronice (BD) pentru menţinerea proceselor de lucru. Deseori sistemul informaţional...

Sistem Informatic pentru Vânzări Auto

Cap. 1. Studiul, analiza şi prezentarea sistemului actual 1.1 Rolul şi poziţia firmei in sistemul economico-social nationaţional şi in ramura de...

Practica Limbaje de Programare

1. Cooperativa de Consum Oras Gherla  veriga a sistemului cooperatist din România Cooperatia constituie o forma specifica de organizare a...

Site Prezentare - Xtremebase.Com

1 Introducere 1.1 Scurtă introducere E greu să cred că există vreun domeniu al ştiinţei şi nu numai în care calculatorul să nu îşi fi făcut...

Baze de Date - Evidenta unei Firme de Calculatoare

Gestiunea unei firme de calculatoare Despre proiect… Ideea acestui proiect mi-a fost sugerată de către d-na profesor universitar având in vedere...

Ai nevoie de altceva?