text stringlengths 10 2.72M |
|---|
package com.pine.template.demo.old.eventbus;
/**
* Created by tanghongfeng on 2017/8/10.
*/
public class EventTwo {
private String mMsg;
public EventTwo() {
mMsg = "empty msg";
}
public EventTwo(String msg) {
mMsg = msg;
}
public String getMsg() {
return mMsg;
... |
package ir.ssatari.springcommons.util.provider;
import lombok.extern.slf4j.Slf4j;
import org.jboss.vfs.VirtualFile;
import javax.annotation.PostConstruct;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.*;
@Slf4j
public class Er... |
package com.ccxia.cbcraft.tileentity;
import java.util.ArrayList;
import java.util.List;
import com.ccxia.cbcraft.block.BlockFermentationBaker;
import com.ccxia.cbcraft.block.BlockSeparator;
import com.ccxia.cbcraft.tileentity.crafting.CraftingSeparator;
import net.minecraft.block.Block;
import net.minecraft.block.m... |
package org.xgame.commons.generator;
import java.util.concurrent.atomic.AtomicLong;
/**
* @Company: 深圳市烈焰时代科技有限公司
* @Product: flame-gxnjy
* @File: com.flame.game.core.aacommon.generate.TempLongIDGen.java
* @Description: 临时的longID 生成器,从1开始自增,每次服务器重启之后从新开始,
* 不能用于需要在服务器重启之后还需要维持的Id, 需要的话请使用另外一个 LongIDGen
* @Cre... |
package com.kingtime.freeweather.ui;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import com.kingtime.freeweather.R;
import com.kingtime.freeweather.api.ApiClient;
import com.kingtime.freeweather.app.WeatherApplication;
import com.kingtime.freeweather.entity.BaseLocation;
import com.... |
package removeadjcent;
public class Solution {
public String deDup(String input) {
// Write your solution here.
if(input == null|| input.length() == 0){
return null;
}
char [] array = input.toCharArray();
//char [] p = input.toCharArray();
int slow = 0;
//!!!array[fa... |
package sevenkyu.complementarydna;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class ComplementaryDna {
static final Map<Character, Character> COMPLEMENTS = Map.of('T', 'A', 'A', 'T', 'G', 'C', 'C', 'G');
public String makeComplement(String dna) {
... |
package com.example.demo317;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Log;
import android.widget.ImageView;
//import org.json.JSONObject;
import net.sf.json.JSONObject;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.ByteArrayOutputS... |
package com.goodhealth.comm.util.redis;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.connection.RedisStringCommands;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.StringRedis... |
package bootcamp.testng;
import org.testng.Assert;
import org.testng.annotations.Test;
public class AlwaysRun {
@Test
public void login() {
System.out.println("Perform login operation");
Assert.assertTrue(false);
}
@Test(alwaysRun = true)
public void verifyHomePage() {
System.out.println("Verify text on h... |
package com.jim.multipos.ui.vendor_products_view.di;
import android.support.v7.app.AppCompatActivity;
import com.jim.multipos.config.scope.PerActivity;
import com.jim.multipos.config.scope.PerFragment;
import com.jim.multipos.core.BaseActivityModule;
import com.jim.multipos.ui.reports.order_history.OrderHistoryFragme... |
package com.设计模式.责任链模式;
/**
* 责任链模式
* Support为问题解决类,自己能解决的就解决了,否则丢给下一个人解决
* 接收问题--->解决前N个问题--->解决奇数问题--->解决前M个问题
* @author wicks
*
*/
public class Main {
public static void main(String[] args) {
Support alice = new NoSupport("Alice");
Support bob = new LimitSupport("Bob", 10... |
package com.jlgproject.model;
import com.jlgproject.model.newDebt.DebtRelation3Vo;
import com.jlgproject.model.newDebt.DebtRelation4Vo;
import java.io.Serializable;
import java.util.List;
/**
* @author 王锋 on 2017/6/6.
*/
public class DebtRelationVo implements Serializable {
private DebtRelation1Vo debtRelati... |
package com.dmitry.authentication.repositories;
import com.dmitry.authentication.models.entities.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends CrudRepository<User, Long> {
User findByEmail(Str... |
package com.bnr.android.criminalintent;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import android.app.Activity;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragme... |
package com.bw.movie.mvp.model.bean;
/**
* 作者:轻 on 2018/11/22 15:26
* <p>
* 邮箱:379996854@qq.com
*/
public class IndentBean {
/**
* orderId : 20180807084055347
* message : 下单成功
* status : 0000
*/
private String orderId;
private String message;
private String status;
publi... |
package com.smxknife.graphql.ex2.component;
import com.smxknife.graphql.ex2.service.UserService;
import graphql.Scalars;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLOutputType;
import graphql.schema.GraphQLSchema;
import org.springframework.... |
package com.xiaolu.servlet;
import java.io.BufferedReader;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import... |
package oop.snakegame.cells;
import oop.snakegame.Field;
import oop.snakegame.IVisitor;
import oop.snakegame.Level;
import oop.snakegame.primitives.Location;
public class TemporaryBonus extends ActiveBonus {
private int startTime;
private int timeToLive;
public TemporaryBonus(Location location, int time... |
package com.estilox.application.security;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider... |
package com.shubh.javaworld;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class RoundSum {
public List<Integer> roundSum(List<Double> nums) {
List<Integer> roundedNum... |
package com.vilio.bps.commonMapper.pojo;
import java.io.Serializable;
import java.util.*;
import java.text.SimpleDateFormat;
import java.text.ParseException;
/**
* @实体名称 询价上载材料表
* @数表名称 BPS_INQUIRY_MATERIAL
* @开发日期 2017-06-12
* @技术服务 www.fwjava.com
*/
public class BpsInquiryMaterial implements Serializable {
... |
package com.tencent.mm.plugin.gallery.ui;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.R;
class ImagePreviewUI$22 implements OnClickListener {
final /* synthetic */ ImagePreviewUI jEa;
ImagePreviewUI$22(ImagePreviewUI imagePreviewUI) {
this.jEa = imagePrev... |
/*
* @project: (Sh)ower (R)econstructing (A)pplication for (M)obile (P)hones
* @version: ShRAMP v0.0
*
* @objective: To detect extensive air shower radiation using smartphones
* for the scientific study of ultra-high energy cosmic rays
*
* @institution: University of California, Irvine
* @de... |
package controler;
public class gestionUtilisateur {
}
|
package piefarmer.immunology.item;
import org.lwjgl.opengl.GL11;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import piefarmer.immunology.model.ModelGlider;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainerCreative;
import net.minecraft.cl... |
package arrayJava;
// How to print element in array
public class ArrayElement {
public static void main(String[] args) {
int a[] = new int [2];
a[0] =10;
a[1] = 20;
for (int b : a) // for each loop
{
System.out.println("Element= "+b);
}
}
}
|
package jp.co.tau.web7.admin.supplier.dao.mappers;
import static org.assertj.core.api.Assertions.fail;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.Spring... |
/*
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... |
/**
*
* 项目地址:
* https://github.com/apache/groovy
* 官方文档:
* http://www.groovy-lang.org/
*
*/
|
package org.example.model;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.chart.PieChart;
import org.example.DB.DBConnection;
import javax.sql.RowSet;
import javax.xml.transform.Result;
import java.sql.*;
import java.util.ArrayList;
import java.util.Date;
import... |
package Client;
import Shared.GameMap;
import Shared.Player;
import Shared.Territory;
import Utilities.ColorPrint;
public class GameClientViewer {
public void printMap(GameMap map, Player player, String style) {
for(var p: map.getPlayerMap().values()) {
if(p.getTerritories().isEmpty()) {
... |
package com.tradeshift.todo.dao;
import java.sql.SQLException;
import com.tradeshift.todo.entity.User;
public interface UserDAO {
public User getUser(String userGuid) throws SQLException;
}
|
/*
* UniTime 3.4 - 3.5 (University Timetabling Application)
* Copyright (C) 2013, UniTime LLC, and individual contributors
* as indicated by the @authors tag.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... |
package rjm.romek.awscourse.repository;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import rjm.romek.awscourse.model.Chapter;
import rjm.romek.awscourse.model.Task;
@Repository
public interface TaskRepository extends CrudReposit... |
package org.dota.steam.service;
import org.dota.model.InventoryItem;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySource;
import org... |
package com.tencent.mm.plugin.shake.c.b;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.mm.R;
import com.tencent.mm.plugin.shake.c.b.a.a;
import com.tencent.mm.sdk.platformtools.x;
class a$2 implements OnClickListener {
final /* synthetic */ a mYd;
a$2(a aVar) {
... |
package es.coritel.codington.festival.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import es.coritel.codington.festival.domain.Event;
import es.coritel.co... |
package com.jokeit.repository;
import com.jokeit.domain.Feedback;
public interface FeedbackRepository {
void save(Feedback feedback, Integer jokeId);
} |
package com.xiaoxin.urlshorter;
import com.xiaoxin.urlshorter.utils.IdWorker;
import com.xiaoxin.urlshorter.utils.NumericConvertUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBoot... |
package com.microsilver.mrcard.basicservice.dao;
import com.microsilver.mrcard.basicservice.model.FxFile;
import com.microsilver.mrcard.basicservice.model.FxFileExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface FxFileMapper {
int countByExample(FxFileExample example);
... |
package com.podarbetweenus.Activities;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.Typefa... |
package com.hqhcn.android.entity;
import java.util.Date;
public class VehInspRecord {
private Long id;
private String jlcxh;
private String kcdddh;
private String hphm;
private String jlczt;
private String hpzl;
private String jklx;
private String kskm;
private Date sj;
... |
/*!
* Copyright 2002 - 2017 Webdetails, a Pentaho company. All rights reserved.
*
* This software was developed by Webdetails and is provided under the terms
* of the Mozilla Public License, Version 2.0, or any later version. You may not use
* this file except in compliance with the license. If you need a copy of ... |
/**
* Created by daniellindeman on 10/18/15.
*/
public class AmortizedLoan extends Loan
{
public AmortizedLoan(String name, double rate, int years, double amount)
{
super(name, rate, years, amount);
}
public void calcMonthlyPayment ()
{
int lengthInMonths = length * 12;
dou... |
package it.bad_request.hackaton.certificami.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import it.bad_request.hackaton.certificami.entity.Certificazione;
public interface CertificazioneRepository extends JpaRepository<Certificazione, Long>{
}
|
package objects;
import enums.ObjectType;
public class EmptyObject extends GameObject {
public EmptyObject() {
super(ObjectType.EMPTY);
}
}
|
/**
@author Akshay Mattoo
*/
package NNClassifier.Distance;
import NNClassifier.*;
import NNClassifier.Distance.*;
import NNClassifier.VPTree.*;
import java.util.ArrayList;
/**
Implements DistanceFunction interface for Euclidean distance metric
*/
public class l2Distance implements DistanceFunction {
/... |
package com.example.face_beautification;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.util.Log;
import org.opencv.android.Utils;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.MatOfPoint;
import org.opencv.core.Scalar;
import org.opencv.imgproc.Imgpr... |
package com.tencent.mm.app.plugin;
import android.os.Bundle;
import com.tencent.mm.app.plugin.URISpanHandlerSet.BaseUriSpanHandler;
import com.tencent.mm.app.plugin.URISpanHandlerSet.a;
import com.tencent.mm.model.q;
import com.tencent.mm.plugin.account.b;
import com.tencent.mm.pluginsdk.s;
import com.tencent.mm.plugi... |
/*
* [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.tt.miniapp.msg;
import android.os.SystemClock;
import android.text.TextUtils;
import com.tt.frontendapiinterface.a;
import com.tt.frontendapiinterface.b;
import com.tt.miniapp.AppbrandApplicationImpl;
import com.tt.miniapp.util.timeline.MpTimeLineReporter;
import com.tt.miniapphost.AppBrandLogger;
... |
import java.util.ArrayList;
import java.util.List;
/**
* Create new account and check the validation
*
* @author (your name here)
* @version (version number or date here)
*/
public class Customer
{
// instance variables - replace the example below with your own
public String name;
public String passwo... |
package com.org.review;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ReviewMsApplication {
public static void main(String[] args) {
SpringApplication.run(ReviewMsApplication.class, args);
}
}
|
package com.singtel.nsb.mobile;
import org.apache.camel.opentracing.starter.CamelOpenTracing;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springfra... |
package com.tencent.matrix.resource.e;
import android.app.Activity;
import android.app.Application;
import android.app.Application.ActivityLifecycleCallbacks;
import android.content.Context;
import android.os.Bundle;
import android.os.Debug;
import com.tencent.matrix.resource.CanaryWorkerService;
import com.tencent.ma... |
package com.finix.manager.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import com.finix.bean.GovernmentUserBean;
import com.finix.bean.ScreenDetailBean;
import com.finix.bean.TemplateBean;
import com.finix.bean.TheaterDetailBean;... |
package com.tencent.mm.plugin.mmsight.model.a;
import android.graphics.Point;
import com.tencent.mm.e.b.c$a;
import com.tencent.mm.plugin.mmsight.model.f;
public interface d {
void E(Runnable runnable);
void Hr(String str);
void Hs(String str);
void O(int i, int i2, int i3);
String Xh();
... |
package org.github.chajian.matchgame.runnable;
import org.bukkit.scheduler.BukkitRunnable;
import org.github.chajian.matchgame.bar.NoteBar;
import java.util.ArrayList;
import java.util.List;
/**
* BossBar线程
* @author Chajian
*/
public class BossBarRunnable extends BukkitRunnable {
List<NoteBar>... |
package com.moon.moon_proxy.lambda;
import lombok.extern.slf4j.Slf4j;
/**
* @ClassName LambdaExpression
* @Description: TODO
* @Author zyl
* @Date 2020/12/21
* @Version V1.0
**/
@Slf4j
public class LambdaExpression {
/**
* 静态内部类
*
* @param
*/
static class LambdaStatic implements ILam... |
package com.rockSolicitors.tests;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import resources.base;
import java.io.IOException;
public class BaseTest ext... |
package Repository;
import Model.Customer;
import java.awt.*;
import java.util.List;
public interface InterfaceCustomer {
Customer save(Customer customer);
List<Customer> findAll();
void delete(Customer customer);
void edit(Customer customer);
}
|
package backtracking;
public class PrintAllPossiblePaths {
private static void printMatrix(int matrix[][], int row, int col, int i, int j, int path[], int index) {
// Add current cell to the path
path[index] = matrix[i][j];
// Reached the bottom of the matrix so we are left with
// only option to m... |
package br.com.treinarminas.academicos.operadores;
public class Ativida1 {
public static void main(String[] args) {
int tempo = 1999;
int hora = tempo / 60;
int minuto = tempo % hora;
System.out.println("Tempo: " + hora );
}
}
|
import java.util.*;
public class App {
public static void main(String[] args) {
System.out.println("3 => " + new __Solution().findTheCity(4, new int[][]{{0, 1, 3}, {1, 2, 1}, {1, 3, 4}, {2, 3, 1}}, 4));
}
}
class __Solution {
HashMap<Integer, List<int[]>> map = new HashMap<>();
HashSet[] info;... |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 law or agre... |
public class Ladder {
public static void main(String[] args) {
int x;
for(x = 0; x < 6; x++) {
if (x==1)
System.out.println("х равно единице");
else if (x==2)
System.out.println("х равно двум");
else if (x==3)
... |
package ua.lamp;
import ua.lamp.entity.Lamp;
import ua.lamp.entity.Switcher;
public class Main {
public static void main(String[] args) {
Switcher sw = new Switcher();
Lamp lamp = new Lamp();
//event subscribe
sw.setConsumer(lamp);
sw.switchOn();
sw.switchOff();
... |
package org.holoeverywhere;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
public class HoloEverywhere {
public static enum PreferenceImpl {
JSON, XML
}
/**
* When you call new activity it will be has parent activity theme
*/
public static boolean ALWAYS_US... |
package com.ibm.ive.tools.japt.memoryAreaCheck;
import com.ibm.ive.tools.japt.Logger;
import com.ibm.ive.tools.japt.reduction.ita.CreatedObject;
import com.ibm.ive.tools.japt.reduction.ita.DataMember;
import com.ibm.ive.tools.japt.reduction.ita.InstructionLocation;
import com.ibm.ive.tools.japt.reduction.ita.Mem... |
package py.com.progweb.redsanitaria.model;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Set;
@Entity
@Table(name = "medicos")
public class Medico {
@Id
@Column(name = "codmedico")
@Basic(optional = false )
@GeneratedValue(gene... |
package SwordOffer;
/**
* @author renyujie518
* @version 1.0.0
* @ClassName lastNumInQuan_62.java
* @Description
* 0, 1,···,n-1这n个数字排成一个圆圈,从数字0开始,每次从这个圆圈里删除第m个数字(删除后从下一个数字开始计数)。
* 求出这个圆圈里剩下的最后一个数字。
*
* 例如,0、1、2、3、4这5个数字组成一个圆圈,从数字0开始每次删除第3个数字,则删除的前4个数字依次是2、0、4、1,因此最后剩下的数字是3。
* “约瑟夫环” 问题,可使用 动态规划 解决
* 数学证明:
*... |
package com.tencent.mm.plugin.record.ui;
import android.app.Dialog;
class RecordMsgFileUI$13 implements Runnable {
final /* synthetic */ Dialog iYD;
final /* synthetic */ RecordMsgFileUI mtg;
RecordMsgFileUI$13(RecordMsgFileUI recordMsgFileUI, Dialog dialog) {
this.mtg = recordMsgFileUI;
... |
package com.nju.edu.cn.entity;
import javax.persistence.*;
import java.util.List;
/**
* Created by shea on 2018/9/1.
* 用户表
*/
@Entity
@Table(name = "`user`")
public class User {
@Id
@Column(name = "`user_id`")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long userId;
/**
* ... |
package com.qgbase.biz.reportSystem.domain;
import com.qgbase.common.domain.TBaseEntity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import com.qgbase.excel.annotation.Ex... |
package evm.dmc.api.model;
public enum FrameworkType {
LOCAL, DISTRIBUTED, REMOTE;
}
|
/** ****************************************************************************
* Copyright (c) The Spray Project.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... |
/**
*
*/
/**
* Copyright 2013 Christian Endres
*
* @author endrescn@fachschaft.informatik.uni-stuttgart.de
*
*/
package org.opentosca.planinvocationengine.service; |
package br.com.formacao.java.Testes;
import br.com.formacao.java.Modelo.ContaCorrente;
import br.com.formacao.java.Modelo.SaldoInsuficienteException;
import br.com.formacao.java.Modelo.Conta;
/**
* Classe que representa o teste de saque.
*
* @author Guilherme Vilela
* @version 0.1
*/
public class TesteSaca {
... |
package com.smxknife.mapstruct.demo01;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
/**
* @author smxknife
* 2021/1/19
*/
@Mapper
public interface PersonConverter {
PersonConverter INSTANCE = Mappers.getMapper(PersonConverter.class... |
2016.11.09.
8. Java EA
strukturált programozás:
- nincsenek ugró utasítások
- szekvencia, elágazás, ciklus
- nincs szükség goto, break, continue utasításokra
- goto nincs is Javában, break és continue van
1. ökölszabály: programozzunk strukturáltan
2. ökölszabály: nincsenek korlátlan hatalmú szabályok, időnként az ök... |
package com.yedam;
class CellPhone {
String model;
String color;
CellPhone() {
}
CellPhone(String model, String color) {
this.model = model;
this.color = color;
}
void powerOn() {
System.out.println("전원을 켭니다.");
}
void powerOff() {
System.out.println("전원을 끕니다.");
}
void ... |
package com.steatoda.commons.fields.model.carrier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.steatoda.commons.fields.FieldGraph;
import com.stea... |
package com.tencent.mm.plugin.appbrand.jsapi.f;
import com.tencent.mm.plugin.appbrand.jsapi.h;
public class i$d extends h {
private static final int CTRL_INDEX = 151;
private static final String NAME = "onMapClick";
}
|
package com.study.rxjava;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreat... |
package com.kangYh.fangdou2.di;
/**
* Created by solo on 2018/1/10.
* 依赖注入帮助类
*/
public class DIHelper {
// public static ActivityComponent getActivityComponent() {
// return DaggerActivityComponent.builder()
// .applicationComponent(MyApplication.getApplicationComponent())
// ... |
package com.isystk.sample.web.base.security;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
/**
* 基底セキュリティコンフィグ
*/
public abstract class BaseSecurityConfig extends WebSecurityConfigurerAdapter {
}
|
package com.qf.controller;
import com.qf.entity.FriendRequest;
import com.qf.entity.Friends;
import com.qf.entity.ResultData;
import com.qf.service.IFriendRequestService;
import com.qf.util.Constant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMa... |
package com.concurrent.synchronize;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.LockSupport;
import java.util.concurrent.locks.Reentr... |
package com.nv95.ficbook;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Resources;
import android.text.Html;
import android.view.Gravity;
import android.widget.Toas... |
package com.Bank;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Random;
import java.util.regex.Pattern;
public class Bank {
private final String name;
private int Pin;... |
package com.lzw;
public class Person2 {
protected String name = "person";
protected int age = 90;
public String getInfo() {
return "Name£º" + name + "\tage£º" + age;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
|
package com.malf;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
/**
* @author malf
* @description TODO
* @project how2jStudy
* @since 2020/10/28
*/
public class TmallTest {
public static void main(String[] args) {
try {
Class.forName("co... |
package other;
public class TrieNode {
private TrieNode[] children;
public boolean isLeaf;
private int childCount;
public TrieNode() {
children = new TrieNode[26];
isLeaf = false;
childCount = 0;
}
public boolean containsKey(Character c) {
return children[c... |
package servlets;
import java.util.HashMap;
import java.util.Map;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReques... |
package com.bitbus.fantasyprep.auction;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PlayerAuctionRepository extends JpaRepository<PlayerAuction, Integer> {
List<PlayerAuction> findByAuction(Auction auction);
}
|
package com.amoraesdev.mobify.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import o... |
/**
*
*/
package ru.biv.msgSystem;
import ru.biv.base.Abonent;
import ru.biv.base.Address;
import ru.biv.base.Frontend;
import ru.biv.base.Msg;
/**
* @author Banshikov Igor (BIV)
*
*/
public abstract class MsgToFrontend extends Msg {
public MsgToFrontend(Address from, Address to){
super(from,to);
}
/* (... |
package org.apache.hadoop.examples;
import java.io.*;
import java.util.*;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.mapreduce.Job;
import org... |
package org.usfirst.frc.team1165.robot.commands.rotary_lift;
import org.usfirst.frc.team1165.robot.Robot;
import org.usfirst.frc.team1165.robot.util.drivers.OperatorInterface;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class RotaryLiftDown extends Command
{
public RotaryLiftDown()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.