File indexing completed on 2024-05-12 04:02:10

0001 /* highlighting test case for Java */
0002 
0003 // single line comment with ### TODO FIXME
0004 
0005 /* multiline comment with ### TODO FIXME */
0006 
0007 /** Javadoc comment with ### TODO FIXME
0008  * @param foo bla bla ATTENTION
0009  * @return abc cde
0010  * @see javadoc.xml
0011 */
0012 
0013 package org.kde.itinerary;
0014 
0015 import org.qtproject.qt5.android.bindings.QtActivity;
0016 import java.io.*;
0017 import java.util.*;
0018 
0019 public class Activity extends QtActivity
0020 {
0021     private static final String TAG = "org.kde.itinerary";
0022 
0023     public void launchViewIntentFromUri(String uri)
0024     {
0025         Uri mapIntentUri = Uri.parse(uri);
0026         Intent mapIntent = new Intent(Intent.ACTION_VIEW, mapIntentUri);
0027         startActivity(mapIntent);
0028     }
0029 
0030     @Override
0031     protected String stuff()
0032     {
0033         while (true) {
0034         }
0035         int num = 1;
0036         num = 0x2;
0037         double f = .4e+49;
0038     var other = "string";
0039     var multilineString = """
0040 string \\ \n
0041 sdsda""";
0042         
0043         long int_dec = 1__23_48l;
0044         long int_oct = 072034__4l;
0045         long int_hex = 0xa__12Ff_13L;
0046         int int_bin = 0B1011___01;
0047         
0048         double float_hex = 0x1f__a2.d_f10P+1074D;
0049         float float_dec = 1__24.1_32e-1____23F;
0050         float[] float_d = {1.,1.E+3,1.E+3f,1.F,1.1E+3d,1.1E+3,1.1f,1.1,.1E+3f,.1E+3,.1f,.1,1E+3f,1E+3,1f,1d};
0051     assert 1 > 0;
0052     }
0053 }