Type mismatch: cannot convert from StringBuilder to String

前端 未结 3 1274
刺人心
刺人心 2021-02-02 10:10

This method returns the source of the given URL.

private static String getUrlSource(String url) {
    try {
        URL localUrl = null;
        localUrl = n         


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 10:21

    try

    return ma.toString(); as you can not directly store stringbuilder variable into a string variable.

提交回复
热议问题