This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.javacodegeeks.java.core; | |
| import java.io.FileWriter; | |
| import java.io.IOException; | |
| import org.json.simple.JSONArray; | |
| import org.json.simple.JSONObject; | |
| public class JsonSimpleLibraryExample { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package luck; | |
| public class MaxPoints { | |
| class Point{ | |
| int x; | |
| int y; | |
| Point() {x=0; y=0;} | |
| Point(int a, int b) {x = a; y = b;} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Solution { | |
| public String convert(String s, int nRows) { | |
| if (nRows <= 0) | |
| return ""; | |
| if (nRows == 1){ | |
| return s; | |
| } | |
| s = s.trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; | |
| import javax.swing.ImageIcon; | |
| import javax.swing.JFrame; | |
| import javax.swing.JLabel; | |
| import javax.swing.Timer; |