Skip to content

Commit c655b63

Browse files
committed
Java String Code
1 parent 4715f1a commit c655b63

240 files changed

Lines changed: 4257 additions & 2785 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.metadata/.log

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,146 @@ java.net.UnknownHostException: www.codetrails.com: nodename nor servname provide
112112
at org.eclipse.recommenders.internal.rcp.news.CheckForProjectNewsJob.doRun(CheckForProjectNewsJob.java:89)
113113
at org.eclipse.recommenders.internal.rcp.news.CheckForProjectNewsJob.run(CheckForProjectNewsJob.java:62)
114114
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
115+
!SESSION 2018-11-12 19:35:18.276 -----------------------------------------------
116+
eclipse.buildId=4.5.2.M20160212-1500
117+
java.version=1.8.0_181
118+
java.vendor=Oracle Corporation
119+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
120+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
121+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
122+
123+
!ENTRY org.eclipse.core.net 1 0 2018-11-12 19:35:33.821
124+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
125+
!SESSION 2018-11-13 19:33:36.959 -----------------------------------------------
126+
eclipse.buildId=4.5.2.M20160212-1500
127+
java.version=1.8.0_181
128+
java.vendor=Oracle Corporation
129+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
130+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
131+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
132+
133+
!ENTRY org.eclipse.core.net 1 0 2018-11-13 19:33:52.456
134+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
135+
!SESSION 2018-12-03 20:12:11.307 -----------------------------------------------
136+
eclipse.buildId=4.5.2.M20160212-1500
137+
java.version=1.8.0_181
138+
java.vendor=Oracle Corporation
139+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
140+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
141+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
142+
143+
!ENTRY org.eclipse.core.net 1 0 2018-12-03 20:12:32.100
144+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
145+
146+
!ENTRY org.eclipse.epp.logging.aeri.ide 2 10 2018-12-03 20:56:55.133
147+
!MESSAGE Updating the index from remote failed. ; version: 1.100.0.v20160217-0435
148+
!STACK 0
149+
java.net.UnknownHostException: www.eclipse.org: nodename nor servname provided, or not known
150+
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
151+
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
152+
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
153+
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
154+
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
155+
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
156+
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
157+
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:102)
158+
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
159+
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
160+
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
161+
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
162+
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
163+
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
164+
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
165+
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
166+
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
167+
at org.apache.http.client.fluent.Executor.execute(Executor.java:206)
168+
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.IO.downloadDatabase(IO.java:171)
169+
at org.eclipse.epp.internal.logging.aeri.ide.server.mars.ServerProblemsHistory$UpdateIndexJob.run(ServerProblemsHistory.java:279)
170+
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
171+
!SESSION 2018-12-04 19:14:53.445 -----------------------------------------------
172+
eclipse.buildId=4.5.2.M20160212-1500
173+
java.version=1.8.0_181
174+
java.vendor=Oracle Corporation
175+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
176+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
177+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
178+
179+
!ENTRY org.eclipse.core.net 1 0 2018-12-04 19:15:09.807
180+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
181+
!SESSION 2018-12-05 21:35:41.170 -----------------------------------------------
182+
eclipse.buildId=4.5.2.M20160212-1500
183+
java.version=1.8.0_181
184+
java.vendor=Oracle Corporation
185+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
186+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
187+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
188+
189+
!ENTRY org.eclipse.core.net 1 0 2018-12-05 21:35:56.883
190+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
191+
!SESSION 2018-12-07 19:52:58.147 -----------------------------------------------
192+
eclipse.buildId=4.5.2.M20160212-1500
193+
java.version=1.8.0_181
194+
java.vendor=Oracle Corporation
195+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
196+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
197+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
198+
199+
!ENTRY org.eclipse.core.net 1 0 2018-12-07 19:53:13.872
200+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
201+
!SESSION 2018-12-08 19:05:29.126 -----------------------------------------------
202+
eclipse.buildId=4.5.2.M20160212-1500
203+
java.version=1.8.0_181
204+
java.vendor=Oracle Corporation
205+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
206+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
207+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
208+
209+
!ENTRY org.eclipse.core.net 1 0 2018-12-08 19:05:45.329
210+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
211+
!SESSION 2018-12-08 19:31:59.705 -----------------------------------------------
212+
eclipse.buildId=4.5.2.M20160212-1500
213+
java.version=1.8.0_181
214+
java.vendor=Oracle Corporation
215+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
216+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
217+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
218+
219+
!ENTRY org.eclipse.core.net 1 0 2018-12-08 19:32:14.810
220+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
221+
222+
!ENTRY org.eclipse.recommenders.rcp 2 23 2018-12-08 21:45:43.870
223+
!MESSAGE Failed to parse news feed
224+
!STACK 0
225+
java.net.UnknownHostException: www.codetrails.com: nodename nor servname provided, or not known
226+
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
227+
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
228+
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
229+
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
230+
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
231+
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
232+
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)
233+
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:102)
234+
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
235+
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
236+
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
237+
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
238+
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
239+
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
240+
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
241+
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
242+
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
243+
at org.apache.http.client.fluent.Executor.execute(Executor.java:206)
244+
at org.eclipse.recommenders.internal.rcp.news.CheckForProjectNewsJob.getRSSFeed(CheckForProjectNewsJob.java:138)
245+
at org.eclipse.recommenders.internal.rcp.news.CheckForProjectNewsJob.doRun(CheckForProjectNewsJob.java:89)
246+
at org.eclipse.recommenders.internal.rcp.news.CheckForProjectNewsJob.run(CheckForProjectNewsJob.java:62)
247+
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
248+
!SESSION 2018-12-09 18:18:49.616 -----------------------------------------------
249+
eclipse.buildId=4.5.2.M20160212-1500
250+
java.version=1.8.0_181
251+
java.vendor=Oracle Corporation
252+
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_IN
253+
Framework arguments: -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
254+
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/anshul/.eclipse_keyring -showlocation
255+
256+
!ENTRY org.eclipse.core.net 1 0 2018-12-09 18:19:04.866
257+
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences

.metadata/.mylyn/.tasks.xml.zip

250 Bytes
Binary file not shown.

.metadata/.mylyn/tasks.xml.zip

0 Bytes
Binary file not shown.

.metadata/.plugins/org.eclipse.core.resources/.history/10/00003c260fd6001813b9a35245a0ba54

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package String;
2+
3+
public class StringMethodPartIII {
4+
5+
public static void main(String[] args) {
6+
7+
//String text = "Hello Team";
8+
String sample = "His name is John and he is a good man";
9+
10+
/*String text1 = text.replace("e", "a");
11+
String sample2 = sample.replace("is", "was");
12+
13+
System.out.println(text1);
14+
System.out.println(sample2);
15+
*/
16+
/*String[] sampletest = sample.split("John");
17+
18+
System.out.println(sample);
19+
20+
for (int i = 0; i < sampletest.length; i++) {
21+
System.out.println(sampletest[i]);
22+
}*/
23+
24+
System.out.println(sample.startsWith("H"));
25+
}
26+
}

.metadata/.plugins/org.eclipse.core.resources/.history/11/90f545c99ed700181006e1692fd2ca17

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package String;
2+
3+
public class StringBufferIntro {
4+
5+
public static void main(String[] args) {
6+
7+
String name = "Anshul";
8+
name.concat(" Chauhan");
9+
10+
//System.out.println(name);
11+
12+
StringBuffer name1 = new StringBuffer("Anshul");
13+
//name1.append(" Chauhan");
14+
15+
//name1.insert(4, "Chauhan");
16+
17+
name1.replace(1, 3, "chauhan");
18+
System.out.println(name1);
19+
20+
}
21+
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package String;
2+
3+
public class StringBufferIntro {
4+
5+
public static void main(String[] args) {
6+
7+
String name = "Anshul";
8+
name.concat(" Chauhan");
9+
10+
System.out.println(name);
11+
12+
StringBuffer name1 = new StringBuffer("Anshul");
13+
name1.append(" Chauhan");
14+
15+
System.out.println(name1);
16+
17+
}
18+
19+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package String;
2+
3+
public class StringMethodPartI {
4+
5+
6+
public static void main(String[] args) {
7+
8+
String text = "Hi We are leaning from easybix.com";
9+
10+
/*char ch = text.charAt(12);
11+
12+
System.out.println(text.charAt(5));
13+
System.out.println(ch);
14+
15+
System.out.println(text.charAt(50));*/
16+
17+
/*String text2 = text.concat(" to sucess").concat(" and we learning Java");
18+
System.out.println(text2);*/
19+
20+
//System.out.println(text.contains("Key1"));
21+
22+
}
23+
}

.metadata/.plugins/org.eclipse.core.resources/.history/49/300475ba0dd6001813b9a35245a0ba54 renamed to .metadata/.plugins/org.eclipse.core.resources/.history/16/706fa41da8f800181019afdab1979523

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
package String;
12

2-
public class SecoundJavaClass {
3+
public class StringBufferIntro {
34

45
public static void main(String[] args) {
56
// TODO Auto-generated method stub

0 commit comments

Comments
 (0)