Beginner XCode/Java Question - printf problem

Hello,
I have just started playing around with XCode and Java. I entered the statement:
System.out.printf("%s\n%s\n", "Welcome to", "Java Programming!");
into the default working java project (File -> New Project -> Java Tool) and Im getting the error "cannot find symbol" after I compiled it. I do not believe this is a syntax error since it was copied straight from a textbook. So, my questions are:
1. What "symbol" is Xcode refering to?
2. Does Xcode coem with the latest version of Java?
3. How can I check the Java version?
4. Is there a library that needs to be imported to get it working?
Thanks in advance!

Hi Arcus
I think you might have to change some of the Xcode settings to force it to use Java 1.5. Try this:
- From the menu, select: Project > Edit Active Target 'Your Program Name'
- From the popup window, select Settings > Simple View > Java Compiler Settings.
- Set Target VM Version and Source Version to 1.5
- Dismiss the window by clicking on the red dot at the top left corner.
Best wishes
Bob

Similar Messages

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • XCode Java project: can't add files

    Greetings all,
    I have a Java codebase which I developed in JBuilder. I now want to produce the final product, a Mac app. To do this I fired up my XCode 2.5. I went File->New Project and chose Java Application under the Java template group.
    Since I don't want the three .java files that the template helpfully puts into the project, I removed them. (The only way to do this seems to be to close the project, go to the Finder, and delete them there, then re-open the project...whatever...) My next task was obviously to add my java files and the three .jar files that they depend on.
    Which is where I ran into problems. It doesn't seem to matter what I do, I cannot get my files properly added to the project.
    I have tried dragging the files from the Finder into the XCode project window and dropping them on the src group icon; despite the fact that the disclosure triangle to the left of the group flashes a lovely shade of pink and then self-opens, when I drop the files there, they do NOT get put into the group; they become siblings of the group instead.
    I have tried right-clicking on the group and choosing Add->Existing Files; same result as above.
    I have tried single-clicking on the group and choosing Project->Add to Project from the menu bar; same result as above.
    I should mention that in all of these three, I do get asked whether I want to copy the file or just have a reference created to it; I always choose not to copy the file (since I want my files to live elsewhere). However, just to experiment, I have just tried Project->Add to Project and asked for the chosen file to be copied...same result as above. The file ends up a sibling of the src group.
    I have also tried removing the src group from the project window and then dragging in from the Finder the entire src folder which holds my Java codebase. It successfully arrives in the project window, but its colour is yellow (whereas the original one's colour was blue) and it never gets compiled. I can't seem to convince XCode that these files are source and should be compiled...despite the fact that if I get out the Info window on any of them, the FileType popup menu states that they are "sourcecode.java".
    I have even tried making an alias to the src folder which holds the codebase, and moving this alias into the XCode project directory in the Finder. This fails to build since XCode tells me that it can't create the directory "src" since one already exists with that name!
    The only way I have found which has any success at all is to actually copy the files and folders into the src and lib folders of the XCode project directory, in the Finder. However, this is not acceptable for either the java or the .jar files. The java files need to be in a certain location for JBuilder, and the .jar files are common files and I am not at all interested in having multiple copies of them floating around on my disk! Furthermore this sort of behaviour should not be necessary with a modern compilation system, especially not one created by Apple.
    Please, can some kind soul tell me, how on earth am I supposed to add existing files to an XCode Java application project, without putting them into the project directory on the disk?
    Thanks gratefully in advance!

    Hi SkiAddict1
    I can't speak for Xcode 2.5, only 3.1...
    The way to add new Java source files is to highlight one of the existing source files (in the src group) and then use File > New File...
    If you want to create a package hierarchy, then you need to use Finder to create the corresponding folders inside src. Once you've done this, then you can create a source file inside a package by highlighting any Java source file, then selecting File > New File... then using the Choose option to specify the correct location. At this point, the main project window doesn't show the newly created file in the folder hierarchy, however next time you restart Xcode it will appear in the right place.
    I think the issue is that the designers of Xcode didn't adequately cater for the Ant tool's use of a src folder and the requirement for nested folders to represent a package hierarchy. However, it's still possible to make do provided you create the folders yourself and always remember to highlight an existing source file before creating a new file.
    Bob
    PS: A neat trick which I find quite handy when porting an existing Java program is to use the boilerplate main class which Xcode creates and use it to call the main () method of the imported project. Eg:
    public class ProjectName {
    public static void main (String [] args) {
    // Call the main method of the imported project
    com.company.project.ProjectClass.main (args);
    }

  • Looking for a good beginner/intermediate Java book

    Hello everyone,
    I am looking for a good beginner/intermediate Java book. I have taken a couple of Java classes (Beginner programming + beginner Java) and have a fairly good understanding of the basics. What I want is a book that is going to build on that as well as give me some good practical problems to work on while I'm doing so. Can anyone recommend one or two good books that would fit the bill?
    Thanks!

    Those three books are all excellent, but are all beginner books. When it comes to intermediate books I think you need to go topic by topic.

  • What kind of Java questions can I ask?

    Here's a change:
    I want to interview some good java people. I have lots of Java questions in mind which I could ask them, however fellow JavaGuru's
    I would like some potential questions from you which I could ask someone who claims he/she is a good java programmer??
    I am asking because I want to be as fair as possible to the applicant and not ask them questions which I think are tough etc...

    Touchy subject.
    The language is not as important, as understanding programming concepts.
    So fine, when the programmer's horizont involves some abstraction levels.
    If a programmer can write an UML class diagram for a linked list.
    If a programmer knows a design pattern Singleton.
    If a programmer can write his/her own single linked list class with sorted insertion.
    Language concepts:
    - Why:
    import java.util.*;
    Map map = new HashMap();
    - Answer:
    Hiding the choice of implementation (HashMap) by using the more general
    interface Map.
    Don't expect much on an interview though. The situation might not be
    adequate to distinghuish between the good and the bad apples.
    Talking code is a good starting point, code of your making unfortunately.
    A good programmer will hesitate to show really useful code.
    A bad programmer might have stolen his/her code.
    The problem you might have, that you are in search of an expert, not
    having the expertise in-house. In that case you might get a better
    picture, talking about which IDE would be opportune, whether he/she
    has experience with the source version system CVS, what would his/her
    ideas be about coming projects.
    That would establish a common line of communication.

  • Native - Java Method Call problem - "Wrong Method ID..."

    I am writing a 3d game engine using c++, with all the game logic code in Java, for the purpose of making the thing extendible, easily modifyable, etc...
    I am using J2SE JDK 1.2.2.
    Most things work fine (engine-wise), but i have a few questions about problems i am having getting the JNI to work correctly with calls to Java Methods.
    1. If I use FindClass() to get a jclass reference to a named class, I get one number back. If I then instantiate this class, and then call GetObjectClass() with the instance, I get another number, **which doesnt appear to work for anything**. What is going on here? Can the JVM give different jclass numbers for the same class? Is GetObjectClass() supposed to work?
    2. Is AllocObject() alright for instantiating Java objects? It does seem to allocate memory, and method calls work to the new object. I am aware that it doesn't call a constructor, but I like that, seeing as the initialization is handled through a different [network-synchronized] means.
    3. Using a jclass retrieved using FindClass(), which I store in a global variable, I am able to call methods on an instance that I created in a certain function. I then make sure (?) that the GC can't reclaim the class or object memory by getting a NewGlobalReference to both of them [just to be safe]. However, in a later function, I am unable to call methods using my stored method IDs, ["Wrong Method ID....JVM has been asked to shut down this application in an unusual manner..."]. I am also unable to acquire new methodIDs, as the system returns 0xCCCCCCCC for all method ID queries. Obviously, attempting to use those bogus method IDs results in a JVM crash, in a segment called [2 deep in the untraceable depths of JVM.dll] from the JNI CallVoidMethodV() function. Why is this happening? Is the GC getting in there despite my best efforts? Is it illegal to cache methodIDs, jclass references or jobject references? aaarrggh! :)
    Thanks
    Chris Forbes
    Lead Programmer
    Sprocket Interactive
    [email protected]

    Hi Chris,
    I hit the same sort of problem, when writing a JVMDI ( VM debugger hook ), in C++.
    My question remained unanswered too
    http://forum.java.sun.com/thread.jsp?forum=47&thread=461503&tstart=30&trange=30
    I didn't try a call to NewGlobalRef, as you did... but it sounds like it could be what I was missing.
    I've a couple of ideas, but nothing definite for you.
    1) maybe there's more than one classloader, so that multiple copies of the class are loaded
    2) ensure you're compiling your DLL with "quad-word" ( 8 byte ) alignment.
    Otherwise all your JNI references will be misaligned !
    Since the JNI reference maps to a C++ pointer, it's possible that you can't cache any JNI references.
    That's my vague feeling on the subject.
    As a workaround, you may have to keep requesting any JNI references, eg. jclass & jmethod's, as you need them.
    regards,
    Owen

  • JAVA questions coming from a windows world..

    Hello.. I consider myself a beginner in JAVA programming.
    I have some windows questions related to SUN Java.
    1. How do I connect to the windows registry (local/remote) using JAVA?
    2. How do I call/get/set Windows WMI on windows system from JAVA?
    3. How to I run system specific commands (ex. dir c:) and use the output in JAVA?
    4. Is there a way to edit INI files, including listing/editing parameters, adding values etc?
    5. Can I call windows components (ActiveX Library) or DLL from java?
    6. What are the advantages og using JAVA compared to .NET
    7. How good are JAVA IDEs (Netbean, IntelliJ, SunOne, Eclipse etc) compared to VS .NET?
    8. What�s the difference between J2ME, J2SE and J2EE?
    9. What�s the difference between Servlet and JSP?
    I would appreciate serious answers related to any of the above.
    /W.

    1. How do I connect to the windows registry (local/remote) using JAVA?
    jst.jar
    2. How do I call/get/set Windows WMI on windows system from JAVA?
    whats WMI ?
    3. How to I run system specific commands (ex. dir c:) and use the output in JAVA?
    Runtime.execCommand(), although i am kinda curious why you need the dir c: executed
    4. Is there a way to edit INI files, including listing/editing parameters, adding values etc?
    Offcourse, Java come with a very complete IO package and even more IO has been added in java 1.4
    5. Can I call windows components (ActiveX Library) or DLL from java?
    Yes
    6. What are the advantages og using JAVA compared to .NET
    Java is alot broader then .NET
    7. How good are JAVA IDEs (Netbean, IntelliJ, SunOne, Eclipse etc) compared to VS .NET?
    No idea, but Intellij really is very good.
    8. What�s the difference between J2ME, J2SE and J2EE?
    see http://java.sun.com/
    9. What�s the difference between Servlet and JSP?
    One is a class , the other gets translaed into a class

  • Beginner to Java - running programs

    I am a beginner with Java. I just installed the Bouncy Castle provider and would like to test some sample codes to see if everything is correctly installed. I downloaded a zip file that contains all of the example code. My question is: Can I run this code straight from a folder on the desktop or does it have to be placed in a certain place in order for it to compile? I thought I all I need is the provider to start using the library. Is this correct or do I need some extra files?
    Thanks in advance.

    notwist wrote:
    I downloaded a zip file Is it a .zip file or a .jar file. If it is a .jar then you can place it anywhere you like. Add a shortcut on your desktop and double click. If it is a .zip then what type of files does it contain, .java or .class? If they are .java files then you will need to compile them before you can run the program.

  • CS4 - Java: ParagraphStyle.setAppliedLanguage() problem

    Hello everybody!
    I'm having trouble with setting  the applied Language for a ParagraphStyle.
    Trying the way pointed out in the  Java CS4 Guide doesn't seem to work.
    I have the following lines
    <snip>
         LanguageWithVendors hyphenation_lwv = myApp.getIdentifiedChildLanguageWithVendors(Integer.parseInt(hyphenationLanguag e));
         //code
         ps.setAppliedLanguage(VariableTypeUtils.createObject(hyphenation_lwv));
    </snip>
    the latter throws the Exception #516, with the message " Ungültige Anforderung für Stammformat."
    which roughly translates to "bad request for master/root format" (I'm sorry, I wasn't able to find the english version of the message)
    Could someone please explain why it doesn't work?
    Thanks in advance,
    Arsenij

    Sorry, I guess most here are either busy with their own work or on vacation. Or both ...
    Besides, the focus of this forum is C++ plugin development. Java questions are better adressed at the next door "Scripting", because Java goes thru the same high level API as all the other language bindings. Rephrasing the problem with JavaScript (should be a no-brainer) will give you the broadest audience there. The Server forum would also be an alternative, especially if the problem is really Server / Java specific.
    Dirk

  • Simple Java Question (Hopefully)

    I'm not sure if anyone out here is familiar with ClearCase, I'm sure there are some, but I am trying to create some basic classes that perform various cleartool shell out commands, one of which returns the some information about ClearCase code repositories.
    When I execute a command line "cleartool lsvob" via cmd here's what I get:
    \mt_group \\happy\vobdata\vobstore\mt_group.vbs public
    * \company_cmtools \\happy\vobdata\vobstore\company_cmtools.vbs public
    \loc_test \\happy\vobdata\vobstore\loc_test.vbs public
    \iais \\happy\vobdata\vobstore\iais.vbs public
    \loc_test1 \\happy\vobdata\vobstore\loc_test1.vbs public
    * \ccase_tool \\happy\vobdata\vobstore\ccase_tool.vbs public
    \ddts \\happy\vobdata\vobstore\ddts.vbs public
    \cmtools_a2 \\happy\vobdata\vobstore\cmtools_a2.vbs public
    \pams \\happy\vobdata\vobstore\pams.vbs public
    However, when I try to do this via a class file it just sits there and doesn't do anything. When I change the command string to "cleartool lsvob -s" it prints:
    \mt_group
    \company_cmtools
    \loc_test
    \iais
    \loc_test1
    \ccase_tool
    \ddts
    \cmtools_a2
    \pams
    Does Java have a problem with white spaces? Here is the code I have:
    import java.lang.*;
    import java.io.*;
    import com.oroinc.text.perl.*;
    public class GetVobMount {
         String cleartool;
         String os = System.getProperty("os.name");
         String cmd = " lsvob";
         public String getVobs () {
              Perl5Util perl = new Perl5Util();
              if (perl.match("/Win/i", os)) {
                   cleartool = "cmd /c cleartool.exe";
              } else {
                   cleartool = "/usr/atria/bin/cleartool";
              StringBuffer data = new StringBuffer();
              System.out.println(cleartool + cmd);
              try {
                   Runtime r = Runtime.getRuntime();
                   Process p = r.exec(cleartool + cmd);
                   p.waitFor();
                   DataInputStream in = new DataInputStream(p.getInputStream());
                   String input;
                   while ((input = in.readLine()) != null) {
                                         data.append(input);
                        data.append("\n");
              } catch (Exception e) { System.out.println(e); }
              return data.toString();
         public static void main (String [] args) {
              GetVobMount vobs = new GetVobMount();
              System.out.println(vobs.getVobs());
    }Of course this won't work in an enviroment that isn't using ClearCase but perhaps there is a reason why java won't return a string of:
    \something \\server\path\dir\something.vbs public
    Any help or suggestions will be greatly appreciated.
    -Wes

    Howdy... I myself have done a lot of clearcase work with a Java app that runs on both UNIX and NT, so hail to you.
    So the problem here is that the spawned process blocks? And there is no way to get it to resume?? Isn't this a bug?? The original code seems perfectly acceptable.
    I've encountered the same problem. My app. was running some system calls and there were some unusual error messages due to system/server problems. The java app should've handled it fine (I handle STDERR), but instead my java app FROZE, no doubt because the spawned process went into this blocked state as Chuck described. In my case, when the system/server error was fixed and the error messages went away, my app stopped locking up.

  • Re   Java Stored Procedure Problem

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

    Ben
    There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
    Is there a SAX parser with PL/SQL??

  • "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7"

    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    Periodically an application running in the Enterprise Java Engine
    (EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
    the "Aurora JVM" will fail with a "java 2" permissions error having the
    following format :
    Note : Message shown below have been reformatted for easier readability.
    java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
    usually followed by a detailed error message similar to one of the following
    messages :
    Example # 1
    java.security.AccessControlException: the Permission
    (java.net.SocketPermission hostname resolve)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 2
    java.security.AccessControlException: the Permission
    (java.util.PropertyPermission * read,write)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Example # 3
    java.security.AccessControlException: the Permission
    (java.io.FilePermission \matt1.gif read)
    has not been granted by dbms_java.grant_permission to
    SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
    Explanation
    The java 2 permission stated in line # 2 of each of the above "Examples"
    has not been granted to the user specified in line 4 of the above "Examples".
    Solution Description
    The methodology to solve this issue is identical for all java 2 permissions
    cases.
    1) Format a call "dbms_java.grant_permission" procedure as described below.
    2) Logon as SYS or SYSTEM
    3) Issue the TWO commands shown below
    4) Logoff as SYS or SYSTEM
    5) Retry your application
    For Example # 1
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.net.SocketPermission',
    'hostname',
    'resolve');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 2
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.util.PropertyPermission',
    'read,write');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    For Example # 3
    1) Logon as SYS or SYSTEM
    2) Issue the following commands :
    a) call dbms_java.grant_permission('SCOTT',
    'java.io.FilePermission',
    '\matt1.gif',
    'read');
    b) commit;
    Note: Commit is mandatory !!
    3) Logoff as SYS or SYSTEM
    4) Retry your application
    References
    For more details on java 2 permissions and security within the EJE, review
    Chapter 5, in the Java Developer's Guide. entitled,
    "Security For Oracle8i Java Applications"
    The RDBMS 8.1.7 version can be found at :
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htm

    Hi, Don,
    I solved the problem of security exception I mentioned at java procedure topic as following:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
    I tried to use your solution as following:
    call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
    but SQL*plus gave me a error message:
    invalid collumn.
    What's the problem?
    However, I call a grant command as following:
    SQL> grant JAVASYSPRIV to sde;
    and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
    Thanks
    Bing
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
    I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
    Permission Problems in RDBMS 8.1.6 and 8.1.7".
    It will be accessible from Oracle Support's "Metalink" site.
    "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
    Problem Description
    <HR></BLOCKQUOTE>
    null

  • A way to find my previous questions and problem reports?

    Is there a way on this forum to find my previous questions and problem reports? Since posting a question earlier today, I've found MOST of the answer and would therefore like to append what I found to the question, without waiting for someone else to answer it. I don't remember the title I gave the earlier question, or I'd use that title in searching for it.
    The troubleshooting information below is more relevant to a previous problem than this question.

    '''My Contributions''' link on a main forum page should display a listing of all your postings.
    [https://support.mozilla.com/en-US/search?q=&num_voted=0&num_votes=&asked_by=milesrf&answered_by=&q_tags=&created=0&created_date=&updated=0&updated_date=&sortby=0&a=1&w=2 See this forum search for your Username under "Asked by"]

  • Java Question... please help

    I am running  Snow Leopard  (mac os x version 10.6.8)
    For the past couple of years I've played gin in yahoo games.  
    Yesterday when I entered the gin lobby ...the font was so tiny
    I wasn't able to read it.   I checked Java on my computer and
    it is enabled, however I just realized when I go into the gin
    lobby... there is no java icon on the dock.   Since the font size
    is fine in all other applications, I am presuming this is a Java
    issue.  
    Help if you are able.. please and thanks

    Huh? Is this a Java question? Where's the Java? I just see a little JavaScript. Do you know how to use servlets and JSPs?
    Jesper

  • Beginner ask a question !!!

    Hello ...
    I'm a beginner in java language... and when i am try to compile the file it gives this error ??
    unreported exception java.lang.Exception; must be caught or declared to be thrown
    int guess = askForNumber(0,100);
    can you give me any help ,,,
    thanx
    the code down here !!!
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    class hangman{
         static int h;
    public static void main(String[] args){
         h=newRandom(100);
         int guess = askForNumber(0,100);
    public static int askForNumber(int minRange,int maxRange)
         throws Exception{
         try{
              BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in),1);
              System.out.print("Guess the number "+minRange+"-"+maxRange+" ??");
              int read=Integer.parseInt(keyboard.readLine());
              return read;
         }finally{
              System.out.println("System error !!");
    public static int newRandom(int Dificulty){
         return (int)Math.round(Math.random()*Dificulty);
    }

    Use [ b ] ..... [ /b ] to make fornt bold
    Use [ i ] .... [ /i ] to make font italic
    use [ u ] ..... [ /u ] to make font
    underlined
    but without spaces put the tags at the first and at
    the end of the selected textI'm sure jverd knows that. He was asking you how you didn't manage to find the code tags, when obviously you found the other tags. He wasn't asking you to explain how those other tags work.

Maybe you are looking for