Hi I am just but a beginner in java programming, I am trying to run a simple program that accesses multiple methods from another class. One of my methods has a String return type.
In the next method I proceed to use the printf function to output the string returned in the previous method but then when i ran my program the first time there were errors and now when I try to run again the class with the main function does not show up in the list of resources to save.
When I hover the cursor on the red cross that highlights an error on a line of code, it says: Multiple markers at this line
- The method printf(String, Object[]) in the type PrintStream is not
applicable for the arguments (String, String)
- The method printf(String, Object[]) in the type PrintStream is not
applicable for the arguments (String, String)
How can I correct this? Thanks in advance.