PageRenderTime 13ms queryFilters 0ms Sphinxql 147ms app.CodeModel.GetByIds 544ms findMatchingLines 23ms GetByIds 567ms meta 0ms repositoryFilters 10ms languageFilters 3ms sourceFilters 3ms

15,431 results for 'helloworld java' (13 ms)

Source

Language

Repository

discovery.sh https://bitbucket.org/line47/major-java7.git | Shell | 410 lines
73# Construct path to javac executable
74JAVAC="${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} -source 1.5 -sourcepath ${TESTSRC} -classpath ${TOOLSJAR} -d . "
75JAR="${TESTJAVA}/bin/jar "
76
77$JAVAC ${TESTSRC}/Dee.java ${TESTSRC}/Dum.java ${TESTSRC}/Touch.java ${TESTSRC}/PhantomTouch.java ${TESTSRC}/Empty.java
78RESULT=$?
266TestFile "touched"
267TestFile "HelloWorld.java"
268TestFile "Empty.class"
345TestFile "touched"
346TestFile "HelloWorld.java"
347
354rm -f touched
355rm -f src/HelloWorld.java
356rm -f src/GoodbyeWorld.java
tutorial-HelloWorldWithAnt.html https://bitbucket.org/xcsolutionsqa/dpmc_selenium.git | HTML | 520 lines
54<p>The following simple Java class just prints a fixed message out to STDOUT,
55so just write this code into <tt>src\oata\HelloWorld.java</tt>.</p>
56
69md build\classes
70javac -sourcepath src -d build\classes src\oata\HelloWorld.java
71java -cp build\classes oata.HelloWorld
181&lt;/jar&gt;
182&lt;java jar="build/jar/HelloWorld.jar" fork="true"/&gt;
183  </pre></td>
339<pre class="output">
340[java] 0 [main] INFO oata.HelloWorld  - Hello World
341</pre>
395<p>In this step we will introduce the usage of the JUnit [3] testframework in combination with Ant. Because Ant
396has a built-in JUnit 3.8.2 you could start directly using it. Write a test class in <tt>src\HelloWorldTest.java</tt>: </p>
397
create-a-confluence-hello-world-macro.md https://bitbucket.org/zchristmas/atlassian-sdk-docs.git | Markdown | 393 lines
110    ``` xml
111    <xhtml-macro name="helloworld" class="com.atlassian.tutorial.macro.helloworld" key='helloworld-macro'>
112        <description key="helloworld.macro.desc"/>
204    <img src="/server/framework/atlassian-sdk/images/confluence-macro-browser-showing-helloworld-macro.png" title="Macro Browser" alt="Confluence macro browser showing helloworld macro" width="500" height="305" />  
205    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-on-page-in-edit-view.png" title="Helloworld Macro - Edit Mode" alt="Helloworld macro showing on confluence page in edit mode" width="500" height="268" />
206
206
207    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-showing-message-after-saving-page.png" title="Helloworld Macro - Confluence Page" alt="Helloworld Macro shown on Confluence page that has been saved" width="880" height="250" />
208
2254.  Save and close the changes you made to **atlassian-plugin.xml**
2265.  Open **helloworld.java **(it'll be in the /src/main/java/com/atlassian/tutorial/macro directory)
2276.  Modify the **execute **function as follows:
3057.  Save your changes to myConfluenceMacro.css and close the file. 
3068.  Now, open the **src/main/java/com/atlassian/tutorial/macro/helloworld.java** file. 
3079.  Modify the **execute **function to create &lt;div&gt; elements as follows:
create-a-confluence-hello-world-macro.md https://bitbucket.org/tormodhaugene/atlassian-sdk-docs.git | Markdown | 393 lines
110    ``` xml
111    <xhtml-macro name="helloworld" class="com.atlassian.tutorial.macro.helloworld" key='helloworld-macro'>
112        <description key="helloworld.macro.desc"/>
204    <img src="/server/framework/atlassian-sdk/images/confluence-macro-browser-showing-helloworld-macro.png" title="Macro Browser" alt="Confluence macro browser showing helloworld macro" width="500" height="305" />  
205    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-on-page-in-edit-view.png" title="Helloworld Macro - Edit Mode" alt="Helloworld macro showing on confluence page in edit mode" width="500" height="268" />
206
206
207    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-showing-message-after-saving-page.png" title="Helloworld Macro - Confluence Page" alt="Helloworld Macro shown on Confluence page that has been saved" width="880" height="250" />
208
2254.  Save and close the changes you made to **atlassian-plugin.xml**
2265.  Open **helloworld.java **(it'll be in the /src/main/java/com/atlassian/tutorial/macro directory)
2276.  Modify the **execute **function as follows:
3057.  Save your changes to myConfluenceMacro.css and close the file. 
3068.  Now, open the **src/main/java/com/atlassian/tutorial/macro/helloworld.java** file. 
3079.  Modify the **execute **function to create &lt;div&gt; elements as follows:
create-a-confluence-hello-world-macro.md https://bitbucket.org/acox35/atlassian-sdk-docs.git | Markdown | 393 lines
110    ``` xml
111    <xhtml-macro name="helloworld" class="com.atlassian.tutorial.macro.helloworld" key='helloworld-macro'>
112        <description key="helloworld.macro.desc"/>
204    <img src="/server/framework/atlassian-sdk/images/confluence-macro-browser-showing-helloworld-macro.png" title="Macro Browser" alt="Confluence macro browser showing helloworld macro" width="500" height="305" />  
205    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-on-page-in-edit-view.png" title="Helloworld Macro - Edit Mode" alt="Helloworld macro showing on confluence page in edit mode" width="500" height="268" />
206
206
207    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-showing-message-after-saving-page.png" title="Helloworld Macro - Confluence Page" alt="Helloworld Macro shown on Confluence page that has been saved" width="880" height="250" />
208
2254.  Save and close the changes you made to **atlassian-plugin.xml**
2265.  Open **helloworld.java **(it'll be in the /src/main/java/com/atlassian/tutorial/macro directory)
2276.  Modify the **execute **function as follows:
3057.  Save your changes to myConfluenceMacro.css and close the file. 
3068.  Now, open the **src/main/java/com/atlassian/tutorial/macro/helloworld.java** file. 
3079.  Modify the **execute **function to create &lt;div&gt; elements as follows:
create-a-confluence-hello-world-macro.md https://bitbucket.org/n-semikin/atlassian-sdk-docs.git | Markdown | 393 lines
110    ``` xml
111    <xhtml-macro name="helloworld" class="com.atlassian.tutorial.macro.helloworld" key='helloworld-macro'>
112        <description key="helloworld.macro.desc"/>
204    <img src="/server/framework/atlassian-sdk/images/confluence-macro-browser-showing-helloworld-macro.png" title="Macro Browser" alt="Confluence macro browser showing helloworld macro" width="500" height="305" />  
205    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-on-page-in-edit-view.png" title="Helloworld Macro - Edit Mode" alt="Helloworld macro showing on confluence page in edit mode" width="500" height="268" />
206
206
207    <img src="/server/framework/atlassian-sdk/images/helloworld-macro-showing-message-after-saving-page.png" title="Helloworld Macro - Confluence Page" alt="Helloworld Macro shown on Confluence page that has been saved" width="880" height="250" />
208
2254.  Save and close the changes you made to **atlassian-plugin.xml**
2265.  Open **helloworld.java **(it'll be in the /src/main/java/com/atlassian/tutorial/macro directory)
2276.  Modify the **execute **function as follows:
3057.  Save your changes to myConfluenceMacro.css and close the file. 
3068.  Now, open the **src/main/java/com/atlassian/tutorial/macro/helloworld.java** file. 
3079.  Modify the **execute **function to create &lt;div&gt; elements as follows:
tutorial-writing-tasks.html https://github.com/zubair-io/PhotoSwipe.git | HTML | 804 lines
115Now we write the simplest Task - a HelloWorld-Task (what else?). Create a text file
116<i>HelloWorld.java</i> in the src-directory with:
117<pre class="code">
141    <b>&lt;target name="use" description="Use the Task" depends="jar"&gt;
142        &lt;taskdef name="helloworld" classname="HelloWorld" classpath="${ant.project.name}.jar"/&gt;
143        &lt;helloworld/&gt;
445            depends="use.init"&gt;
446        &lt;helloworld&gt;nested-text&lt;/helloworld&gt;
447    &lt;/target&gt;
606<p>In Ant it is usual that the testcase has the same name as the task with a prepending
607<i>Test</i>, therefore we will create a file <i>HelloWorldTest.java</i>. Because we
608have a very small project we can put this file into <i>src</i> directory (Ant's own
679
680<p>Back to the <i>src/HelloWorldTest.java</i>. We create a class extending
681<i>BuildFileTest</i> with String-constructor (JUnit-standard), a <i>setUp()</i>
tutorial-writing-tasks.html https://bitbucket.org/line47/major-java7.git | HTML | 804 lines
115Now we write the simplest Task - a HelloWorld-Task (what else?). Create a text file
116<i>HelloWorld.java</i> in the src-directory with:
117<pre class="code">
141    <b>&lt;target name="use" description="Use the Task" depends="jar"&gt;
142        &lt;taskdef name="helloworld" classname="HelloWorld" classpath="${ant.project.name}.jar"/&gt;
143        &lt;helloworld/&gt;
445            depends="use.init"&gt;
446        &lt;helloworld&gt;nested-text&lt;/helloworld&gt;
447    &lt;/target&gt;
606<p>In Ant it is usual that the testcase has the same name as the task with a prepending
607<i>Test</i>, therefore we will create a file <i>HelloWorldTest.java</i>. Because we
608have a very small project we can put this file into <i>src</i> directory (Ant's own
679
680<p>Back to the <i>src/HelloWorldTest.java</i>. We create a class extending
681<i>BuildFileTest</i> with String-constructor (JUnit-standard), a <i>setUp()</i>
compile.sh https://bitbucket.org/line47/major-java7.git | Shell | 533 lines
75APT="${TESTJAVA}/bin/apt ${TESTTOOLVMOPTS} -XDsuppress-tool-api-removal-message "
76JAVA="${TESTJAVA}/bin/java ${TESTVMOPTS} "
77JAVAC="${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} "
284
285${JAVAC} -d ./tmp/classes ${TESTSRC}/src/Round1Class.java ${TESTSRC}/src/AhOneClass.java ${TESTSRC}/src/AndAhTwoClass.java
286
316
317${JAVAC} -d ./tmp/classes ${TESTSRC}/src/Round1Class.java ${TESTSRC}/src/AndAhTwoClass.java
318
363
364${JAVAC} -d ./tmp/classes ${TESTSRC}/src/Round1Class.java ${TESTSRC}/src/AndAhTwoClass.java
365
412
413${JAVAC} -d ./tmp/classes ${TESTSRC}/src/Round1Class.java ${TESTSRC}/src/AndAhTwoClass.java
414
tutorial-writing-tasks.html https://bitbucket.org/xcsolutionsqa/dpmc_selenium.git | HTML | 819 lines
114Now we write the simplest Task - a HelloWorld-Task (what else?). Create a text file
115<i>HelloWorld.java</i> in the src-directory with:
116<pre class="code">
140    <b>&lt;target name="use" description="Use the Task" depends="jar"&gt;
141        &lt;taskdef name="helloworld" classname="HelloWorld" classpath="${ant.project.name}.jar"/&gt;
142        &lt;helloworld/&gt;
444            depends="use.init"&gt;
445        &lt;helloworld&gt;nested-text&lt;/helloworld&gt;
446    &lt;/target&gt;
602<p>In Ant it is usual that the testcase has the same name as the task with a prepending
603<i>Test</i>, therefore we will create a file <i>HelloWorldTest.java</i>. Because we
604have a very small project we can put this file into <i>src</i> directory (Ant's own
675
676<p>Back to the <i>src/HelloWorldTest.java</i>. We create a class with a public
677<i>BuildFileRule</i> field annotated with JUnit's <i>@Rule</i> annotation. As per
zh.md https://github.com/DavidShenZJ/cocos-docs.git | Markdown | 176 lines
41
42	java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
43
117
118	id: 1 or "android-17" Name: Android 4.2 Type: Platform API level: 17 Revision: 1 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in ABIs : armeabi-v7a input target id: 1 //选择您需要的平台id input your project name: HelloWorld //输入项目名称 Created project directory: /opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android
119	 
129
130	`` Youngs-MacBook-Air:~ young40$ cd /opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android/ Youngs-MacBook-Air:proj.android young40$ ./build_native.sh NDK_ROOT = /opt/android-ndk COCOS2DX_ROOT = /opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android/../.. APP_ROOT = /opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android/.. APP_ANDROID_ROOT = /opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android Using prebuilt externals make: Entering directory
131	/opt/cocos2d-2.1beta3-x-2.1.1/HelloWorld/proj.android'
160
161	The import org.cocos2dx.lib cannot be resolved HelloWorld.java /HelloWorld/src/com/young40/test line 26 Java Problem Cocos2dxActivity cannot be resolved to a type HelloWorld.java /HelloWorld/src/com/young40/test line 30 Java Problem Cocos2dxActivity cannot be resolved to a type HelloWorld.java /HelloWorld/src/com/young40/test line 33 Java Problem
162
171
172将您的手机设置成调试模式并用USB线连接到电脑, 在Eclipse中运行HelloWorld, 然后就能在手机上看到已经运行的HelloWorld
173
GettingStarted.rst https://github.com/eliantor/sonar-persistit.git | ReStructuredText | 271 lines
127
128Before accessing any data, ``HelloWorld.java`` calls the ``com.persistit.Persistit#initialize()`` method. This sets up the memory configuration for buffers and the path names of Persistit volume and journal files. Alternative methods accept configuration information from a ``com.persistit.Configuration`` object, a ``java.util.Properties`` object, a specified properties file, or by default from the file named ``persistit.properties`` in the current working directory.
129
187
188The ``HelloWorld.java`` example appends “Hello” to the Exchange’s Key object in this line:
189
221
222Finally, it is these two methods in ``HelloWorld.java`` that cause the Exchange object to share data with the B+Tree, making it persistent and potentially available to other threads:
223
232
233Persistit creates one or more background threads that lazily write data to the Volume files and perform other maintenance activities. Be sure to invoke the ``com.persistit.Persistit#close`` method to allow these threads to finish their work and exit properly. The pattern illustrated in ``HelloWorld.java``, using a *try/finally* block to invoke ``close``, is strongly recommended.
234
241^^^^^^^^^^^^
242A particularly easy way to get started with Persistit is to use its built-in ``com.persistit.PersistitMap`` implementation. PersistitMap implements the ``java.util.SortedMap`` interface, so it can directly replace ``java.util.TreeMap`` or other kinds of Map in existing Java code.
243
cmdline.txt https://github.com/Eeeeddddy/soot.git | Plain Text | 568 lines
38
39// HelloWorld.java
40class HelloWorld {
58
59HelloWorld is the only argument class and the only application class. UI and TextUI are library classes, along with java.lang.System, java.lang.String, java.io.PrintStream, and a host of other classes from the Java runtime system that get dragged in indirectly by the references to String and System.out.
60
64
65HelloWorld remains the only argument class, but the application classes include UI and TextUI as well as HelloWorld. java.lang.System et. al. remain library classes.
66
68
69java soot.Main -i java. --app HelloWorld
70
70
71HelloWorld is still the only argument class, but the set of application classes includes the referenced Java runtime classes in packages whose names start with java. as well as HelloWorld, UI, and textUI. The set of library classes includes the referenced classes from other packages in the Java runtime.
72
CreateCompilationUnitTests.java https://github.com/effine/eclipse.jdt.core.git | Java | 237 lines
185	try {
186		pkg.createCompilationUnit("HelloWorld.java", null, false, null);
187	} catch (JavaModelException jme) {
187	} catch (JavaModelException jme) {
188		assertTrue("Incorrect JavaModelException thrown for creating a cu with null contents: " + jme, jme.getStatus().getCode() == IJavaModelStatusConstants.INVALID_CONTENTS);
189		return;
200	IPackageFragment pkg = getPackage("/P/p");
201	ICompilationUnit cu= pkg.createCompilationUnit("HelloWorld.java",
202		("package p;\n" +
215		"		p[*]: {CHILDREN}\n" +
216		"			HelloWorld.java[+]: {}"
217	);
226			IPackageFragment pkg = getPackage("/P/p");
227			ICompilationUnit cu= pkg.createCompilationUnit("HelloWorld.java",
228				("package p;\n" +
basic.rst https://bitbucket.org/pythondsp1/javaguide.git | ReStructuredText | 1,117 lines
28
29    $ javac HelloWorld.java 
30    $ java HelloWorld 
71
72    $ javac HelloWorld.java 
73    $ java HelloWorld 
297
298    $ javac ElseIfEx.java 
299    $ java ElseIfEx 
644    
645        $ javac Jungle.java JungleTest.java
646
1096
1097    $ javac *.java
1098    $ java Abstract_JungleTest 
basic.rst https://bitbucket.org/pythondsp/javaguide.git | ReStructuredText | 1,117 lines
28
29    $ javac HelloWorld.java 
30    $ java HelloWorld 
71
72    $ javac HelloWorld.java 
73    $ java HelloWorld 
297
298    $ javac ElseIfEx.java 
299    $ java ElseIfEx 
644    
645        $ javac Jungle.java JungleTest.java
646
1096
1097    $ javac *.java
1098    $ java Abstract_JungleTest 
zh.md https://github.com/DavidShenZJ/cocos-docs.git | Markdown | 139 lines
78
79##创建HelloWorld项目
80
96
97- HelloWorldDemo为项目名称
98- `-p`后面接包名
109
110并将**HelloWorldDemo/cocos2d/cocos/2d/platform/android/java/src/org/cocos2dx/lib**文件夹拷贝到**HelloWorldDemo/proj.android/src/org/cocos2dx**下。
111
124```
125The import org.cocos2dx.lib cannot be resolved HelloWorld.java /HelloWorld/src/com/young40/test line 26 Java Problem Cocos2dxActivity cannot be resolved to a type HelloWorld.java /HelloWorld/src/com/young40/test line 30 Java Problem Cocos2dxActivity cannot be resolved to a type HelloWorld.java /HelloWorld/src/com/young40/test line 33 Java Problem
126```
135
136将您的手机设置成调试模式并用USB线连接到电脑, 在Eclipse中运行HelloWorld, 然后就能在手机上看到已经运行的HelloWorld了!
137
soot_options.xml https://github.com/Eeeeddddy/soot.git | XML | 6,020 lines
51
52// HelloWorld.java
53class HelloWorld {
75classes, along with <tt>java.lang.System</tt>,
76<tt>java.lang.String</tt>, <tt>java.io.PrintStream</tt>, and a
77host of other classes from the Java runtime system that get
92<pre>
93java soot.Main -i java. --app HelloWorld
94</pre>
647				<long_desc>
648Produce Java <tt>.class</tt> files, executable by any Java
649Virtual Machine.
5587					<long_desc>While decompiling we have to be clear what our aim is: do we want to convert bytecode
5588to Java syntax and stay as close to the actual execution of bytecode or do we want recompilably Java source representing
5589the bytecode. This distinction is important because some restrictions present in Java source are absent from the bytecode.
soot_options.xml https://github.com/EliDotNet/robovm.git | XML | 5,727 lines
51
52// HelloWorld.java
53class HelloWorld {
75classes, along with <tt>java.lang.System</tt>,
76<tt>java.lang.String</tt>, <tt>java.io.PrintStream</tt>, and a
77host of other classes from the Java runtime system that get
92<pre>
93java soot.Main -i java. --app HelloWorld
94</pre>
568				<long_desc>
569Produce Java <tt>.class</tt> files, executable by any Java
570Virtual Machine.
5309					<long_desc>While decompiling we have to be clear what our aim is: do we want to convert bytecode
5310to Java syntax and stay as close to the actual execution of bytecode or do we want recompilably Java source representing
5311the bytecode. This distinction is important because some restrictions present in Java source are absent from the bytecode.
TestSourceVersion.java https://bitbucket.org/line47/major-java7.git | Java | 72 lines
29 * @library ../../lib
30 * @build   JavacTestingAbstractProcessor
31 * @compile TestSourceVersion.java
31 * @compile TestSourceVersion.java
32 * @compile -processor TestSourceVersion -proc:only -source 1.2 -AExpectedVersion=RELEASE_2 HelloWorld.java
33 * @compile -processor TestSourceVersion -proc:only -source 1.3 -AExpectedVersion=RELEASE_3 HelloWorld.java
33 * @compile -processor TestSourceVersion -proc:only -source 1.3 -AExpectedVersion=RELEASE_3 HelloWorld.java
34 * @compile -processor TestSourceVersion -proc:only -source 1.4 -AExpectedVersion=RELEASE_4 HelloWorld.java
35 * @compile -processor TestSourceVersion -proc:only -source 1.5 -AExpectedVersion=RELEASE_5 HelloWorld.java
35 * @compile -processor TestSourceVersion -proc:only -source 1.5 -AExpectedVersion=RELEASE_5 HelloWorld.java
36 * @compile -processor TestSourceVersion -proc:only -source   5 -AExpectedVersion=RELEASE_5 HelloWorld.java
37 * @compile -processor TestSourceVersion -proc:only -source 1.6 -AExpectedVersion=RELEASE_6 HelloWorld.java
38 * @compile -processor TestSourceVersion -proc:only -source   6 -AExpectedVersion=RELEASE_6 HelloWorld.java
39 * @compile -processor TestSourceVersion -proc:only -source 1.7 -AExpectedVersion=RELEASE_7 HelloWorld.java
40 * @compile -processor TestSourceVersion -proc:only -source   7 -AExpectedVersion=RELEASE_7 HelloWorld.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21