text
stringlengths
3
1.18M
package com.honey.mysql5; import org.java.plugin.Plugin; import org.java.plugin.PluginLifecycleException; import com.honey.configureation.ConfigurationPlugin; import com.honey.configureation.holder.JDBCConnectionHolder; import com.honey.core.Extension; import com.honey.core.utils.ObjectFactory; import com.ho...
package com.honey.mysql5; import java.util.List; import org.java.plugin.Plugin; import com.honey.core.dbmapping.ActualSchemaName; import com.honey.core.dbmapping.structure.Column; import com.honey.general.databases.extension.point.TableAllColumns; import com.honey.mysql5.introspect.Mysql5AllColumns; publ...
package com.honey.mysql5; import org.java.plugin.Plugin; import com.honey.core.dbmapping.ActualSchemaName; import com.honey.core.dbmapping.structure.Table; import com.honey.general.databases.extension.point.TableInformation; import com.honey.mysql5.introspect.MySql5SchemaInformation; public class Mysql5Tabl...
package com.honey.mysql5; import org.java.plugin.Plugin; import com.honey.core.dbmapping.ActualSchemaName; import com.honey.core.dbmapping.structure.Procedure; import com.honey.general.databases.extension.point.ProcedureInformation; import com.honey.mysql5.introspect.MySql5SchemaInformation; public class My...
package com.honey.mysql5; import java.util.List; import org.java.plugin.Plugin; import com.honey.core.dbmapping.ActualSchemaName; import com.honey.core.dbmapping.structure.Column; import com.honey.general.databases.extension.point.ProcedureParameters; import com.honey.mysql5.introspect.Mysql5AllColumns; ...
package com.honey.calculator; /** * 字符串混淆计算器 * @author Administrator * */ class ObfuscateCalculator implements StandardCalculator{ private static final char SPECIAL_SUFFIX = '_'; private static final char []ALPHABET = { 'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R',...
package com.honey.calculator; import java.util.regex.Pattern; import org.java.plugin.Plugin; import com.honey.core.Extension; import com.honey.core.calculator.MappingCalculator; import com.honey.core.utils.JavaBeansUtil; public class StandardMappingCalculator extends Extension<Plugin> implements MappingC...
package com.honey.calculator; import com.honey.core.utils.StringUtility; /** * 名称转换 * @author Administrator * */ class NameCalculator implements StandardCalculator { /** * 名称转换规则是:首字母小写,略过以特殊字符和数字开始的字符,首字母以后只略过特殊字符(字母和数字和下划线) * @param inputString * @return */ @Override public String ...
package com.honey.calculator; import org.java.plugin.Plugin; import com.honey.core.Extension; import com.honey.core.calculator.JavaNameCalculator; public class StandardJavaNameCalculator extends Extension<Plugin> implements JavaNameCalculator { public StandardJavaNameCalculator(Plugin belongPlugin) { ...
package com.honey.calculator; import org.java.plugin.Plugin; import com.honey.core.dbmapping.structure.Column; import com.honey.core.processor.ColumnProcessor; import com.honey.core.utils.StringUtility; import com.honey.general.databases.introspected.GeneralProcedureParameter; import com.honey.general.databas...
package com.honey.calculator; /** * 名称转换 * @author Administrator * */ interface StandardCalculator { public String calculator(boolean underline,String ...inputString); }
package com.honey.calculator; import java.util.Properties; import org.w3c.dom.Element; import com.honey.configureation.holder.ConfigurationHolder; import com.honey.configureation.xmlparser.ParseElement; import com.honey.core.NullPlugin; public class CalculatorPlugin extends NullPlugin implements Configur...
package com.honey.compilation.java; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; import com.honey.core.utils.StringUtility; /** * 接口类 * @author Administrator * */ public class Interf...
package com.honey.compilation.java; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.builder.CharacterBuilder; import com.honey.core.compiler.CompilationException; import com.honey.core.compiler.Ind...
package com.honey.compilation.java; /** * 可视区域块 * @author Administrator * */ public class VisibleBlock extends Block{ /* * (non-Javadoc) * @see com.honey.compilation.java.Block#endBlock(int) */ @Override public String endBlock(int indentLevel) { return "}"; } /* * (non-Java...
package com.honey.compilation.java; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.Map; import java.util.Set; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.IndentSpace; /** * 枚举类中的枚举字段...
package com.honey.compilation.java; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import java.util.TreeSet; import com.honey.core.builder.CharacterBuilder; import com.honey.core.compiler.CompilationElement; import com.hon...
package com.honey.compilation.java; import java.util.List; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; public class CompilationJavaFactory { /** * 创建接口 * * @param name ...
package com.honey.compilation.java; /** * switch语句块 * @author Administrator * */ @Deprecated public class SwitchBlock extends VisibleBlock{ private String caseValue ="0"; public SwitchBlock(){ } public SwitchBlock(String caseValue){ this.caseValue = caseValue; } @Overrid...
package com.honey.compilation.java; /** * if语句块 * @author Administrator * */ public class IfBlock extends VisibleBlock{ /** 条件语句 */ private String condition ="true"; /** * 默认构造函数 */ public IfBlock(){ } /** * 构造函数 * @param condition 条件语句 */ public IfBlock(String c...
package com.honey.compilation.java; /** * else if语句块 * @author Administrator * */ public class ElseIfBlock extends VisibleBlock{ /** 条件语句 */ private String condition ="true"; /** * 默认构造函数 */ public ElseIfBlock(){ } /** * 构造函数 * @param condition 条件语句 */ public Els...
package com.honey.compilation.java; /** * 静态块 * @author Administrator * */ public class StaticBlock extends VisibleBlock{ /* * (non-Javadoc) * @see com.honey.compilation.java.VisibleBlock#startBlock() */ @Override public String startBlock() { return "static" + super.startBlock(); } ...
package com.honey.compilation.java; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; /** ...
package com.honey.compilation.java; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.IndentSpace; import com.honey.core.type...
package com.honey.compilation.java; /** * java 关键字 * @author Administrator * */ public enum JavaKeyWord { ABSTRACT ( "abstract" , true ), ABSTRACTCLASS( "abstract class" , true ), BOOLEAN ( "boolean" , true ), BREAK ( "break" , true ), BYTE ( "byte" , true ), CASE ( "case" , true ), CATCH ...
package com.honey.compilation.java; /** * while语句块 * @author Administrator * */ public class WhileBlock extends VisibleBlock{ /** while条件语句 */ private String condition ="true"; /* * (non-Javadoc) * @see com.honey.compilation.java.VisibleBlock#startBlock() */ @Override public Str...
package com.honey.compilation.java; import com.honey.core.compiler.CompilationException; /** * * inner java 类的修饰 * * @author Administrator * */ public class InnerClassDecoration extends ClassDecoration { /** * 构造函数 */ public InnerClassDecoration(){ super(); } /** * * @p...
package com.honey.compilation.java; /** * 代码区域(普通代码) * @author Administrator * */ public class DefaultBlock extends Block { /** * 构造函数 */ public DefaultBlock() { super(); } /** * 构造函数 * @param line 代码 */ public DefaultBlock(String line) { super(); addBodyLine(line)...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.CompilationElement; import com.honey.core.compiler.IndentSpace; /** * java 修饰 .例如: 类的修饰,方法修饰,属性修饰,参数修饰 * @author Administrator * */ ...
package com.honey.compilation.java; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.util.ListIterator; import java.util.Set; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler....
package com.honey.compilation.java; import java.util.ArrayList; import java.util.List; import com.honey.core.builder.CharacterBuilder; import com.honey.core.compiler.CompilationElement; import com.honey.core.compiler.IndentSpace; import com.honey.core.utils.StringUtility; /** * java类中抽象出来的数据结构 * @aut...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.types.FullyQualifiedJavaType; import com.honey.core.types.JDKFullyQualifiedJavaType; /** * java类的 属性 * @author Administrator * */ public cl...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; /** * 参数修饰. 参数修饰只有final和动态参数两种, 其它修饰无效. * @author Administrator * */ public class ParameterDecoration extends Decoration{ /** * 默认的构造函数 */ public Pa...
package com.honey.compilation.java; /** * java的可视范围 * * @author Administrator * */ public enum JavaVisibility { /** public 可视范围 */ PUBLIC(JavaKeyWord.PUBLIC.getValue(),true), /** private 可视范围 */ PRIVATE(JavaKeyWord.PRIVATE.getValue(),true), /** protected 可视范围*/ PROTECTED(JavaKeyWord.P...
package com.honey.compilation.java; /** * 没有任何修饰规则 * @author Administrator * */ public class NullDecorationRule implements DecorationRule{ @Override public void parameterDecorationRule(Decoration decoration) { // null } @Override public void classDecorationRule(Decoration decoration) { /...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; /** * 内部类 http://www.blogjava.net/raylong1982/archive/2007/10/24/155439.html * @author Administrator * */ public...
package com.honey.compilation.java; /** * 同步块 * @author Administrator * */ public class SynchronizedBlock extends VisibleBlock{ /** 互斥对象,默认使用对象自己 */ private String mutex ="this"; /* * (non-Javadoc) * @see com.honey.compilation.java.VisibleBlock#startBlock() */ @Override public St...
package com.honey.compilation.java; /** * else 语句块 * @author Administrator * */ public class ElseBlock extends VisibleBlock{ /** * 默认构造函数 */ public ElseBlock(){ } @Override public String startBlock() { return "else" + super.startBlock(); } }
package com.honey.compilation.java; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; /** * 虚类 * @author Administrator */ public class AbstractClass extends Clazz { /** * 构造函数 * @p...
package com.honey.compilation.java; /** * 修饰规则 * @author Administrator * */ public interface DecorationRule { /** * 类的修饰规则 * @param decoration */ void classDecorationRule( Decoration decoration); /** * field 修饰规则 * @param decoration */ void fieldDecorationRule( Decoration d...
package com.honey.compilation.java; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; /** ...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; /** * java 属性修饰 * * @author Administrator * */ public class FieldDecoration extends Decoration { /** * 默认的构造函数 */ public FieldDecoration(){ super(JavaVisibility.PRIVATE ); } /** * 构造函数 ...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.CompilationException; import com.honey.core.compiler.IndentSpace; /** * * inner java 类的修饰 * * @author Administrator * */ publi...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.IndentSpace; /** * 方法修饰 * @author Administrator * */ public class MethodDecoration extends Decoration{ /** * 默认的构造函数 */ ...
package com.honey.compilation.java; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.IndentSpace; import com.honey.core.utils.StringUtility; ...
package com.honey.compilation.java; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.types.FullyQualifiedJavaType; /** * 方法传入参数 * @author Administrator * */ public class Parameter extends JavaElement { /** 参数名称 */ p...
package com.honey.compilation.java; import java.util.List; import java.util.Set; import com.honey.core.compiler.Compilation; import com.honey.core.compiler.CompilationException; import com.honey.core.types.FullyQualifiedJavaType; /** * java 类文件编译接口 * @author Administrator * */ public interface Java...
package com.honey.compilation.java; import java.util.List; import java.util.Set; import java.util.TreeSet; import com.honey.core.builder.CharacterBuilder; import com.honey.core.compiler.CompilationException; import com.honey.core.compiler.IndentSpace; import com.honey.core.types.FullyQualifiedJavaType; ...
package com.honey.compilation.java; import java.util.Random; import com.honey.compilation.java.ClassDecoration.JavaType; import com.honey.core.builder.CharacterBuilder; import com.honey.core.builder.CharacterBuilderFactory; import com.honey.core.compiler.CompilationException; import com.honey.core.compiler....
package com.honey.compilation.java; import com.honey.core.compiler.CompilationException; public class testMethodDecoration extends BaseTestCase{ public void test0() throws CompilationException{ MethodDecoration d = new MethodDecoration(); int indentLevel=0 ; String s =d.compiledContent(indentLeve...
package com.honey.compilation.java; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.URI; import java.net.URL; import java.net.URLClassLoader; import java.util.Arrays; import javax.tools.JavaCompiler; import javax.tools.JavaFileObject; import javax.tools.Si...
package com.honey.compilation.java; import com.honey.core.compiler.CompilationException; public class testFieldDecoration extends BaseTestCase{ public void test0() throws CompilationException{ FieldDecoration d = new FieldDecoration(JavaVisibility.PRIVATE); int indentLevel = 0 ; String s = d.co...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
package org.java.plugin.boot; import java.util.Properties; import org.java.plugin.util.ExtendedProperties; public class AdvanceExtendedProperties extends ExtendedProperties{ /** * @see java.util.Properties#Properties() */ public AdvanceExtendedProperties() { super(); } ...
// This class originally taken from // http://www.randelshofer.ch/oop/javasplash/javasplash.html /* * @(#)SplashWindow.java 2.2 2005-04-03 * * Copyright (c) 2003-2005 Werner Randelshofer * Staldenmattweg 2, Immensee, CH-6405, Switzerland. * All rights reserved. * * This software is in the public domai...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2006-2007 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/***************************************************************************** * Java Plug-in Framework (JPF) * Copyright (C) 2004-2005 Dmitry Olshansky * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; /** * * @author Eric */ public class XBox { static int X=1,Y=2,A=3,B=4; }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.ADXL345_I2C; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.RobotDrive; import ed...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.Talon; import edu.wpi.first.wpilibj.Encod...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.Solenoid; impo...
/* * 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 edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.Joystick; import edu.wpi....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test_cv; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.net.UnknownHostException; import java.util.lo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test_cv; import java.io.*; import java.net.*; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author acappon */ public class Main { /** * @param args the command line argu...
/* * 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 test_cv; /** * * @author Jesse Lozano */ public class JTargetInfo { double ballRadiusNear; double ballRadiusFar; double d...
/* public class GoalieMode { double angleBlue; double angleRed; double distance; boolean redButton; boolean blueButton; JTargetInfo object; MecanumDrive move; double distanceConstant; double angleConstant; public void GoalieMode() { move = new Mecanum...
/* * 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 otto; /** * * @author Jesse Lozano */ public class Otto { /** * @param args the command line arguments */ ...
/* * 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 otto; /** * * @author Jesse Lozano */ public class JTargetInfo { double ballRadiusNear; double ballRadiusFar; double dist...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * * @author User */ public class SonarDriver { public static void main() { String x = "Inches"...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Ultrasonic; public class MainClass { public static int pingchan; public static int echochan; public static Ultrasonic sonar; public MainClass( int a, int b ) { pingchan = a; echochan = b; } pub...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.Ultrasonic; /** * * @author Eric */ public class SonarSensor { static int distancetrack=0; stat...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.DigitalOutput; /** * * @author Dean Fitzpatrick */ public class RobotLED { DigitalOutput imput1; static int digitalchan; public RobotLED(int...
import javax.swing.*; public class OddEven { public static void main(String[] args) { int number; number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " )); OddNumber ( number ); EvenNumber ( number ); } ...
import javax.swing.*; public class HelloWorld { public static void main(String[] args) { JOptionPane.showMessageDialog( null, "Hello World!" ); } }
import javax.swing.*; public class UserInput { public static void main(String[] args) { String num = ""; num = JOptionPane.showInputDialog(null, "Please enter your name:" ); JOptionPane.showMessageDialog(null, "Hi " + num + "!"); } }
import javax.swing.*; public class HelloWorld { public static void main(String[] args) { int number; number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " )); if ( number % 2 == 1 ) { JOptionPane.showMessageDialo...
import java.util.Random; class sortArray { private int[] myArray; public sortArray() { System.out.println("Default Order:"); Random digit = new Random(); myArray = new int [10]; for ( int counter = 0 ; counter < 10 ; counter++ ) { myArray[counter] = 1 + digit.nextInt(10); } printEleme...
class myArrayList { private int[] myArray; private int size; public myArrayList( int value, int seed, int increment ) { myArray = new int [value]; size = value; for ( int counter = 0 ; counter < size ; counter++ ) { ...
import java.util.Scanner; class CalcLib { int x; int y; public CalcLib( int num1, int num2 ) { x = num1; y = num2; } public int addNumber() { return x + y; } public int subtractNumber() { ...
package cs4295asg2.stockfinder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientPr...
package cs4295asg2.stockfinder; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; imp...
package cs4295asg2.stockfinder; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import or...
package cs4295asg2.stockfinder; import java.io.Serializable; import java.text.DecimalFormat; public class StockTarget implements Serializable { private String number; private double targetPrice; private double currentPrice; private DecimalFormat df; public StockTarget(){ super()...
package cs4295asg2.stockfinder; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.AsyncTask; import a...
public class HelloWorld { public static void main(String[] orgs) { int x; } }
import javax.swing.*; public class UserInput { public static void main(String[] args) { String num = ""; //String paul=""; //String sum=""; num = JOptionPane. showInputDialog(null, "Please enter your name:"); JOptionPane.showMessageDialog(null,"Hello " +num); /*if(num == null){ JOpti...