Skip to content

Instantly share code, notes, and snippets.

View princessofpain's full-sized avatar

Chilja Speransky princessofpain

View GitHub Profile
@princessofpain
princessofpain / fillArrayWithTypedMarks.java
Last active November 15, 2017 15:34
A file to type in a defined number of marks including the calculation of average, best mark, worse mark etc. The problem is to fill the array through an ActionListener of the button "btnbernehmen2".
package gui10;
import java.awt.BorderLayout;
import java.awt.Desktop.Action;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
@princessofpain
princessofpain / stringsort.java
Created September 26, 2017 14:55
a program to sort three typed strings based on their lexical position
package uebung07;
import javax.swing.JOptionPane;
public class Stringsort {
public static void main(String[] args){
String eingabe1 = JOptionPane.showInputDialog("Bitte geben Sie einen Satz ein.");
String eingabe2 = JOptionPane.showInputDialog("Bitte geben Sie einen weiteren Satz ein.");
String eingabe3 = JOptionPane.showInputDialog("Bitte geben Sie einen dritten Satz ein.");
@princessofpain
princessofpain / deleteVowels
Last active September 26, 2017 09:22
exercise in Java to delete all vowels in a typed string
package uebung07;
import javax.swing.JOptionPane;
public class Vokalloescher {
static String eingabe = JOptionPane.showInputDialog("Geben Sie einen Text ein:");
static String klein = eingabe.toLowerCase();
public static boolean istEinVokal(char ch){
switch(ch){