text stringlengths 10 2.72M |
|---|
package main;
import main.zad2.TestSuite2_ExceptionTest;
import main.zad3.TestSuite3;
import main.zad4.TestSuite4;
import main.zad5.TestSuite5;
import org.junit.runner.RunWith;
import main.zad1.TestSuit1;
import main.zad2.TestSuite2;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
... |
package com.github.ezauton.core.pathplanning.purepursuit;
import com.github.ezauton.core.pathplanning.PP_PathGenerator;
import com.github.ezauton.core.trajectory.geometry.ImmutableVector;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Waypoint used in Pure Pursuit which includ... |
package com.rcwang.seal.fetch;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileRead... |
package org.github.chajian.matchgame.board;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.scoreboard.DisplaySlot;
import org.bukkit.scoreboard.Objective;
import org.bukkit.scoreboard.Score;
import org.github.chajian.matchgame.MatchGame;
import org.github.chajian.matchgame.data... |
package com.rahul.splitwise.service;
import com.rahul.splitwise.exception.GroupNotFound;
import com.rahul.splitwise.exception.UserNotFound;
import com.rahul.splitwise.model.GroupUserMapping;
import com.rahul.splitwise.repository.GroupDao;
import com.rahul.splitwise.repository.GroupUserMappingDao;
import com.rahul.spli... |
package com.example.demojpush.controller;
import com.example.demojpush.config.JPushConfig;
import com.example.demojpush.entity.PushBean;
import com.example.demojpush.service.MyJPushService;
import com.sun.org.apache.bcel.internal.generic.PUSH;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... |
package ninja.farhood.exercises.shapes;
public class Triangle extends Shape {
@Override
public double calculateArea() {
return 0;
}
@Override
public double calculatePerimeter() {
return 0;
}
}
|
package algorithms.dynamic_programming.knapsack;
public class CountOfSubsetSum {
public int countSubsetsMemoization(int[] num, int sum) {
return countSubsetsMemoization(num, new Integer[num.length][sum+1], sum, num.length-1);
}
private int countSubsetsMemoization(int[] num, Integer[][] memo, int s... |
class URLify {
public static String urlify(String s, int len) {
char[] a = new char[s.length()];
int p = s.length() - 1;
for (int i = len - 1; i >=0; i--) {
if (s.charAt(i) == ' ') {
a[p] = '0';
a[p-1] = '2';
a[p-2... |
package pl.sda.spring.decouplinginterface;
public class Child {
public String getName(){
return "My name is...";
}
}
|
package shape;
import java.awt.Polygon;
import main.GConstants;
public class GTriangle extends GPolygon {
private static final long serialVersionUID = GConstants.serialVersionUID;
public GTriangle() {
this.eDrawingStyle = EDrawingStyle.e2Points;
this.shape = new Polygon();
}
@Override
pu... |
package MutuallyExclusiveThreads;
public class P {
static int pressureGuage = 0;
static final int safetyLimit = 20;
public static void main(String[] args)
{
Pressure[] P1 = new Pressure [10];
for(int i=0; i<10; i++)
{
P1[i] = new Pressure();
P1[i].start();
}
try
{
for(int i=0; i<10; i++)
P... |
/**
* Javassonne
* http://code.google.com/p/javassonne/
*
* @author [Add Name Here]
* @date Jan 25, 2009
*
* Copyright 2009 Javassonne Team
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of th... |
package String;
public class Strempty {
public static void main(String[] args) {
//System.out.println( S1.isEmpty());
//System.out.println( S2.isEmpty());
String S1 =" ";
String S2 ="Nidarsana";
if(S1.length()== 0 || S1.isEmpty())
System.out.println(" S1 is Empty");
else Sy... |
package com.subrata.androidanimation;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView... |
package com.elvarg.world.content;
import java.util.ArrayList;
import java.util.List;
import com.elvarg.GameConstants;
import com.elvarg.definitions.ItemDefinition;
import com.elvarg.engine.task.Task;
import com.elvarg.engine.task.TaskManager;
import com.elvarg.util.Misc;
import com.elvarg.world.entity.impl.player.Pla... |
package phoneBook;
import exceptions.InvalidContactNameException;
import exceptions.InvalidCountryCodeException;
import exceptions.InvalidPhoneNumberException;
import exceptions.PhoneManagerException;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.JSONValue;
import java.io... |
package com.app.exception;
public class Test2 {
public static void main(String[] args) {
/*ArrayIndexOutofBoundsException
int x[] = new int[10];
System.out.println(x[9]);
//System.out.println(x[15]);
System.out.println(x[-15]);*/
/*NullPointerException
String s = null;
System.out.println(s.l... |
package es.davidcampos.yep;
/**
* Created by David on 26/07/2015.
*/
public class ParseConstants {
public static final String KEY_USERNAME = "username";
public static final int MAX_USERS = 1000;
public static final String KEY_FRIENDS_RELATION = "friendsRelation";
public static final String CLASE_ME... |
package chapter12.Exercise12_03;
import java.util.Scanner;
public class Exercise12_03 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] list = new int[100];
for (int i = 0; i < list.length; i++) {
list[i] = (int) (Math.random() * 100);
}
try {
Syst... |
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
i... |
package JavaSessions;
public class StringConcatenation {
public static void main(String[] args) {
double d=12.33;
double d1=23.33;
int a=100;
int b=200;
String x="Hello";
String y="Testing";
System.out.println(d+d1);
System.out.println(a+b);
System.out.println(x+y);
... |
package com.capgemini.service;
import java.util.Date;
import java.util.List;
import com.capgemini.exceptions.NoSuchParkingSlotException;
import com.capgemini.exceptions.ParkingSlotNotAvailableException;
import com.capgemini.model.ParkingFloor;
import com.capgemini.model.ParkingPremise;
import com.capgemini.m... |
package mt.dou;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* @author Andrey Lomakin <a href="mai... |
package com.example.demo.core.systems;
import com.example.demo.core.components.Cabinet;
import com.example.demo.core.components.Motherboard;
import com.example.demo.core.components.PSU;
import lombok.Getter;
@Getter
public class Tower {
private Motherboard motherboard;
private Cabinet cabinet;
private PSU... |
package com.zking.ssm.mapper;
import com.zking.ssm.model.SysPermisson;
public interface SysPermissonMapper {
int deleteByPrimaryKey(Integer perid);
int insert(SysPermisson record);
int insertSelective(SysPermisson record);
SysPermisson selectByPrimaryKey(Integer perid);
int updateByPrimaryKeyS... |
/*
* 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 Ejercicio3_17;
import java.util.Scanner;
/**
*
* @author leonardo
*/
public class PruebaPerfilMedico {
public static v... |
package enthu_leitner;
public class e_1199 {
public static int getSwitch(String str) {
return (int) Math.round(Double.parseDouble(str.substring(1, str.length() - 1)));
}
public static void main(String args[]) {
switch (getSwitch(args[0])) {
case 0:
System.out.print("Hello ");
case 1:
System.out.print... |
package pl.edu.pw.mini.gapso.function;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
public class FunctionTest {
@Test
public void isTargetReached() {
FunctionWhiteBox functionFullSquare = new ConvexSquareFunction();
FunctionWhiteBox functionSeparableSquare = new C... |
package game;
import game.cards.Card;
import java.util.ArrayList;
import serverPart.Gamer;
public class Player {
private boolean activated;
private Gamer gamer;
private ArrayList<Card> myCards;
public Player(Gamer gamer) {
super();
this.gamer = gamer;
this.activated = false;
}
public void activate() ... |
package com.mysql.cj.jdbc.ha;
import com.mysql.cj.Messages;
import com.mysql.cj.jdbc.ConnectionImpl;
import com.mysql.cj.jdbc.JdbcConnection;
import com.mysql.cj.jdbc.exceptions.SQLError;
import java.lang.reflect.InvocationHandler;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
imp... |
package com.hx.utils;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
/**
* @program: eqds-ms
* @description:
* @author: yangyue
* @create: 2019/12/21 14:19
*/
public class DbUtil {
public static Connection getConnection(String dbpath, St... |
package com.sabre.api.sacs.soap.interceptor;
import javax.xml.bind.JAXBException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.s... |
package com.duanxr.yith.midium;
/**
* @author 段然 2021/9/10
*/
public class SearchInRotatedSortedArray {
/**
* There is an integer array nums sorted in ascending order (with distinct values).
*
* Prior to being passed to your function, nums is rotated at an unknown pivot index k (0 <= k < nums.length) suc... |
package br.senai.sp.informatica.meusalbuns.control;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayo... |
package com.stryksta.swtorcentral.models;
public class CodexItem {
public int cdxID;
public String cdxTitle;
public String cdxDescription;
public String cdxCategory;
public String cdxLevel;
public String cdxImage;
public String cdxFaction;
public String cdxIsPlanetCodex;
public Stri... |
package lintcode;
import java.util.Comparator;
import java.util.PriorityQueue;
/**
* @Author: Mr.M
* @Date: 2019-06-04 10:25
* @Description:
**/
public class T461无序数组K小元素 {
public static int kthSmallest(int k, int[] nums) {
// write your code here
PriorityQueue<Integer> priorityQueue = new PriorityQueue<>(ne... |
package pl.edu.amu.datasupplier.resource;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
public abstract class AbstractController {
private final ModelMapper mode... |
package MasterMind;
import MasterMind.AI.AI;
import MasterMind.GUI.GUI;
import MasterMind.GUI.PegResultsPanel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.concurrent.ForkJoinPool;
/**
* This class controls the interactions betwee... |
package com.takshine.wxcrm.service;
import java.util.List;
import com.takshine.wxcrm.base.services.EntityService;
import com.takshine.wxcrm.domain.AccessLogs;
import com.takshine.wxcrm.message.sugar.AccesslogResp;
/**
* 访问日志接口
* @author liulin
*
*/
public interface AccessLogsService extends EntityService{
/**... |
package enthu_leitner;
public class e_1212 {
public static void main(String[] args) {
String a = "java";
char[] b = { 'j', 'a', 'v', 'a' };
String c = new String(b);
String d = a;
System.out.println(a == d);
System.out.println(b == d);
System.out.println(a == "java");
System.out.println(a.equals(c))... |
package org.anasis;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import scala.Tuple2;
public class LinkPr... |
package initializations;
/**
*
* @Ioanna Kyriazidou
*/
import twitter4j.conf.ConfigurationBuilder;
public final class InitializeTwitter {
private static final String ACCESS_TOKEN = "2999643856-jZxniwexoSq6af0NX3aHnKLITvQufIkA9ArLGfY";
private static final String ACCESS_TOKEN_SECRET = "jEcVM5S... |
/**
* Copyright (c) 2016 - 2018 Syncleus, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
package com.test.webui.controller;
import com.test.data.domain.Actor;
import com.test.data.repositories.ActorRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.d... |
package com.smartup.manageorderapplication.services.impl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.smartup.manageorderapplication.dto.ProductDto;
import com.smartup.manageorderapplication.entities.Product;
import com.smartup.manageorder... |
package cn.com.ykse.santa.service.impl;
import cn.com.ykse.santa.repository.dao.*;
import cn.com.ykse.santa.repository.entity.FileDO;
import cn.com.ykse.santa.repository.entity.RequirementDO;
import cn.com.ykse.santa.repository.entity.RequirementDemandCfgDO;
import cn.com.ykse.santa.repository.entity.RequirementFileCf... |
package org.motechproject.server.model.db.hibernate.rct;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.classic.Session;
import org.hibernate.criterion.Restrictions;
import org.motechproject.server.model.db.RctDAO;
import org.motechproject.server.model.rct.PhoneOwnershipType;
... |
package main;
/**
* @author KOUASSI Yves Anselme Magloire
* @version 13/01/2018
*/
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
/**
* Cette classe correspond a un Compte distant. Elle permet aux clients
* d'effectuer un depot , un retrait, ou consulter leur solde.
* Elle implement... |
package com.tencent.mm.plugin.appbrand.task;
import android.os.Parcel;
import android.os.Parcelable.Creator;
class AppBrandRemoteTaskController$2 implements Creator<AppBrandRemoteTaskController> {
AppBrandRemoteTaskController$2() {
}
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
... |
package com.kh.runLearn.board.model.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
imp... |
package com.cn.my.service;
import com.cn.my.bean.User;
import java.util.Map;
public interface IUserService {
public Map<String, Object> findAllUser(int page,int rows,User user);
public void insertUser(User user);
public User findUserbyUsername(String username);
public int isExistUser(User user);
... |
package com.ccxia.cbcraft.item;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.ccxia.cbcraft.CbCraft;
import com.ccxia.cbcraft.creativetab.CreativeTabsCbCraft;
import net.minecraft.advancements.CriteriaTriggers;
import net.minecraft.entity.EntityLivingBase;
import net.minecr... |
package com.tencent.mm.ui.chatting;
import android.graphics.Color;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageView;
import com.tencent.mm.plugin.game.... |
package tech.chazwarp923.unifieditems.crafting;
import java.util.Map;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import tech.chazwarp923.unifieditems.item.UIItemIngot;
import tech.chazwarp923.unifieditems.item.UIItems;
import tech.chazwarp923.unifieditems.material.Material;
import ... |
package pl.kfeed.gallerywithmusicplayer.ui.gallery.adapter;
import android.content.Context;
import android.database.Cursor;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageVie... |
package com.czm.cloudocr.model;
public class HistoryResult {
private String id;
private String imgText;
private String date;
private String imgPath;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getImgText() {
... |
/*
* [y] hybris Platform
*
* Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
*
* This software is the confidential and proprietary information of SAP
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the ter... |
package com.rectus29.nimmt.entities;
import com.rectus29.nimmt.report.SceneReport;
import com.sun.istack.internal.NotNull;
public class CardPayLoad extends PayLoad implements Comparable<CardPayLoad>{
private Card card;
public CardPayLoad(@NotNull Player player, @NotNull Card card) {
super(player);
... |
package app.rule;
public interface Rule <T> {
/**
* @param data element that should be tested
* @return factor of factor of similarity data with something, 0 means elements are completely different, 1 is equal
*/
double test(T data);
}
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package it.polimi.ingsw.GC_21.CONTROLLER;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
im... |
public class IncrementDecrement2 {
public static void main(String[] args) {
int i = 0;
int number = 0;
number = i++; // 相当于number = i; i = i + 1;
System.out.println(number);
number = i--; // 相当于 number = i; i = i - 1;
System.out.println(number);
}
}
|
package Flonx8;
/**
* @Auther:Flonx
* @Date:2021/1/11 - 01 - 11 - 20:23
* @Description: Flonx8
* @Version: 1.0
*/
public class Test {
public static void main(String[] args) {
// create a Student class
Student stu1 = new Student();
stu1.setName("nana");
stu1.setAge(19);
s... |
/**
*
*/
package alg.code123;
/**
* <a href=
* "http://www.code123.cc/749.html">题目:写一个函数处理一个MxN的矩阵,如果矩阵中某个元素为0,那么把它所在的行和列都置为0.</a>
*
* @title MatrixSetZero
*/
public class MatrixSetZero {
public void setZero(int[][] a, int n, int m) {
}
}
|
/*
* @version 1.0
* @author PSE group
*/
package kit.edu.pse.goapp.server.converter.daos;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
import kit.edu.pse.goapp.server.daos.GPS_DAO;
import kit.edu.pse.goapp.server.daos.GpsDaoImpl;
import kit.edu.pse.goapp.server.datamodel... |
package com.app.servletcontext;
import java.io.IOException;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet... |
package com.weixin.dto.message.resp;
import com.weixin.dto.message.Image;
/**
* Created by White on 2017/2/27.
*/
public class RespImageMessage extends RespBaseMessage {
private Image Image;
public com.weixin.dto.message.Image getImage() {
return Image;
}
public void setImage(com.weixin.dt... |
package com.gmail.ivanytskyy.vitaliy.repository.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import com.gmail.ivanytskyy.vitaliy.model.Group;
import com.gmail.ivanytskyy.vitaliy.repository.GroupReposit... |
package net.youzule.javase.concurrency.chapter05.app2;
import org.junit.Test;
public class AppTest {
@Test
public void test1(){
String idNumber = "410881199209055571";
String idNumber1 = idNumber.substring(0,14)+"****";
System.out.println(idNumber1);
}
}
|
package com.qq.wx.voice.embed.recognizer;
public final class d {
public String bgn;
public String bgo;
public String bgp;
public String bgq;
public String bgr;
public String userName;
public d(String str, String str2, String str3) {
this.userName = str;
this.bgn = str2;
... |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Main
*/
public class Main {
public static void main(String[] args) {
Theater theater = new Theater("AMC", 8, 12);
// List<Theater.Seat> seatCopy = new ArrayList<>(theater.seats);
// printList(seatCopy)... |
public class BuildArrayFromPermutation {
public static int[] buildArray(int[] nums) {
int[] res = new int[nums.length];
for (int i = 0;i< nums.length;i++){
res[i] = nums[nums[i]];
}
return res;
}
public static void main(String[] args) {
int[] nums = {5,0,... |
package com.usnschool;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class DBConnector {
private static DB... |
package com.tencent.mm.plugin.walletlock.gesture.ui;
import android.widget.Toast;
import com.tencent.mm.ab.b;
import com.tencent.mm.ab.l;
import com.tencent.mm.ab.v.a;
import com.tencent.mm.plugin.walletlock.a$g;
class GestureGuardLogicUI$23 implements a {
final /* synthetic */ GestureGuardLogicUI pHr;
Gestu... |
package com.webcloud.func.template.adapter;
import java.util.List;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.nostr... |
package com.bytedance.ies.bullet.kit.rn.internal.wrapper;
import android.view.View;
import com.facebook.react.uimanager.ReactStylesDiffMap;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.uimanager.ViewManagerPropertyUpdater;
import java.util.Map;
public class ViewGroupManagerWrappe... |
package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.network.INetHandler;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerP... |
public class TestB {
public static void main(String[] args) {
Student s=new Student();
Student a=new Student();
a.age=23;
a.height=6.0;
a.name="Mayank";
a.Display();
s.Walk();
}
}
|
package project;
import java.util.Random;
public class Employee {
private double performance;
private double wage;
private static Random rand = new Random();
public Employee() {
// Performance in between 1 and 2 ???
this.performance = 1 + rand.nextDouble();
this.wage = 9.5;
}
public do... |
package com.nexon;
public interface IGame {
void getRockScissorsPaper();
void playGame();
} |
package com.sneaker.mall.api.api.saleman;
import com.google.common.base.Strings;
import com.sneaker.mall.api.exception.ParameterException;
import com.sneaker.mall.api.exception.SessionException;
import com.sneaker.mall.api.model.Market;
import com.sneaker.mall.api.model.ResponseMessage;
import com.sneaker.mall.api.ser... |
package org.Chapter8.metaq;
import org.apache.rocketmq.client.consumer.DefaultMQPushConsumer;
import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus;
import org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently;
import org.apache.rocketmq.client.exception.MQClientException;
im... |
/*
* [y] hybris Platform
*
* Copyright (c) 2000-2016 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... |
package de.raidcraft.skillsandeffects.pvp.skills.movement;
import com.sk89q.minecraft.util.commands.CommandContext;
import de.raidcraft.skills.api.combat.EffectType;
import de.raidcraft.skills.api.exceptions.CombatException;
import de.raidcraft.skills.api.hero.Hero;
import de.raidcraft.skills.api.persistance.SkillProp... |
package br.eti.ns.nssuite.requisicoes.cte;
import br.eti.ns.nssuite.requisicoes._genericos.DownloadReq;
public class DownloadReqCTe extends DownloadReq {
public String chCTe;
public String CNPJ;
}
|
package bai_tap;
import java.util.ArrayList;
public class InsertionSort {
public static void main(String[] args) {
ArrayList<Integer> arr = new ArrayList<>();
arr.add(4);
arr.add(3);
arr.add(2);
arr.add(10);
arr.add(1);
arr.add(5);
arr.add(6);
... |
package com.xp.template.framework.utils;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.xp.template.framework.R;
import com.xp.template.framework.config.XPConfig;
/**
* describe
* date 2018/5/15
* a... |
/**
* Spring Framework configuration files.
*/
package com.staj.proje.config;
|
package javaBean;
public class Image {
private String id="";
private String fileName="";
private String fileClass="";
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getFileName() {
return fileName;
}
... |
package com.worldchip.advertising.client.entity;
public class Caption {
private String fgcolor;
private String bgcolor;
private float size;
private String speed;
private boolean isShow;
private int showLocation;
private int transparency;
public String getFgcolor() {
return fgcolor;
}
public void setFgco... |
package com.finix.manager.impl;
import java.util.HashMap;
import java.util.Map;
import com.finix.bean.BillingDetailsBean;
import com.finix.bean.TemplateBean;
import com.finix.bean.TheaterOwnerBean;
import com.finix.bean.UserBean;
import com.finix.dao.IUserDao;
import com.finix.dao.impl.UserDaoImpl;
import com.finix.m... |
package cn.droidlover.xdroid.demo.ui;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.view.View;
import android.widget.TextView;
import cn.droidlo... |
package com.tencent.mm.plugin.account.bind.ui;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.account.a.a.a;
class MobileFriendUI$6 implements OnClickListener {
final /* synthetic */ MobileFriendUI eIS;
... |
package com.yida.design.responsibility.generator;
/**
*********************
* 定义一个请求和处理等级
*
* @author yangke
* @version 1.0
* @created 2018年5月12日 下午3:36:11
***********************
*/
public class Level {
}
|
package com.tsm.template.security;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tsm.template.model.User;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authenticatio... |
package com.module.model.entity;
import com.module.xml.adapters.LocalDateAdapter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.time.LocalDate;
import java.util.UUI... |
package com.hqb.patshop.mbg.dao;
import com.hqb.patshop.mbg.model.PmsProductCategory;
public interface PmsProductCategoryDao {
int deleteByPrimaryKey(Long id);
int insert(PmsProductCategory record);
int insertSelective(PmsProductCategory record);
PmsProductCategory selectByPrimaryKey(Long id);
... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
package com.asiainfo.dubbo.merge;
import java.util.List;
/**
* @Description: Merge 业务接口
*
* @author chenzq
* @date 2019年5月1日 下午6:42:24
* @version V1.0
* @Copyright: Copyright(c) 2019 jaesonchen.com Inc. All rights reserved.
*/
public interface MenuService {
List<String> getMenu();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.