牛客161598119号
牛客161598119号
全部文章
分类
题解(98)
归档
标签
去牛客网
登录
/
注册
牛客161598119号的博客
全部文章
(共97篇)
题解 | #统计字符串中字母出现次数#
import java.util.Scanner; public class Main { public static void main(String[] args) { String string = "H e l l o ! n o w c o d e r"; ...
Java
2021-12-23
0
366
题解 | #动态字符串#
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String...
Java
2021-12-23
0
385
题解 | #创建单例对象#
public class Main { public static void main(String[] args) { Singleton s1 = Singleton.getInstance(); Singleton s2 = Singleton.get...
Java
2021-12-23
0
510
题解 | #实现接口#
import java.util.Scanner; public class Main { public static void main(String[] args) { Comparator comparator = new ComparatorImpl(); ...
Java
2021-12-20
0
497
题解 | #实现抽象方法#
import java.util.Scanner; public class Main { public static void main(String[] args) { // Sub是需要你定义的子类 Base base = new Sub(); ...
Java
2021-12-20
0
387
题解 | #类型判断#
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(Sy...
Java
2021-12-20
0
366
题解 | #定义打印方法#
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner scanner = new Scanner(Sy...
Java
2021-12-20
8
666
题解 | #重写计算逻辑#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
Java
2021-12-20
0
317
题解 | #补全构造方法#
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); ...
Java
2021-12-20
0
297
题解 | #验证年龄#
import java.util.Scanner; public class Main { public static void main(String[] args) { Person p = new Person(); Scanner scanner ...
Java
2021-12-18
2
469
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页